diff --git a/src/main/org/flatlang/tree/annotations/Annotation.java b/src/main/org/flatlang/tree/annotations/Annotation.java index a26c38dde..b571e9b8b 100644 --- a/src/main/org/flatlang/tree/annotations/Annotation.java +++ b/src/main/org/flatlang/tree/annotations/Annotation.java @@ -154,6 +154,14 @@ public String writeParameters() @Override public StringBuilder generateFlatInput(StringBuilder builder, boolean outputChildren, boolean generateArray) { + if (this instanceof ModifierAnnotation) { + ModifierAnnotation mod = (ModifierAnnotation) this; + + if (mod.getAliasUsed() != null) { + return builder.append(mod.getAliasUsed()); + } + } + String name = getClass().getSimpleName(); name = name.substring(0, name.length() - "Annotation".length());