diff options
author | Martin Odersky <odersky@gmail.com> | 2015-03-08 10:57:09 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-03-18 11:15:47 +0100 |
commit | f1ffa4c0a0a32057795c4395aecd990c6ae057e2 (patch) | |
tree | bc79c940d01a67d76da06377364eadff3c12bc5a /src/dotty/tools/dotc/core/NameOps.scala | |
parent | a7a8563b8c6e63f76826164495bb4842b29fdf87 (diff) | |
download | dotty-f1ffa4c0a0a32057795c4395aecd990c6ae057e2.tar.gz dotty-f1ffa4c0a0a32057795c4395aecd990c6ae057e2.tar.bz2 dotty-f1ffa4c0a0a32057795c4395aecd990c6ae057e2.zip |
Rename inheritedName -> shadowedName
The new name is more consistent with the usage (e.g. NamedType#shadowed).
Diffstat (limited to 'src/dotty/tools/dotc/core/NameOps.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/NameOps.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/core/NameOps.scala b/src/dotty/tools/dotc/core/NameOps.scala index c15c4c4c2..a003b4329 100644 --- a/src/dotty/tools/dotc/core/NameOps.scala +++ b/src/dotty/tools/dotc/core/NameOps.scala @@ -75,7 +75,7 @@ object NameOps { def isAvoidClashName = name endsWith AVOID_CLASH_SUFFIX def isImportName = name startsWith IMPORT def isFieldName = name endsWith LOCAL_SUFFIX - def isInheritedName = name.length > 0 && name.head == '(' && name.startsWith(nme.INHERITED) + def isShadowedName = name.length > 0 && name.head == '(' && name.startsWith(nme.SHADOWED) def isDefaultGetterName = name.isTermName && name.asTermName.defaultGetterIndex >= 0 def isScala2LocalSuffix = name.endsWith(" ") def isModuleVarName(name: Name): Boolean = @@ -159,9 +159,9 @@ object NameOps { if (idx < 0) name else (name drop (idx + separator.length)).asInstanceOf[N] } - def inheritedName: N = likeTyped(nme.INHERITED ++ name) + def shadowedName: N = likeTyped(nme.SHADOWED ++ name) - def revertInherited: N = likeTyped(name.drop(nme.INHERITED.length)) + def revertShadowed: N = likeTyped(name.drop(nme.SHADOWED.length)) /** Translate a name into a list of simple TypeNames and TermNames. * In all segments before the last, type/term is determined by whether |