Mercurial > hg > truffle
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/node/CreateCastParser.java @ 11467:43eab069ca9b
Truffle-DSL: improved error recovery of type systems and improved error testability infrastructure.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Thu, 29 Aug 2013 19:19:00 +0200 |
parents | 7a8835ec5e7d |
children | 25ecb47a6d0e |
comparison
equal
deleted
inserted
replaced
11466:4830676526e3 | 11467:43eab069ca9b |
---|---|
59 spec.addRequired(new ParameterSpec("castedChild", baseType)).setSignature(true); | 59 spec.addRequired(new ParameterSpec("castedChild", baseType)).setSignature(true); |
60 return spec; | 60 return spec; |
61 } | 61 } |
62 | 62 |
63 @Override | 63 @Override |
64 public CreateCastData create(TemplateMethod method) { | 64 public CreateCastData create(TemplateMethod method, boolean invalid) { |
65 AnnotationMirror mirror = method.getMarkerAnnotation(); | 65 AnnotationMirror mirror = method.getMarkerAnnotation(); |
66 List<String> childNames = Utils.getAnnotationValueList(String.class, mirror, "value"); | 66 List<String> childNames = Utils.getAnnotationValueList(String.class, mirror, "value"); |
67 CreateCastData cast = new CreateCastData(method, childNames); | 67 CreateCastData cast = new CreateCastData(method, childNames); |
68 AnnotationValue value = Utils.getAnnotationValue(mirror, "value"); | 68 AnnotationValue value = Utils.getAnnotationValue(mirror, "value"); |
69 TypeMirror type = null; | 69 TypeMirror type = null; |