| 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 e3779967c26f29a7c8c0a0d0db0c87001f042c7f..454b0b0ae32870614a8c720cf1ee3f8ac2834d8a 100644
|
| --- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| +++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| @@ -32,6 +32,7 @@ import com.google.dart.compiler.ast.DartBinaryExpression;
|
| import com.google.dart.compiler.ast.DartBlock;
|
| import com.google.dart.compiler.ast.DartBooleanLiteral;
|
| import com.google.dart.compiler.ast.DartBreakStatement;
|
| +import com.google.dart.compiler.ast.DartCascadeExpression;
|
| import com.google.dart.compiler.ast.DartCase;
|
| import com.google.dart.compiler.ast.DartCatchBlock;
|
| import com.google.dart.compiler.ast.DartClass;
|
| @@ -1442,6 +1443,14 @@ public class TypeAnalyzer implements DartCompilationPhase {
|
| }
|
|
|
| @Override
|
| + public Type visitCascadeExpression(DartCascadeExpression node) {
|
| + DartExpression target = node.getTarget();
|
| + Type type = nonVoidTypeOf(target);
|
| + node.visitChildren(this);
|
| + return type;
|
| + }
|
| +
|
| + @Override
|
| public Type visitFunctionObjectInvocation(DartFunctionObjectInvocation node) {
|
| ClassElement element = functionType.getElement();
|
| node.setElement(element);
|
|
|