Skip to content
Snippets Groups Projects

Resolve "Feature: Send endpoint for attributes"

Merged René Schöne requested to merge 38-feature-send-endpoint-for-attributes into dev
Files
18
@@ -23,6 +23,19 @@ aspect ParserRewrites {
result.setTypeDecl(TypeDecl.createRef(getTypeName()));
return result;
}
when (getIsAttribute())
to AttributeEndpointTarget {
AttributeEndpointTarget result = new AttributeEndpointTarget();
String[] tokens = this.getChildName().split(":");
String attributeName = tokens[0];
String attributeTypeName = tokens[1];
result.copyOtherValuesFrom(this);
result.setName(attributeName);
result.setTypeName(attributeTypeName);
result.setParentTypeDecl(TypeDecl.createRef(getTypeName()));
return result;
}
}
syn String UntypedEndpointTarget.combinedName() = getTypeName() + "." + getChildName();
Loading