Skip to content

Commit 5f7177d

Browse files
bwilkersoncommit-bot@chromium.org
authored andcommitted
Handle two non-operators as if they were operators to prevent a failure when assertions are enabled
Change-Id: Ia2011d240866ac9f569aa9aacc374e33c89d74d0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127680 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
1 parent 22fef10 commit 5f7177d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/analyzer/lib/src/fasta/ast_builder.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,9 @@ class AstBuilder extends StackListener {
586586
optional('.', operatorToken) ||
587587
optional('?.', operatorToken) ||
588588
optional('..', operatorToken) ||
589-
optional('?..', operatorToken));
589+
optional('?..', operatorToken) ||
590+
optional('===', operatorToken) ||
591+
optional('!==', operatorToken));
590592
debugEvent("BinaryExpression");
591593

592594
if (identical(".", operatorToken.stringValue) ||

0 commit comments

Comments
 (0)