We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fea6fff commit 8adffb7Copy full SHA for 8adffb7
compiler/src/dotty/tools/dotc/core/Contexts.scala
@@ -95,7 +95,7 @@ object Contexts {
95
inline def atPhaseNoEarlier[T](limit: Phase)(inline op: Context ?=> T)(using Context): T =
96
op(using if !limit.exists || limit <= ctx.phase then ctx else ctx.withPhase(limit))
97
98
- inline private def inMode[T](mode: Mode)(inline op: Context ?=> T)(using ctx: Context): T =
+ inline def inMode[T](mode: Mode)(inline op: Context ?=> T)(using ctx: Context): T =
99
op(using if mode != ctx.mode then ctx.fresh.setMode(mode) else ctx)
100
101
inline def withMode[T](mode: Mode)(inline op: Context ?=> T)(using ctx: Context): T =
0 commit comments