File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ abstract class Periods { thisCtx: Context =>
21
21
op(thisCtx.fresh.setPeriod(pd))
22
22
23
23
/** Execute `op` at given phase id */
24
- def atPhase [T ](pid : PhaseId )(op : Context ?=> T ): T =
24
+ inline def atPhase [T ](pid : PhaseId )(inline op : Context ?=> T ): T =
25
25
op(using thisCtx.withPhase(pid))
26
26
27
27
/** The period containing the current period where denotations do not change.
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ trait Phases {
31
31
}
32
32
33
33
/** Execute `op` at given phase */
34
- def atPhase [T ](phase : Phase )(op : Context ?=> T ): T =
34
+ inline def atPhase [T ](phase : Phase )(inline op : Context ?=> T ): T =
35
35
atPhase(phase.id)(op)
36
36
37
37
def atNextPhase [T ](op : Context ?=> T ): T = atPhase(phase.next)(op)
You can’t perform that action at this time.
0 commit comments