Mercurial > hg > truffle
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/NodeParser.java @ 18754:59bf50cc5a32
Truffle-DSL: implemented @GenerateNodeFactory to enable generation of factories. Factory generation is now disabled by default.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 29 Dec 2014 23:38:25 +0100 |
parents | 09d99d3c0c95 |
children | a665483c3881 |
comparison
equal
deleted
inserted
replaced
18753:f6b8787dc113 | 18754:59bf50cc5a32 |
---|---|
249 } | 249 } |
250 | 250 |
251 List<NodeFieldData> fields = parseFields(typeHierarchy, elements); | 251 List<NodeFieldData> fields = parseFields(typeHierarchy, elements); |
252 List<NodeChildData> children = parseChildren(typeHierarchy, elements); | 252 List<NodeChildData> children = parseChildren(typeHierarchy, elements); |
253 List<NodeExecutionData> executions = parseExecutions(children, elements); | 253 List<NodeExecutionData> executions = parseExecutions(children, elements); |
254 | 254 boolean useNodeFactory = findFirstAnnotation(typeHierarchy, GenerateNodeFactory.class) != null; |
255 NodeData nodeData = new NodeData(context, templateType, shortName, typeSystem, children, executions, fields, assumptionsList); | 255 |
256 NodeData nodeData = new NodeData(context, templateType, shortName, typeSystem, children, executions, fields, assumptionsList, useNodeFactory); | |
256 | 257 |
257 parsedNodes.put(ElementUtils.getQualifiedName(templateType), nodeData); | 258 parsedNodes.put(ElementUtils.getQualifiedName(templateType), nodeData); |
258 | 259 |
259 return nodeData; | 260 return nodeData; |
260 } | 261 } |