comparison graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/NodeContainerTest.java @ 11191:c7d9ff67beed

Truffle-DSL: Fixed argument order problem for test cases.
author Christian Humer <christian.humer@gmail.com>
date Thu, 01 Aug 2013 20:47:57 +0200
parents 79041ab43660
children efe58aa92f86
comparison
equal deleted inserted replaced
11190:4eb23800c907 11191:c7d9ff67beed
160 return internal.hashCode(); 160 return internal.hashCode();
161 } 161 }
162 } 162 }
163 163
164 @NodeChild(value = "children", type = ValueNode[].class) 164 @NodeChild(value = "children", type = ValueNode[].class)
165 @NodeField(name = "context", type = Context.class)
165 abstract static class BuiltinNode extends ValueNode { 166 abstract static class BuiltinNode extends ValueNode {
166 167
167 protected final Context context; 168 public abstract Context getContext();
168
169 public BuiltinNode(BuiltinNode node) {
170 this(node.context);
171 }
172
173 public BuiltinNode(Context context) {
174 this.context = context;
175 }
176
177 public Context getContext() {
178 return context;
179 }
180 } 169 }
181 170
182 static class Context { 171 static class Context {
183 172
184 } 173 }