diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2012-02-09 11:14:00 +0100 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2012-02-09 11:14:00 +0100 |
commit | b671a9581f585a60d5a3991378d614405552f02a (patch) | |
tree | 9806410967b6084344fa0c2eef1a1522442d8fc3 | |
parent | fb5f42648a61de2cdfc318c341ab28ea5662ca20 (diff) | |
download | scala-b671a9581f585a60d5a3991378d614405552f02a.tar.gz scala-b671a9581f585a60d5a3991378d614405552f02a.tar.bz2 scala-b671a9581f585a60d5a3991378d614405552f02a.zip |
Added back `internal.Symbol.toplevelSymbol` to resurrect the IDE for trunk.
-rw-r--r-- | src/compiler/scala/reflect/internal/Symbols.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/scala/reflect/internal/Symbols.scala b/src/compiler/scala/reflect/internal/Symbols.scala index 8e63e3a63c..69d881e8e1 100644 --- a/src/compiler/scala/reflect/internal/Symbols.scala +++ b/src/compiler/scala/reflect/internal/Symbols.scala @@ -1578,6 +1578,10 @@ trait Symbols extends api.Symbols { self: SymbolTable => else if (isMethod || isClass) this else owner.logicallyEnclosingMember + /** Kept for source compatibility with 2.9. Scala IDE for Eclipse relies on this. */ + @deprecated("Use enclosingTopLevelClass") + def toplevelClass: Symbol = enclosingTopLevelClass + /** The top-level class containing this symbol. */ def enclosingTopLevelClass: Symbol = if (owner.isPackageClass) { |