aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Typer.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-02-10 19:17:00 +0100
committerMartin Odersky <odersky@gmail.com>2014-02-10 19:17:00 +0100
commit5870fbb7297b1b4bb70cbcf27cd88d4e12197234 (patch)
tree855fa843dde8b90041629786a22fa7e0187be4b3 /src/dotty/tools/dotc/typer/Typer.scala
parent18ae13dcf4f5d40d528e2bcf43a19e84bf475084 (diff)
downloaddotty-5870fbb7297b1b4bb70cbcf27cd88d4e12197234.tar.gz
dotty-5870fbb7297b1b4bb70cbcf27cd88d4e12197234.tar.bz2
dotty-5870fbb7297b1b4bb70cbcf27cd88d4e12197234.zip
New scheme for incremental invalidation of parents.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r--src/dotty/tools/dotc/typer/Typer.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala
index bce9d225a..697441ca1 100644
--- a/src/dotty/tools/dotc/typer/Typer.scala
+++ b/src/dotty/tools/dotc/typer/Typer.scala
@@ -63,6 +63,15 @@ class Typer extends Namer with Applications with Implicits {
*/
private var importedFromRoot: Set[Symbol] = Set()
+ /** A denotation exists really if it exists and does not point to a stale symbol.
+ def reallyExists(denot: Denotation)(implicit ctx: Context): Boolean = denot match {
+ case denot: SymDenotation =>
+ denot.ensureCompleted
+ denot.exists && !denot.isAbsent
+ case _ =>
+ true
+ }*/
+
/** A denotation exists really if it exists and does not point to a stale symbol. */
def reallyExists(denot: Denotation)(implicit ctx: Context): Boolean =
try