Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(569)

Unified Diff: pkg/analyzer/lib/src/summary/summarize_const_expr.dart

Issue 1651653002: Verify AST instead of constant values. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/summary/summarize_const_expr.dart
diff --git a/pkg/analyzer/lib/src/summary/summarize_const_expr.dart b/pkg/analyzer/lib/src/summary/summarize_const_expr.dart
index 4787700123cfdec62cc340613eecb38a7ee8045a..8d4f97bcb202af9153f28c9a6149c9fcff625a06 100644
--- a/pkg/analyzer/lib/src/summary/summarize_const_expr.dart
+++ b/pkg/analyzer/lib/src/summary/summarize_const_expr.dart
@@ -168,8 +168,7 @@ abstract class AbstractConstExprSerializer {
if (operator == TokenType.EQ_EQ) {
operations.add(UnlinkedConstOperation.equal);
} else if (operator == TokenType.BANG_EQ) {
- operations.add(UnlinkedConstOperation.equal);
- operations.add(UnlinkedConstOperation.not);
+ operations.add(UnlinkedConstOperation.notEqual);
} else if (operator == TokenType.AMPERSAND_AMPERSAND) {
operations.add(UnlinkedConstOperation.and);
} else if (operator == TokenType.BAR_BAR) {
« no previous file with comments | « pkg/analyzer/lib/src/summary/resynthesize.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698