Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/TypeSystemTest.java @ 18755:59953a46c56f
Truffle-DSL: migrate DSL tests to use @GenerateNodeFactory.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 29 Dec 2014 23:38:30 +0100 |
parents | 2c68474cc893 |
children | 3912400fc33a |
comparison
equal
deleted
inserted
replaced
18754:59bf50cc5a32 | 18755:59953a46c56f |
---|---|
67 } | 67 } |
68 | 68 |
69 } | 69 } |
70 | 70 |
71 @TypeSystemReference(SimpleTypes.class) | 71 @TypeSystemReference(SimpleTypes.class) |
72 @GenerateNodeFactory | |
72 public static class ValueNode extends Node { | 73 public static class ValueNode extends Node { |
73 | 74 |
74 public ValueNode() { | 75 public ValueNode() { |
75 super(null); | 76 super(null); |
76 } | 77 } |
132 return (ValueNode) super.copy(); | 133 return (ValueNode) super.copy(); |
133 } | 134 } |
134 } | 135 } |
135 | 136 |
136 @NodeChild(value = "children", type = ValueNode[].class) | 137 @NodeChild(value = "children", type = ValueNode[].class) |
138 @GenerateNodeFactory | |
137 public abstract static class ChildrenNode extends ValueNode { | 139 public abstract static class ChildrenNode extends ValueNode { |
138 | 140 |
139 } | 141 } |
140 | 142 |
141 @TypeSystemReference(SimpleTypes.class) | 143 @TypeSystemReference(SimpleTypes.class) |