Resolve "Make grammar(s) more concise"
Compare changes
- René Schöne authored
- resolve todos, mainly renaming - fix negative test cases - run negative test cases also in CI - move generateAspect into Compiler.java
- [OLD] InnerMappingDefinition needed for iteration attribute (first, last) - not possible with list-relation
@@ -15,13 +15,10 @@ aspect NewStuff {
@@ -15,13 +15,10 @@ aspect NewStuff {
@@ -47,20 +44,20 @@ aspect NewStuff {
@@ -47,20 +44,20 @@ aspect NewStuff {
@@ -72,7 +69,7 @@ aspect NewStuff {
@@ -72,7 +69,7 @@ aspect NewStuff {
syn TokenComponent EndpointDefinition.token() = getEndpointTarget().asTokenEndpointTarget().getToken();
@@ -85,7 +82,7 @@ aspect NewStuff {
@@ -85,7 +82,7 @@ aspect NewStuff {
syn MInnerMappingDefinition MEndpointDefinition.lastDefinition() = getInnerMappingDefinition(getNumInnerMappingDefinition() - 1);
eq MEndpointDefinition.getInnerMappingDefinition(int i).isLast() = i == getNumInnerMappingDefinition() - 1;
eq MEndpointDefinition.getInnerMappingDefinition(int i).inputVarName() = i == 0 ? firstInputVarName() : getInnerMappingDefinition(i - 1).outputVarName();
@@ -112,45 +109,42 @@ aspect NewStuff {
@@ -112,45 +109,42 @@ aspect NewStuff {
return preemptiveExpectedValue() + " != null ? " + preemptiveExpectedValue() + ".equals(" + lastResult() + ") : " + lastResult() + " == null";
syn String EndpointDefinition.sender() = getEndpointTarget().senderName(); // only needed for send endpoints
syn String EndpointDefinition.lastValue() = sender() + ".lastValue"; // only needed for send endpoints
eq TypeEndpointTarget.entityName() = getType().getName() + (typeIsList() && !containingEndpointDefinition().getIndexBasedListAccess() ? "List" : "");
syn String EndpointDefinition.resolveInListMethodName() = "_ragconnect_resolve" + entityName() + "InList";
syn String DependencyDefinition.targetParentTypeName() = getTarget().containingTypeDecl().getName();
syn String DependencyDefinition.sourceParentTypeName() = getSource().containingTypeDecl().getName();
syn String TokenComponent.internalName() = needProxyToken() ? "_internal_" + getName() : externalName();
@@ -203,9 +197,8 @@ aspect NewStuff {
@@ -203,9 +197,8 @@ aspect NewStuff {
syn JastAddList<MInnerMappingDefinition> EndpointDefinition.innerMappingDefinitions() = toMustache().getInnerMappingDefinitionList();
syn boolean EndpointDefinition.hasTypeEndpointTarget() = getEndpointTarget().isTypeEndpointTarget();
@@ -215,9 +208,9 @@ aspect OldStuff { // copied unchanged, but should work
@@ -215,9 +208,9 @@ aspect OldStuff { // copied unchanged, but should work
@@ -226,72 +219,37 @@ aspect OldStuff { // copied unchanged, but should work
@@ -226,72 +219,37 @@ aspect OldStuff { // copied unchanged, but should work
syn String MInnerMappingDefinition.outputVarName() = "result" + methodName(); // we do not need "_" in between here, because methodName begins with one
com.github.mustachejava.reflect.ReflectionObjectHandler roh = new com.github.mustachejava.reflect.ReflectionObjectHandler() {
public com.github.mustachejava.Binding createBinding(String name, final com.github.mustachejava.TemplateContext tc, com.github.mustachejava.Code code) {
protected synchronized com.github.mustachejava.util.Wrapper getWrapper(String name, java.util.List<Object> scopes) {
com.github.mustachejava.DefaultMustacheFactory mf = new com.github.mustachejava.DefaultMustacheFactory();