Skip to content

Commit 4830522

Browse files
committed
Make Contexts.ctx an inline function
1 parent 692719b commit 4830522

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/core/Contexts.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ object Contexts {
5151
private val initialStore = store8
5252

5353
/** The current context */
54-
def ctx(using ctx: Context): Context = ctx
54+
transparent inline def ctx(using ctx: Context): Context = ctx
5555

5656
/** Run `op` with given context */
57-
inline def inContext[T](c: Context)(inline op: Context ?=> T): T =
57+
transparent inline def inContext[T](c: Context)(inline op: Context ?=> T): T =
5858
op(using c)
5959

6060
/** A context is passed basically everywhere in dotc.

0 commit comments

Comments
 (0)