aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/NameOps.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-03-31 14:40:06 +0200
committerMartin Odersky <odersky@gmail.com>2017-04-11 09:33:12 +0200
commit24f40bc76493410f2688c8a74028ecb1db7306bf (patch)
tree1376406c3114b52c62d3350805c6c6c8323ecd7e /compiler/src/dotty/tools/dotc/core/NameOps.scala
parenta3f6ca5a5cd96e17d2f9a9c5187f45ff02b5dd61 (diff)
downloaddotty-24f40bc76493410f2688c8a74028ecb1db7306bf.tar.gz
dotty-24f40bc76493410f2688c8a74028ecb1db7306bf.tar.bz2
dotty-24f40bc76493410f2688c8a74028ecb1db7306bf.zip
Make outer select names semantic
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/NameOps.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/core/NameOps.scala8
1 files changed, 0 insertions, 8 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/NameOps.scala b/compiler/src/dotty/tools/dotc/core/NameOps.scala
index b262fb536..44c5c1e09 100644
--- a/compiler/src/dotty/tools/dotc/core/NameOps.scala
+++ b/compiler/src/dotty/tools/dotc/core/NameOps.scala
@@ -60,11 +60,9 @@ object NameOps {
def isLocalDummyName = name startsWith LOCALDUMMY_PREFIX
def isReplWrapperName = name.toSimpleName containsSlice INTERPRETER_IMPORT_WRAPPER
def isSetterName = name endsWith SETTER_SUFFIX
- def isImportName = name startsWith IMPORT
def isScala2LocalSuffix = name.endsWith(" ")
def isModuleVarName(name: Name): Boolean = name.exclude(UniqueName).is(ModuleVarName)
def isSelectorName = name.startsWith("_") && name.tail.forall(_.isDigit)
- def isOuterSelect = name.endsWith(nme.OUTER_SELECT)
/** Is name a variable name? */
def isVariableName: Boolean = name.length > 0 && {
@@ -247,12 +245,6 @@ object NameOps {
else -1
}
- /** The number of hops specified in an outer-select name */
- def outerSelectHops: Int = {
- require(isOuterSelect)
- name.dropRight(nme.OUTER_SELECT.length).toString.toInt
- }
-
/** The name of the generic runtime operation corresponding to an array operation */
def genericArrayOp: TermName = name match {
case nme.apply => nme.array_apply