Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/node/SpecializationMethodParser.java @ 11466:4830676526e3
Truffle-DSL: added infrastructure to assert for DSL error messages.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Thu, 29 Aug 2013 17:39:55 +0200 |
parents | 79041ab43660 |
children | 43eab069ca9b |
comparison
equal
deleted
inserted
replaced
11465:3d618420a4b6 | 11466:4830676526e3 |
---|---|
55 | 55 |
56 private SpecializationData parseSpecialization(TemplateMethod method) { | 56 private SpecializationData parseSpecialization(TemplateMethod method) { |
57 int order = Utils.getAnnotationValue(Integer.class, method.getMarkerAnnotation(), "order"); | 57 int order = Utils.getAnnotationValue(Integer.class, method.getMarkerAnnotation(), "order"); |
58 if (order < 0 && order != Specialization.DEFAULT_ORDER) { | 58 if (order < 0 && order != Specialization.DEFAULT_ORDER) { |
59 method.addError("Invalid order attribute %d. The value must be >= 0 or the default value."); | 59 method.addError("Invalid order attribute %d. The value must be >= 0 or the default value."); |
60 return null; | |
61 } | 60 } |
62 | 61 |
63 AnnotationValue rewriteValue = Utils.getAnnotationValue(method.getMarkerAnnotation(), "rewriteOn"); | 62 AnnotationValue rewriteValue = Utils.getAnnotationValue(method.getMarkerAnnotation(), "rewriteOn"); |
64 List<TypeMirror> exceptionTypes = Utils.getAnnotationValueList(TypeMirror.class, method.getMarkerAnnotation(), "rewriteOn"); | 63 List<TypeMirror> exceptionTypes = Utils.getAnnotationValueList(TypeMirror.class, method.getMarkerAnnotation(), "rewriteOn"); |
65 List<SpecializationThrowsData> exceptionData = new ArrayList<>(); | 64 List<SpecializationThrowsData> exceptionData = new ArrayList<>(); |