diff options
author | paltherr <paltherr@epfl.ch> | 2004-02-01 03:15:00 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-02-01 03:15:00 +0000 |
commit | e4731931589d6313988337a921747f9caf6fc3e7 (patch) | |
tree | 92c7298118201c435ef42d99d6b6d6c00a70c64a /sources/scalac/Global.java | |
parent | c9e045f5c67d44313e9e2436ec107e514548272e (diff) | |
download | scala-e4731931589d6313988337a921747f9caf6fc3e7.tar.gz scala-e4731931589d6313988337a921747f9caf6fc3e7.tar.bz2 scala-e4731931589d6313988337a921747f9caf6fc3e7.zip |
- Generalized use of AConstant to represent con...
- Generalized use of AConstant to represent constant values
Diffstat (limited to 'sources/scalac/Global.java')
-rw-r--r-- | sources/scalac/Global.java | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java index 37e2ed95d9..3c24f16468 100644 --- a/sources/scalac/Global.java +++ b/sources/scalac/Global.java @@ -452,9 +452,8 @@ public class Global { SET_EVALUATION_RESULT()), new Tree[] { last, - make.Literal(last.pos, - show(last.getType())).setType( - definitions.JAVA_STRING_TYPE())}); + treeGen.mkStringLit( + last.pos, show(last.getType()))}); } TreeList body = new TreeList(); for (int j = 0; j < impl.body.length; j++) @@ -484,8 +483,7 @@ public class Global { treeGen.mkRef(tree.pos, INTERPRETER()), SHOW_DEFINITION()), new Tree[] { - make.Literal(tree.pos, show(tree.symbol())).setType( - definitions.JAVA_STRING_TYPE())})); + treeGen.mkStringLit(tree.pos, show(tree.symbol()))})); return; case ValDef(_, _, _, _): if (!mustShow(tree.symbol())) return; @@ -495,8 +493,7 @@ public class Global { treeGen.mkRef(tree.pos, INTERPRETER()), SHOW_VALUE_DEFINITION()), new Tree[] { - make.Literal(tree.pos, show(tree.symbol())).setType( - definitions.JAVA_STRING_TYPE()), + treeGen.mkStringLit(tree.pos, show(tree.symbol())), treeGen.Ident(tree.pos, tree.symbol())})); return; default: |