diff options
author | paltherr <paltherr@epfl.ch> | 2004-03-08 16:26:10 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-03-08 16:26:10 +0000 |
commit | e9201a7193e153e7637cf070b77bb48f09650b38 (patch) | |
tree | e710016026d677c043cede22487b55e96b37adb1 /sources/scalac/symtab/Scope.java | |
parent | 286ab9ba980b058619e97b1ac709956b0e6e427a (diff) | |
download | scala-e9201a7193e153e7637cf070b77bb48f09650b38.tar.gz scala-e9201a7193e153e7637cf070b77bb48f09650b38.tar.bz2 scala-e9201a7193e153e7637cf070b77bb48f09650b38.zip |
- Added method enterNoHide
Diffstat (limited to 'sources/scalac/symtab/Scope.java')
-rw-r--r-- | sources/scalac/symtab/Scope.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/scalac/symtab/Scope.java b/sources/scalac/symtab/Scope.java index 9a3125f21c..490f0e30a1 100644 --- a/sources/scalac/symtab/Scope.java +++ b/sources/scalac/symtab/Scope.java @@ -198,6 +198,11 @@ public class Scope { // assert !sym.isConstructor(); return enter(new Entry(sym, this)); } + public final Scope enterNoHide(Symbol sym) { + assert lookupEntry(sym.name) == Entry.NONE: + sym + " hides " + lookup(sym.name); + return enter(sym); + } public Scope enterOrOverload(Symbol sym) { Entry e = lookupEntry(sym.name); |