diff options
author | Martin Odersky <odersky@gmail.com> | 2016-12-13 14:57:18 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-12-17 18:34:27 +0100 |
commit | 5e2f7d18d711814cecce62a4bd7315a26a5efb87 (patch) | |
tree | 26be788d12e6d4609e5304edd752cdc381df24bd /compiler/src/dotty/tools | |
parent | 71b900fde4cb5937c1cbb19da6e3397586e2467c (diff) | |
download | dotty-5e2f7d18d711814cecce62a4bd7315a26a5efb87.tar.gz dotty-5e2f7d18d711814cecce62a4bd7315a26a5efb87.tar.bz2 dotty-5e2f7d18d711814cecce62a4bd7315a26a5efb87.zip |
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.
Diffstat (limited to 'compiler/src/dotty/tools')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/Symbols.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/Symbols.scala b/compiler/src/dotty/tools/dotc/core/Symbols.scala index cfd85c49c..86d0c51bd 100644 --- a/compiler/src/dotty/tools/dotc/core/Symbols.scala +++ b/compiler/src/dotty/tools/dotc/core/Symbols.scala @@ -390,6 +390,10 @@ object Symbols { denot } + /** The initial denotation of this symbol, without going through `current` */ + final def initialDenot(implicit ctx: Context): SymDenotation = + lastDenot.initial + private[core] def defRunId: RunId = if (lastDenot == null) NoRunId else lastDenot.validFor.runId |