Skip to content

Commit

Permalink
Handle two non-operators as if they were operators to prevent a failu…
Browse files Browse the repository at this point in the history
…re 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>
  • Loading branch information
bwilkerson authored and commit-bot@chromium.org committed Dec 9, 2019
1 parent 22fef10 commit 5f7177d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/analyzer/lib/src/fasta/ast_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@ class AstBuilder extends StackListener {
optional('.', operatorToken) ||
optional('?.', operatorToken) ||
optional('..', operatorToken) ||
optional('?..', operatorToken));
optional('?..', operatorToken) ||
optional('===', operatorToken) ||
optional('!==', operatorToken));
debugEvent("BinaryExpression");

if (identical(".", operatorToken.stringValue) ||
Expand Down

0 comments on commit 5f7177d

Please sign in to comment.