Skip to content

Commit

Permalink
Output aliasUsed for modifier annotations if an alias was used
Browse files Browse the repository at this point in the history
  • Loading branch information
BSteffaniak committed Jul 13, 2022
1 parent df96045 commit aabf044
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/org/flatlang/tree/annotations/Annotation.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit aabf044

Please sign in to comment.