summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-03-08 16:26:10 +0000
committerpaltherr <paltherr@epfl.ch>2004-03-08 16:26:10 +0000
commite9201a7193e153e7637cf070b77bb48f09650b38 (patch)
treee710016026d677c043cede22487b55e96b37adb1
parent286ab9ba980b058619e97b1ac709956b0e6e427a (diff)
downloadscala-e9201a7193e153e7637cf070b77bb48f09650b38.tar.gz
scala-e9201a7193e153e7637cf070b77bb48f09650b38.tar.bz2
scala-e9201a7193e153e7637cf070b77bb48f09650b38.zip
- Added method enterNoHide
-rw-r--r--sources/scalac/symtab/Scope.java5
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);