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

Unified Diff: pkg/kernel/lib/ast.dart

Issue 2615193003: Make DirectMethodInvocation a subclass of InvocationExpression. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/ast.dart
diff --git a/pkg/kernel/lib/ast.dart b/pkg/kernel/lib/ast.dart
index 71316b5406eeaedbf6e74c5a748bec6f6ae49155..d3a991b3cff4e4d201c04fd094650cae8631f38c 100644
--- a/pkg/kernel/lib/ast.dart
+++ b/pkg/kernel/lib/ast.dart
@@ -1502,7 +1502,7 @@ class DirectPropertySet extends Expression {
}
/// Directly call an instance method, bypassing ordinary dispatch.
-class DirectMethodInvocation extends Expression {
+class DirectMethodInvocation extends InvocationExpression {
Expression receiver;
Procedure target;
Arguments arguments;
@@ -1512,6 +1512,8 @@ class DirectMethodInvocation extends Expression {
arguments?.parent = this;
}
+ Name get name => target?.name;
+
visitChildren(Visitor v) {
receiver?.accept(v);
target?.acceptReference(v);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698