Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/SpecializationMethodParser.java @ 16851:2db61eddcb97
Truffle-DSL: argument syntax support for guards
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 18 Aug 2014 18:41:16 +0200 |
parents | 23415229349b |
children | 2c669386b5d0 |
comparison
equal
deleted
inserted
replaced
16850:d6c002f4d2a9 | 16851:2db61eddcb97 |
---|---|
82 } | 82 } |
83 | 83 |
84 List<String> guardDefs = ElementUtils.getAnnotationValueList(String.class, specialization.getMarkerAnnotation(), "guards"); | 84 List<String> guardDefs = ElementUtils.getAnnotationValueList(String.class, specialization.getMarkerAnnotation(), "guards"); |
85 List<GuardExpression> guardExpressions = new ArrayList<>(); | 85 List<GuardExpression> guardExpressions = new ArrayList<>(); |
86 for (String guardDef : guardDefs) { | 86 for (String guardDef : guardDefs) { |
87 guardExpressions.add(new GuardExpression(guardDef)); | 87 guardExpressions.add(new GuardExpression(guardDef, true)); |
88 } | 88 } |
89 specialization.setGuards(guardExpressions); | 89 specialization.setGuards(guardExpressions); |
90 | 90 |
91 List<String> containsDefs = ElementUtils.getAnnotationValueList(String.class, specialization.getMarkerAnnotation(), "contains"); | 91 List<String> containsDefs = ElementUtils.getAnnotationValueList(String.class, specialization.getMarkerAnnotation(), "contains"); |
92 Set<String> containsNames = specialization.getContainsNames(); | 92 Set<String> containsNames = specialization.getContainsNames(); |