diff options
author | Lex Spoon <lex@lexspoon.org> | 2008-02-21 15:35:14 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2008-02-21 15:35:14 +0000 |
commit | 8bd9521d8a12107c03868c262ea29c1f77674257 (patch) | |
tree | b13947223b081b0250b41ce17bc2d40a70b16b5d | |
parent | fb6fcaa6d6bb9f0f7ff25f33ea4b5277d627d6ec (diff) | |
download | scala-8bd9521d8a12107c03868c262ea29c1f77674257.tar.gz scala-8bd9521d8a12107c03868c262ea29c1f77674257.tar.bz2 scala-8bd9521d8a12107c03868c262ea29c1f77674257.zip |
for queries not understood in the interpreter, ...
for queries not understood in the interpreter, still scan for names to
import
-rw-r--r-- | src/compiler/scala/tools/nsc/Interpreter.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/Interpreter.scala b/src/compiler/scala/tools/nsc/Interpreter.scala index dd5fefb8f7..b9e19111ab 100644 --- a/src/compiler/scala/tools/nsc/Interpreter.scala +++ b/src/compiler/scala/tools/nsc/Interpreter.scala @@ -445,7 +445,7 @@ class Interpreter(val settings: Settings, out: PrintWriter) { case member: TypeDef => Some(new TypeAliasHandler(member)) case member: Import => Some(new ImportHandler(member)) case DocDef(_, documented) => chooseHandler(documented) - case _ => None + case member => Some(new GenericHandler(member)) } /** <p> @@ -605,6 +605,8 @@ class Interpreter(val settings: Settings, out: PrintWriter) { def resultExtractionCode(req: Request, code: PrintWriter) { } } + private class GenericHandler(member: Tree) extends MemberHandler(member) + private class ValHandler(member: ValDef) extends MemberHandler(member) { override val boundNames = List(member.name) override def valAndVarNames = boundNames |