From 1fcde33fe9b96d54862a2b4905efffe3ff59d931 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sat, 12 Jan 2013 18:42:19 +0100 Subject: Added lastIntroPhaseId to distinguish when names can be created. --- src/dotty/tools/dotc/core/Names.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/core/Names.scala') 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 { -- cgit v1.2.3