diff options
author | paltherr <paltherr@epfl.ch> | 2004-06-02 16:38:31 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-06-02 16:38:31 +0000 |
commit | 501082e6380c5e2268c7bf9e88aff17de62b6169 (patch) | |
tree | 2d1cb648ea569aa3b03aa1820fc254684afd4fbc /sources/scalac/ast | |
parent | b4f40a720cc5dbc2472b1882615226cce14b5e70 (diff) | |
download | scala-501082e6380c5e2268c7bf9e88aff17de62b6169.tar.gz scala-501082e6380c5e2268c7bf9e88aff17de62b6169.tar.bz2 scala-501082e6380c5e2268c7bf9e88aff17de62b6169.zip |
- Changed _TYPE methods in Definitions for prim...
- Changed _TYPE methods in Definitions for primitive value and array
types
Diffstat (limited to 'sources/scalac/ast')
-rw-r--r-- | sources/scalac/ast/TreeGen.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/scalac/ast/TreeGen.java b/sources/scalac/ast/TreeGen.java index 9e08df3f56..bf481e1b39 100644 --- a/sources/scalac/ast/TreeGen.java +++ b/sources/scalac/ast/TreeGen.java @@ -737,7 +737,7 @@ public class TreeGen implements Kinds, Modifiers, TypeTags { public Assign Assign(int pos, Tree lhs, Tree rhs) { Assign tree = make.Assign(pos, lhs, rhs); global.nextPhase(); - tree.setType(definitions.UNIT_TYPE()); + tree.setType(definitions.void_TYPE()); global.prevPhase(); return tree; } @@ -895,7 +895,7 @@ public class TreeGen implements Kinds, Modifiers, TypeTags { if (values.length == 0) return mkNewArray(pos, element, 0); Tree[] trees = new Tree[1 + values.length]; Symbol array = newLocal( - owner, pos, FINAL, "array", definitions.ARRAY_TYPE(element)); + owner, pos, FINAL, "array", definitions.array_TYPE(element)); trees[0] = ValDef(array, mkNewArray(pos, element, values.length)); for (int i = 0; i < values.length; i++) trees[1 + i] = mkArraySet(Ident(pos, array), i, values[i]); @@ -1251,7 +1251,7 @@ public class TreeGen implements Kinds, Modifiers, TypeTags { makeVisitorMethod(pos, Names.apply, applyVisitor, pattype, restype, clazz, owner), makeVisitorMethod(pos, Names.isDefinedAt, isDefinedAtVisitor, - pattype, definitions.BOOLEAN_TYPE(), clazz, owner)}; + pattype, definitions.boolean_TYPE(), clazz, owner)}; Tree classDef = ClassDef(clazz, memberTrees); Tree alloc = New(mkApply__(mkPrimaryConstructorLocalRef(pos, clazz))); return mkBlock(classDef, Typed(alloc, parentTypes[1])); // !!! Typed |