Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
b3b00 committed Jul 30, 2024
1 parent 880fb16 commit 8b8074c
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,15 @@ protected SyntaxNode<IN> ManageExpressionRules(Rule<IN> rule, SyntaxNode<IN> nod

if (operatorIndex >= 0)
if (node.Children[operatorIndex] is SyntaxLeaf<IN> operatorNode)
if (operatorNode != null)
{
var visitor = rule.GetVisitor(operatorNode.Token.TokenID);
if (visitor != null)
{
var visitor = rule.GetVisitor(operatorNode.Token.TokenID);
if (visitor != null)
{
node.Visitor = visitor;
node.Operation = rule.GetOperation(operatorNode.Token.TokenID);
}
node.Visitor = visitor;
node.Operation = rule.GetOperation(operatorNode.Token.TokenID);
}

}

break;
}
case false:
Expand Down

0 comments on commit 8b8074c

Please sign in to comment.