Skip to content

Commit 8415cc1

Browse files
cirrasfourls
authored andcommitted
Always use the full attribute expression in the AttributeNode image
This is more consistent considering attributes can contain arbitrary expressions. There was never any real reason to exclude the argument list from these node images.
1 parent 8bc60fc commit 8415cc1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

delphi-frontend/src/main/java/au/com/integradev/delphi/antlr/ast/node/AttributeNodeImpl.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,10 @@ public NameOccurrence getConstructorNameOccurrence() {
9191

9292
@Override
9393
public String getImage() {
94-
DelphiNode imageNode = getNameReference();
95-
if (imageNode == null) {
96-
imageNode = getExpression();
97-
}
98-
99-
String image = imageNode.getImage();
94+
String image = getExpression().getImage();
10095
if (isAssembly()) {
10196
image = "assembly : " + image;
10297
}
103-
10498
return image;
10599
}
106100

0 commit comments

Comments
 (0)