| Index: compiler/java/com/google/dart/compiler/ast/DartArrayAccess.java
|
| ===================================================================
|
| --- compiler/java/com/google/dart/compiler/ast/DartArrayAccess.java (revision 12980)
|
| +++ compiler/java/com/google/dart/compiler/ast/DartArrayAccess.java (working copy)
|
| @@ -44,6 +44,20 @@
|
| 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;
|
| + }
|
| +
|
| @Override
|
| public void visitChildren(ASTVisitor<?> visitor) {
|
| safelyVisitChild(target, visitor);
|
|
|