use of com.oracle.truffle.dsl.processor.model.ParameterSpec in project graal by oracle.
the class NodeMethodParser method addDefaultFieldMethodSpec.
protected void addDefaultFieldMethodSpec(MethodSpec methodSpec) {
for (NodeFieldData field : getNode().getFields()) {
if (field.getGetter() == null) {
ParameterSpec spec = new ParameterSpec(field.getName(), field.getType());
spec.setLocal(true);
methodSpec.addOptional(spec);
}
}
}
Aggregations