diff options
author | Lex Spoon <lex@lexspoon.org> | 2007-07-17 09:25:17 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2007-07-17 09:25:17 +0000 |
commit | a840917b32e1c0f25b846f48bd0f12088fe170b2 (patch) | |
tree | f0da1985f6c2321a861a5c6684992e7f0db936b2 /src/library | |
parent | 9f1345730a8e00a43ae628ae0c2f0a38b530579b (diff) | |
download | scala-a840917b32e1c0f25b846f48bd0f12088fe170b2.tar.gz scala-a840917b32e1c0f25b846f48bd0f12088fe170b2.tar.bz2 scala-a840917b32e1c0f25b846f48bd0f12088fe170b2.zip |
1.
just those that are precisely of the form "Code.lift(exp)".
2. The printout of a This(_) tree adds ".this" to the end.
3. This() is now only used for classes. For modules, the code is
rewritten as a Select() of the module.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/reflect/Print.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/reflect/Print.scala b/src/library/scala/reflect/Print.scala index 3cadbc68af..789d112490 100644 --- a/src/library/scala/reflect/Print.scala +++ b/src/library/scala/reflect/Print.scala @@ -43,7 +43,7 @@ object Print extends Function1[Any, String] { case reflect.Function(params, body) => params.map(Print).mkString("(", ", ", ")") + " => " + Print(body) case reflect.This(sym) => - Print(sym) + Print(sym)+".this" case reflect.Block(stats, expr) => (stats ::: List(expr)).map(Print).mkString("{\n", ";\n", "\n}") case reflect.New(tpt) => |