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

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

Issue 10986095: Additional fixes for cascades (issue 5146) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.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
===================================================================
--- compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (revision 13023)
+++ compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (working copy)
@@ -1364,7 +1364,7 @@
@Override
public Type visitArrayAccess(DartArrayAccess node) {
- Type target = typeOf(node.getTarget());
+ Type target = typeOf(node.getRealTarget());
DartExpression argKey = node.getKey();
// t[k] = v
if (node.getParent() instanceof DartBinaryExpression) {
@@ -1437,7 +1437,7 @@
if (node.getFunctionName().isResolutionAlreadyReportedThatTheMethodCouldNotBeFound()) {
return dynamicType;
}
- DartNode target = node.getTarget();
+ DartNode target = node.getRealTarget();
DartIdentifier nameNode = node.getFunctionName();
String name = node.getFunctionNameString();
Element element = node.getElement();
@@ -2664,17 +2664,6 @@
} else {
parameters = null;
}
- if (node instanceof DartMethodInvocation) {
- DartMethodInvocation invocation = (DartMethodInvocation) node;
- if (invocation.isCascade()) {
- checkInvocation(argumentNodes, diagnosticNode, name, type, parameters);
- DartExpression target = invocation.getTarget();
- if (target == null) {
- return getCurrentClass();
- }
- return target.accept(this);
- }
- }
return checkInvocation(argumentNodes, diagnosticNode, name, type, parameters);
}
« no previous file with comments | « no previous file | compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698