diff options
author | Miles Sabin <miles@milessabin.com> | 2009-07-31 21:31:02 +0000 |
---|---|---|
committer | Miles Sabin <miles@milessabin.com> | 2009-07-31 21:31:02 +0000 |
commit | 11ee847d384dcd0f45295380809f66961ebe25a3 (patch) | |
tree | 2a074650c871a72577cb8c05d9228e967544110f /src/compiler/scala/tools/nsc/interactive/CompilerControl.scala | |
parent | 1a4566278cdaed86891f7c675c3d52a52379f029 (diff) | |
download | scala-11ee847d384dcd0f45295380809f66961ebe25a3.tar.gz scala-11ee847d384dcd0f45295380809f66961ebe25a3.tar.bz2 scala-11ee847d384dcd0f45295380809f66961ebe25a3.zip |
Added notification to BuildManager clients of f...
Added notification to BuildManager clients of files as they're compiled
allowing IDEs to clear persistent compilation related state; added a
mechanism to request a type tree corresponding to an entire compilation
unit.
Diffstat (limited to 'src/compiler/scala/tools/nsc/interactive/CompilerControl.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/interactive/CompilerControl.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/interactive/CompilerControl.scala b/src/compiler/scala/tools/nsc/interactive/CompilerControl.scala index 942a6f5c86..b22cc9098d 100644 --- a/src/compiler/scala/tools/nsc/interactive/CompilerControl.scala +++ b/src/compiler/scala/tools/nsc/interactive/CompilerControl.scala @@ -82,6 +82,11 @@ trait CompilerControl { self: Global => override def toString = "typeat "+pos.source+" "+pos.show } + def askType(source: SourceFile, forceReload: Boolean, result: Response[Tree]) = + scheduler postWorkItem new WorkItem { + def apply() = self.getTypedTree(source, forceReload, result) + } + /** Set sync var `result' to list of members that are visible * as members of the tree enclosing `pos`, possibly reachable by an implicit. * - if `selection` is false, as identifiers in the scope enclosing `pos` |