From e4731931589d6313988337a921747f9caf6fc3e7 Mon Sep 17 00:00:00 2001 From: paltherr Date: Sun, 1 Feb 2004 03:15:00 +0000 Subject: - Generalized use of AConstant to represent con... - Generalized use of AConstant to represent constant values --- sources/scalac/Global.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'sources/scalac/Global.java') 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: -- cgit v1.2.3