File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
delphi-frontend/src/main/java
au/com/integradev/delphi/antlr/ast/node
org/sonar/plugins/communitydelphi/api/ast Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
1212- ** API:** ` RepeatStatementNode::getGuardExpression ` method.
1313- ** API:** ` RepeatStatementNode::getStatementList ` method.
14+ - ** API:** ` CaseStatementNode::getSelectorExpression ` method.
1415
1516### Fixed
1617
Original file line number Diff line number Diff line change 2525import org .sonar .plugins .communitydelphi .api .ast .CaseItemStatementNode ;
2626import org .sonar .plugins .communitydelphi .api .ast .CaseStatementNode ;
2727import org .sonar .plugins .communitydelphi .api .ast .ElseBlockNode ;
28+ import org .sonar .plugins .communitydelphi .api .ast .ExpressionNode ;
2829
2930public final class CaseStatementNodeImpl extends DelphiNodeImpl implements CaseStatementNode {
3031 public CaseStatementNodeImpl (Token token ) {
3132 super (token );
3233 }
3334
35+ @ Override
36+ public ExpressionNode getSelectorExpression () {
37+ return getFirstChildOfType (ExpressionNode .class );
38+ }
39+
3440 @ Override
3541 public List <CaseItemStatementNode > getCaseItems () {
3642 return findChildrenOfType (CaseItemStatementNode .class );
Original file line number Diff line number Diff line change 2222import javax .annotation .Nullable ;
2323
2424public interface CaseStatementNode extends StatementNode {
25+ ExpressionNode getSelectorExpression ();
26+
2527 List <CaseItemStatementNode > getCaseItems ();
2628
2729 @ Nullable
You can’t perform that action at this time.
0 commit comments