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

Unified Diff: pkg/analyzer/lib/src/fasta/resolution_applier.dart

Issue 2984013002: Implement AstBuilder integration for method/function invocations. (Closed)
Patch Set: Created 3 years, 5 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/fasta/resolution_applier.dart
diff --git a/pkg/analyzer/lib/src/fasta/resolution_applier.dart b/pkg/analyzer/lib/src/fasta/resolution_applier.dart
index 3624811ffc8b13a58491e1bbf1402c078eabc927..6ee190ce6ac81956df2dbcaee2609f175faf3e12 100644
--- a/pkg/analyzer/lib/src/fasta/resolution_applier.dart
+++ b/pkg/analyzer/lib/src/fasta/resolution_applier.dart
@@ -38,10 +38,11 @@ class ResolutionApplier extends GeneralizingAstVisitor {
@override
void visitMethodInvocation(MethodInvocation node) {
node.target?.accept(this);
+ node.methodName.staticType = _getTypeFor(node.methodName);
scheglov 2017/07/21 04:03:03 Could we move this statement after arguments, so a
Paul Berry 2017/07/21 17:40:11 Unfortunately, your suggestion would break a diffe
scheglov 2017/07/21 17:43:58 OK, thank you for the explanation.
// TODO(paulberry): store resolution of node.methodName.
// TODO(paulberry): store resolution of node.typeArguments.
node.argumentList.accept(this);
- node.staticType = _getTypeFor(node.methodName);
+ node.staticType = _getTypeFor(node.argumentList);
}
@override
« no previous file with comments | « pkg/analyzer/lib/src/fasta/analyzer_diet_listener.dart ('k') | pkg/analyzer/lib/src/fasta/resolution_storer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698