Skip to content

Commit 946d60a

Browse files
committed
Add AnonymousMethodNode::isProcedure
1 parent 917b975 commit 946d60a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ public boolean isFunction() {
7474
return getRoutineKind() == RoutineKind.FUNCTION;
7575
}
7676

77+
@Override
78+
public boolean isProcedure() {
79+
return getRoutineKind() == RoutineKind.PROCEDURE;
80+
}
81+
7782
@Override
7883
public String getImage() {
7984
if (image == null) {

delphi-frontend/src/main/java/org/sonar/plugins/communitydelphi/api/ast/AnonymousMethodNode.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ public interface AnonymousMethodNode extends ExpressionNode {
3131
RoutineKind getRoutineKind();
3232

3333
boolean isFunction();
34+
35+
boolean isProcedure();
3436
}

0 commit comments

Comments
 (0)