summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/Global.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2009-05-25 22:00:48 +0000
committerMartin Odersky <odersky@gmail.com>2009-05-25 22:00:48 +0000
commitc5aa57c2d573f0205615db6690139e0e4b555492 (patch)
tree3041ad7966799bcc4d69a78fd2a92beef76f7afc /src/compiler/scala/tools/nsc/Global.scala
parent213285991d73a80b322c55000c69633893dccb80 (diff)
downloadscala-c5aa57c2d573f0205615db6690139e0e4b555492.tar.gz
scala-c5aa57c2d573f0205615db6690139e0e4b555492.tar.bz2
scala-c5aa57c2d573f0205615db6690139e0e4b555492.zip
new presentation compiler design
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r--src/compiler/scala/tools/nsc/Global.scala10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala
index fff92aac64..bb3e37e291 100644
--- a/src/compiler/scala/tools/nsc/Global.scala
+++ b/src/compiler/scala/tools/nsc/Global.scala
@@ -129,16 +129,20 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable
if (onlyPresentation) new HashMap[Symbol,List[List[Symbol]]]
else null
- // ------------ Hooks for IDE ----------------------------------
+ // ------------ Hooks for interactive mode-------------------------
/** Return a position correponding to tree startaing at `start`, with tip
* at `mid`, and ending at `end`. ^ batch mode errors point at tip.
*/
def rangePos(source: SourceFile, start: Int, mid: Int, end: Int) = OffsetPosition(source, mid)
- /** Poll for a high-priority task
+ /** Called every time an AST node is succesfully typedchecked in typerPhase.
*/
- def pollForHighPriorityJob() {}
+ def signalDone(context: analyzer.Context, old: Tree, result: Tree) {}
+
+ /** Register new context; called for every created context
+ */
+ def registerContext(c: analyzer.Context) {}
// ------------------ Reporting -------------------------------------