summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/Global.scala
diff options
context:
space:
mode:
authorMiles Sabin <miles@milessabin.com>2010-02-09 10:15:16 +0000
committerMiles Sabin <miles@milessabin.com>2010-02-09 10:15:16 +0000
commit1b99b4b148b04d0eafd6bd3fb55309c29f60eb2d (patch)
tree367454c46ffb8a4be3cfb536bea97be7646df507 /src/compiler/scala/tools/nsc/Global.scala
parent68bcaee6c1c23e8dbf319e6dd71710b7da4f5d2d (diff)
downloadscala-1b99b4b148b04d0eafd6bd3fb55309c29f60eb2d.tar.gz
scala-1b99b4b148b04d0eafd6bd3fb55309c29f60eb2d.tar.bz2
scala-1b99b4b148b04d0eafd6bd3fb55309c29f60eb2d.zip
Compiler part of fix for #2767: provide hooks t...
Compiler part of fix for #2767: provide hooks to allow the presentation compiler to add sources to the run to resolve top-level symbols which cannot be found via the Java naming convention. Review by odersky.
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r--src/compiler/scala/tools/nsc/Global.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala
index a463e35027..a6b32abef3 100644
--- a/src/compiler/scala/tools/nsc/Global.scala
+++ b/src/compiler/scala/tools/nsc/Global.scala
@@ -842,6 +842,20 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable
refreshProgress
}
+ /**
+ * Attempt to locate a source file providing the given name as a top-level
+ * definition in the given context, and add it to the run via compileLate
+ * if found.
+ */
+ def compileSourceFor(context : analyzer.Context, name : Name) = false
+
+ /**
+ * Attempt to locate a source file providing the given name as a top-level
+ * definition with the given prefix, and add it to the run via compileLate
+ * if found.
+ */
+ def compileSourceFor(qual : Tree, name : Name) = false
+
/** Reset package class to state at typer (not sure what this
* is needed for?)
*/