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

Unified Diff: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java

Issue 10562020: Clean up DartAstUtilities.getElement(), analysis should provide element for every identifier (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 | editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/ast/DartAstUtilities.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
diff --git a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
index 5e110bf054ba4083cab6bbcdab02797104325356..4698468cd3fa5b368d2dd70d60ef7211a0e307eb 100644
--- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
+++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
@@ -1146,7 +1146,11 @@ public class TypeAnalyzer implements DartCompilationPhase {
List<DartExpression> arguments = node.getArguments();
Member member = lookupMember(receiver, name, node.getFunctionName());
if (member != null) {
- node.setElement(member.getElement());
+ Element methodElement = member.getElement();
+ node.setElement(methodElement);
+ if (node.getFunctionName() != null) {
+ node.getFunctionName().setElement(methodElement);
+ }
}
return analyzeMethodInvocation(receiver, member, name,
node.getFunctionName(), analyzeArgumentTypes(arguments),
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/ast/DartAstUtilities.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698