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

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

Issue 2661803002: Issue 28491. Add support for UnlinkedExprOperation.pushSuper even though it is not allowed. (Closed)
Patch Set: Created 3 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 52ad3bc029f09a904ca5c913af5dc79c9328f41e..4c308c5594a0648d905be87d2a45317f675b8916 100644
--- a/pkg/analyzer/lib/src/summary/summarize_const_expr.dart
+++ b/pkg/analyzer/lib/src/summary/summarize_const_expr.dart
@@ -388,6 +388,8 @@ abstract class AbstractConstExprSerializer {
_serialize(expr.expression);
references.add(serializeTypeName(expr.type));
operations.add(UnlinkedExprOperation.typeCheck);
+ } else if (expr is SuperExpression) {
+ operations.add(UnlinkedExprOperation.pushSuper);
} else if (expr is ThisExpression) {
operations.add(UnlinkedExprOperation.pushThis);
} else if (expr is ThrowExpression) {

Powered by Google App Engine
This is Rietveld 408576698