| Index: compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java
|
| ===================================================================
|
| --- compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java (revision 12980)
|
| +++ compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java (working copy)
|
| @@ -47,6 +47,20 @@
|
| return qualifier;
|
| }
|
|
|
| + public DartNode getRealTarget() {
|
| + if (isCascade) {
|
| + DartNode ancestor = getParent();
|
| + while (!(ancestor instanceof DartCascadeExpression)) {
|
| + if (ancestor == null) {
|
| + return qualifier;
|
| + }
|
| + ancestor = ancestor.getParent();
|
| + }
|
| + return ((DartCascadeExpression) ancestor).getTarget();
|
| + }
|
| + return qualifier;
|
| + }
|
| +
|
| public void setName(DartIdentifier newName) {
|
| name = becomeParentOf(newName);
|
| }
|
|
|