comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/TruffleTypes.java @ 11742:85b846b31690

Truffle-DSL: automatically generate copy constructor if super constructor expects only SourceSection parameter.
author Andreas Woess <andreas.woess@jku.at>
date Fri, 20 Sep 2013 16:30:18 +0200
parents 4830676526e3
children 29de278b7c1b
comparison
equal deleted inserted replaced
11735:9c9683970656 11742:85b846b31690
54 private final DeclaredType nodeInfoAnnotation; 54 private final DeclaredType nodeInfoAnnotation;
55 private final DeclaredType nodeInfoKind; 55 private final DeclaredType nodeInfoKind;
56 private final TypeMirror compilerDirectives; 56 private final TypeMirror compilerDirectives;
57 private final TypeMirror compilerAsserts; 57 private final TypeMirror compilerAsserts;
58 private final DeclaredType slowPath; 58 private final DeclaredType slowPath;
59 private final DeclaredType sourceSection;
59 private final DeclaredType truffleOptions; 60 private final DeclaredType truffleOptions;
60 private final TypeElement expectError; 61 private final TypeElement expectError;
61 62
62 private final List<String> errors = new ArrayList<>(); 63 private final List<String> errors = new ArrayList<>();
63 64
73 assumption = getRequired(context, Assumption.class); 74 assumption = getRequired(context, Assumption.class);
74 invalidAssumption = getRequired(context, InvalidAssumptionException.class); 75 invalidAssumption = getRequired(context, InvalidAssumptionException.class);
75 nodeInfoAnnotation = getRequired(context, NodeInfo.class); 76 nodeInfoAnnotation = getRequired(context, NodeInfo.class);
76 nodeInfoKind = getRequired(context, NodeInfo.Kind.class); 77 nodeInfoKind = getRequired(context, NodeInfo.Kind.class);
77 slowPath = getRequired(context, SlowPath.class); 78 slowPath = getRequired(context, SlowPath.class);
79 sourceSection = getRequired(context, SourceSection.class);
78 truffleOptions = getRequired(context, TruffleOptions.class); 80 truffleOptions = getRequired(context, TruffleOptions.class);
79 expectError = (TypeElement) getRequired(context, ExpectError.class).asElement(); 81 expectError = (TypeElement) getRequired(context, ExpectError.class).asElement();
80 } 82 }
81 83
82 public TypeElement getExpectError() { 84 public TypeElement getExpectError() {
156 } 158 }
157 159
158 public DeclaredType getSlowPath() { 160 public DeclaredType getSlowPath() {
159 return slowPath; 161 return slowPath;
160 } 162 }
163
164 public Object getSourceSection() {
165 return sourceSection;
166 }
161 } 167 }