Mercurial > hg > truffle
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/NodeCodeGenerator.java @ 16763:e6d15134ca86
Truffle-DSL: fixed formatting problems.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 11 Aug 2014 16:21:54 +0200 |
parents | 23415229349b |
children | e2ebaf1e1b74 |
comparison
equal
deleted
inserted
replaced
16762:ea9903f9684f | 16763:e6d15134ca86 |
---|---|
320 } | 320 } |
321 | 321 |
322 /** | 322 /** |
323 * <pre> | 323 * <pre> |
324 * variant1 $condition != null | 324 * variant1 $condition != null |
325 * | 325 * |
326 * $type $name = defaultValue($type); | 326 * $type $name = defaultValue($type); |
327 * if ($condition) { | 327 * if ($condition) { |
328 * $name = $value; | 328 * $name = $value; |
329 * } | 329 * } |
330 * | 330 * |
331 * variant2 $condition != null | 331 * variant2 $condition != null |
332 * $type $name = $value; | 332 * $type $name = $value; |
333 * </pre> | 333 * </pre> |
334 * | 334 * |
335 * . | 335 * . |
543 | 543 |
544 TypeMirror nodeFactory = ElementUtils.getDeclaredType(ElementUtils.fromTypeMirror(getContext().getTruffleTypes().getNodeFactoryBase()), node.getNodeType()); | 544 TypeMirror nodeFactory = ElementUtils.getDeclaredType(ElementUtils.fromTypeMirror(getContext().getTruffleTypes().getNodeFactoryBase()), node.getNodeType()); |
545 clazz.setSuperClass(nodeFactory); | 545 clazz.setSuperClass(nodeFactory); |
546 clazz.add(createNodeFactoryConstructor(node)); | 546 clazz.add(createNodeFactoryConstructor(node)); |
547 clazz.add(createCreateNodeMethod(node)); | 547 clazz.add(createCreateNodeMethod(node)); |
548 // clazz.add(createGetNodeClassMethod(node)); | |
549 // clazz.add(createGetNodeSignaturesMethod()); | |
550 // clazz.add(createGetChildrenSignatureMethod(node)); | |
551 clazz.add(createGetInstanceMethod(node, createVisibility)); | 548 clazz.add(createGetInstanceMethod(node, createVisibility)); |
552 clazz.add(createInstanceConstant(node, clazz.asType())); | 549 clazz.add(createInstanceConstant(node, clazz.asType())); |
553 } | 550 } |
554 | 551 |
555 for (NodeData childNode : childTypes.keySet()) { | 552 for (NodeData childNode : childTypes.keySet()) { |