summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/interpreter/Imports.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-05-07 06:54:53 +0000
committerPaul Phillips <paulp@improving.org>2011-05-07 06:54:53 +0000
commitb72a9b1455f8f462192f0a6eb3a7544e7600505a (patch)
tree802af9c6687290397830f7f3bd6eeaf8a2517c2a /src/compiler/scala/tools/nsc/interpreter/Imports.scala
parent6b58c8522dfcebc267a24588d7f67def13ebc7d1 (diff)
downloadscala-b72a9b1455f8f462192f0a6eb3a7544e7600505a.tar.gz
scala-b72a9b1455f8f462192f0a6eb3a7544e7600505a.tar.bz2
scala-b72a9b1455f8f462192f0a6eb3a7544e7600505a.zip
Made -Yno-predef work again, also in the repl.
do I import" code to notice _root_.scala.Predef too. Moved some of the overly specialized, called-only-once functions in treeInfo inside the one function which needs them. References #1931. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/interpreter/Imports.scala')
-rw-r--r--src/compiler/scala/tools/nsc/interpreter/Imports.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/interpreter/Imports.scala b/src/compiler/scala/tools/nsc/interpreter/Imports.scala
index b2706330e7..df8c1e7851 100644
--- a/src/compiler/scala/tools/nsc/interpreter/Imports.scala
+++ b/src/compiler/scala/tools/nsc/interpreter/Imports.scala
@@ -15,6 +15,9 @@ trait Imports {
import definitions.{ ScalaPackage, JavaLangPackage, PredefModule }
import memberHandlers._
+ def isNoImports = settings.noimports.value
+ def isNoPredef = settings.nopredef.value
+
/** Synthetic import handlers for the language defined imports. */
private def makeWildcardImportHandler(sym: Symbol): ImportHandler = {
val hd :: tl = sym.fullName.split('.').toList map newTermName
@@ -88,7 +91,7 @@ trait Imports {
* 2. A code fragment that should go after the code
* of the new request.
*
- * 3. An access path which can be traverested to access
+ * 3. An access path which can be traversed to access
* any bindings inside code wrapped by #1 and #2 .
*
* The argument is a set of Names that need to be imported.