| Index: compiler/java/com/google/dart/compiler/ast/DartFunctionObjectInvocation.java
|
| ===================================================================
|
| --- compiler/java/com/google/dart/compiler/ast/DartFunctionObjectInvocation.java (revision 13023)
|
| +++ compiler/java/com/google/dart/compiler/ast/DartFunctionObjectInvocation.java (working copy)
|
| @@ -12,17 +12,10 @@
|
| public class DartFunctionObjectInvocation extends DartInvocation {
|
|
|
| private DartExpression target;
|
| - private boolean isCascade;
|
|
|
| public DartFunctionObjectInvocation(DartExpression target, List<DartExpression> args) {
|
| - this(target, false, args);
|
| - }
|
| -
|
| - public DartFunctionObjectInvocation(DartExpression target, boolean isCascade,
|
| - List<DartExpression> args) {
|
| super(args);
|
| this.target = becomeParentOf(target);
|
| - this.isCascade = isCascade;
|
| }
|
|
|
| @Override
|
| @@ -30,24 +23,6 @@
|
| return target;
|
| }
|
|
|
| - public DartExpression getRealTarget() {
|
| - if (isCascade) {
|
| - DartNode ancestor = getParent();
|
| - while (!(ancestor instanceof DartCascadeExpression)) {
|
| - if (ancestor == null) {
|
| - return target;
|
| - }
|
| - ancestor = ancestor.getParent();
|
| - }
|
| - return ((DartCascadeExpression) ancestor).getTarget();
|
| - }
|
| - return target;
|
| - }
|
| -
|
| - public boolean isCascade() {
|
| - return isCascade;
|
| - }
|
| -
|
| @Override
|
| public void visitChildren(ASTVisitor<?> visitor) {
|
| safelyVisitChild(target, visitor);
|
|
|