Skip to content

Commit 50bc580

Browse files
committed
initialDenot method for symbols
This avoids denotation transforms when called at a later phase because it cuts out current. Not needed in final version of ShortcutImplicits, but I thought it was good to have.
1 parent bba9d11 commit 50bc580

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,10 @@ object Symbols {
390390
denot
391391
}
392392

393+
/** The initial denotation of this symbol, without going through `current` */
394+
final def initialDenot(implicit ctx: Context): SymDenotation =
395+
lastDenot.initial
396+
393397
private[core] def defRunId: RunId =
394398
if (lastDenot == null) NoRunId else lastDenot.validFor.runId
395399

0 commit comments

Comments
 (0)