Skip to content

Commit 545e2be

Browse files
committed
More modifier lock down in Periods.
1 parent 88b1ac4 commit 545e2be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dotty/tools/dotc/core/Periods.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ abstract class Periods extends DotClass { self: Context =>
1111
import Periods._
1212

1313
/** The current phase identifier */
14-
def phaseId = period.phaseId
14+
final def phaseId = period.phaseId
1515

1616
/** The current run identifier */
17-
def runId = period.runId
17+
final def runId = period.runId
1818

1919
/** Execute `op` at given period */
20-
def atPeriod[T](pd: Period)(op: Context => T) =
20+
final def atPeriod[T](pd: Period)(op: Context => T) =
2121
op(ctx.fresh.withPeriod(pd))
2222

2323
/** Execute `op` at given phase id */
24-
def atPhase[T](pid: PhaseId)(op: Context => T) =
24+
final def atPhase[T](pid: PhaseId)(op: Context => T) =
2525
op(ctx.fresh.withPhase(pid))
2626
}
2727

0 commit comments

Comments
 (0)