Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/node/ExecutableTypeMethodParser.java @ 11194:14d5ff4683e0
Truffle-DSL: Fixed an exception if accidently the node class itself is parsed.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Thu, 01 Aug 2013 20:53:05 +0200 |
parents | 79041ab43660 |
children | 5fbd1ba4a5f3 |
comparison
equal
deleted
inserted
replaced
11193:6879565ee10b | 11194:14d5ff4683e0 |
---|---|
71 } | 71 } |
72 | 72 |
73 @Override | 73 @Override |
74 protected List<TypeMirror> nodeTypeMirrors(NodeData nodeData) { | 74 protected List<TypeMirror> nodeTypeMirrors(NodeData nodeData) { |
75 // executable types not yet available | 75 // executable types not yet available |
76 if (nodeData.getTypeSystem() == null) { | |
77 return Collections.emptyList(); | |
78 } | |
76 List<TypeMirror> types = new ArrayList<>(nodeData.getTypeSystem().getPrimitiveTypeMirrors()); | 79 List<TypeMirror> types = new ArrayList<>(nodeData.getTypeSystem().getPrimitiveTypeMirrors()); |
77 types.add(nodeData.getTypeSystem().getVoidType().getPrimitiveType()); | 80 types.add(nodeData.getTypeSystem().getVoidType().getPrimitiveType()); |
78 return types; | 81 return types; |
79 } | 82 } |
80 | 83 |