Skip to content

Commit 75aa74d

Browse files
committed
sq fixes
1 parent da201de commit 75aa74d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/main/java/com/github/_1c_syntax/bsl/languageserver/utils/expressiontree/ExpressionTreeBuildingVisitor.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ public int getPriority() {
6969
public static BslExpression buildExpressionTree(BSLParser.ExpressionContext ctx) {
7070
var instance = new ExpressionTreeBuildingVisitor();
7171
instance.visitExpression(ctx);
72-
return instance.getExpressionTree();
72+
@SuppressWarnings("NullAway")
73+
var result = instance.getExpressionTree(); // тут не будет null
74+
return result;
7375
}
7476

7577
/**
@@ -155,10 +157,10 @@ public ParseTree visitMember(BSLParser.MemberContext ctx) {
155157
// нужен ручной dispatch на конкретного child,
156158
// т.к. нет отдельного правила для подвыражения в скобках
157159
// constValue
158-
// | complexIdentifier
159-
// | (( LPAREN expression RPAREN ) modifier*) // нечего оверрайдить !
160-
// | (IDENTIFIER | globalMethodCall) // нечего оверрайдить !
161-
// | waitExpression
160+
// | complexIdentifier
161+
// | (( LPAREN expression RPAREN ) modifier*) // нечего оверрайдить !
162+
// | (IDENTIFIER | globalMethodCall) // нечего оверрайдить !
163+
// | waitExpression
162164

163165
var unaryModifier = ctx.unaryModifier();
164166
var childIndex = 0;

0 commit comments

Comments
 (0)