diff options
author | Martin Odersky <odersky@gmail.com> | 2013-01-12 18:42:19 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-01-12 18:42:19 +0100 |
commit | 1fcde33fe9b96d54862a2b4905efffe3ff59d931 (patch) | |
tree | af45c9a0f16a7872a918a65795045faf0c129b7b /src/dotty/tools/dotc/core/Names.scala | |
parent | 2e7af7a6f52230655c60b9e15e4f2a7ed76391b0 (diff) | |
download | dotty-1fcde33fe9b96d54862a2b4905efffe3ff59d931.tar.gz dotty-1fcde33fe9b96d54862a2b4905efffe3ff59d931.tar.bz2 dotty-1fcde33fe9b96d54862a2b4905efffe3ff59d931.zip |
Added lastIntroPhaseId to distinguish when names can be created.
Diffstat (limited to 'src/dotty/tools/dotc/core/Names.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Names.scala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Names.scala b/src/dotty/tools/dotc/core/Names.scala index 291dc2877..78d9beede 100644 --- a/src/dotty/tools/dotc/core/Names.scala +++ b/src/dotty/tools/dotc/core/Names.scala @@ -3,8 +3,8 @@ package core import scala.io.Codec import util.NameTransformer +import Periods._ import Decorators._ -import Contexts._ object Names { @@ -84,6 +84,9 @@ object Names { /** Convert to string replacing operator symbols by corresponding \$op_name. */ def decode: String = NameTransformer.decode(toString) + + /** The last phase id where symbols with this name can be created. */ + def lastIntroPhaseId: PhaseId = ??? } class TermName(val basis: NameTable, val start: Int, val length: Int, val next: TermName) extends Name { |