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

Unified Diff: pkg/compiler/lib/src/resolved_visitor.dart

Issue 1157333003: Compute more SendStructures on ResolverVisitor. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Check for explicit this property access. Created 5 years, 7 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
« no previous file with comments | « pkg/compiler/lib/src/resolution/send_resolver.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolved_visitor.dart
diff --git a/pkg/compiler/lib/src/resolved_visitor.dart b/pkg/compiler/lib/src/resolved_visitor.dart
index d75834b61757f878b7689f8641abaa627cb8c24e..6828a795257b606adf83058b87bbb004050abf9b 100644
--- a/pkg/compiler/lib/src/resolved_visitor.dart
+++ b/pkg/compiler/lib/src/resolved_visitor.dart
@@ -239,7 +239,8 @@ abstract class NewResolvedVisitor<R> extends BaseResolvedVisitor<R>
bool checkResolvedKind(Node node,
ResolvedKind oldKind,
ResolvedKind newKind) {
- return invariant(node, oldKind == newKind, message: '$oldKind != $newKind');
+ return invariant(node, oldKind == newKind,
+ message: 'old=$oldKind != new=$newKind');
}
ResolvedKind computeResolvedKindFromStructure(
@@ -436,7 +437,7 @@ class ResolvedSemanticDispatcher<R> extends Object
Send node,
FunctionElement setter,
ResolvedKindVisitor<R> visitor) {
- return visitor.visitGetterSend(node);
+ return visitor.visitSuperSend(node);
}
@override
@@ -495,6 +496,14 @@ class ResolvedSemanticDispatcher<R> extends Object
}
@override
+ R visitUnresolvedSuperGet(
+ Send node,
+ Element element,
+ ResolvedKindVisitor<R> visitor) {
+ return visitor.visitSuperSend(node);
+ }
+
+ @override
R visitUnresolvedInvoke(
Send node,
Element element,
« no previous file with comments | « pkg/compiler/lib/src/resolution/send_resolver.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698