diff options
author | Martin Odersky <odersky@gmail.com> | 2017-03-27 18:23:07 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-04-11 09:33:11 +0200 |
commit | 21ab9a1355036aa953db4e1f87c8f0f9a06506b5 (patch) | |
tree | 3824573b541226f7e90609e7163383b471838667 /compiler/src/dotty/tools/dotc/transform/SymUtils.scala | |
parent | 0efd6b93cf45be4cb211093185fef2923f53ef67 (diff) | |
download | dotty-21ab9a1355036aa953db4e1f87c8f0f9a06506b5.tar.gz dotty-21ab9a1355036aa953db4e1f87c8f0f9a06506b5.tar.bz2 dotty-21ab9a1355036aa953db4e1f87c8f0f9a06506b5.zip |
Get rid of ExpandedName flag
Diffstat (limited to 'compiler/src/dotty/tools/dotc/transform/SymUtils.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/transform/SymUtils.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/src/dotty/tools/dotc/transform/SymUtils.scala b/compiler/src/dotty/tools/dotc/transform/SymUtils.scala index 105f54d3a..f6ff539fe 100644 --- a/compiler/src/dotty/tools/dotc/transform/SymUtils.scala +++ b/compiler/src/dotty/tools/dotc/transform/SymUtils.scala @@ -10,6 +10,7 @@ import Decorators._ import Names._ import StdNames._ import NameOps._ +import NameExtractors._ import Flags._ import Annotations._ @@ -51,6 +52,9 @@ class SymUtils(val self: Symbol) extends AnyVal { def isAnyOverride(implicit ctx: Context) = self.is(Override) || self.is(AbsOverride) // careful: AbsOverride is a term only flag. combining with Override would catch only terms. + def isAliasPreferred(implicit ctx: Context) = + self.is(AliasPreferred) || self.name.is(ExpandedName) + /** If this is a constructor, its owner: otherwise this. */ final def skipConstructor(implicit ctx: Context): Symbol = if (self.isConstructor) self.owner else self |