summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
diff options
context:
space:
mode:
authorSean McDirmid <sean.mcdirmid@gmail.com>2006-10-16 09:39:52 +0000
committerSean McDirmid <sean.mcdirmid@gmail.com>2006-10-16 09:39:52 +0000
commit4490aaef070b037d59029d56c6ea472772fa00a2 (patch)
treef20973b2b519831202c8fa657a0537086642567a /src/compiler/scala/tools/nsc/typechecker/Contexts.scala
parentc95aa7344c5a2dfb5e488e556d656905b8d79477 (diff)
downloadscala-4490aaef070b037d59029d56c6ea472772fa00a2.tar.gz
scala-4490aaef070b037d59029d56c6ea472772fa00a2.tar.bz2
scala-4490aaef070b037d59029d56c6ea472772fa00a2.zip
* Added support for accessing files directly
* Added hook in settings to hide options in IDE * Updated Contexts, Namers, and Typers with hooks to prepare them for IDE integration.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Contexts.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Contexts.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
index 95a56585a5..86d572815a 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
@@ -95,6 +95,20 @@ trait Contexts requires Analyzer {
var savedTypeBounds: List[Pair[Symbol, Type]] = List()
+ override def equals(that : Any) = that match {
+ case that if (super.equals(that)) => true
+ case txt : Context =>
+ tree == txt.tree && owner == txt.owner && scope == txt.scope &&
+ outer == txt.outer && enclClass == txt.enclClass && enclMethod == txt.enclMethod &&
+ variance == txt.variance && _undetparams == txt._undetparams &&
+ depth == txt.depth && imports == txt.imports && prefix == txt.prefix &&
+ inConstructorSuffix == txt.inConstructorSuffix && implicitsEnabled == txt.implicitsEnabled &&
+ checking == txt.checking && retyping == txt.retyping &&
+ savedTypeBounds == txt.savedTypeBounds
+ case _ => false;
+ }
+
+
def undetparams = _undetparams
def undetparams_=(ps: List[Symbol]) = {
//System.out.println("undetparams = " + ps);//debug