aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Names.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-01-12 18:42:19 +0100
committerMartin Odersky <odersky@gmail.com>2013-01-12 18:42:19 +0100
commit1fcde33fe9b96d54862a2b4905efffe3ff59d931 (patch)
treeaf45c9a0f16a7872a918a65795045faf0c129b7b /src/dotty/tools/dotc/core/Names.scala
parent2e7af7a6f52230655c60b9e15e4f2a7ed76391b0 (diff)
downloaddotty-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.scala5
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 {