| Index: compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java
|
| diff --git a/compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java b/compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java
|
| index f9e9f65a9e855c44472aaf238a512eb4857a3ecd..fddc51ca456036332ba5831f6cfa4095b25819fa 100644
|
| --- a/compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java
|
| +++ b/compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java
|
| @@ -6,6 +6,8 @@ package com.google.dart.compiler.ast;
|
|
|
| import com.google.dart.compiler.common.Symbol;
|
| import com.google.dart.compiler.resolver.Element;
|
| +import com.google.dart.compiler.type.Type;
|
| +import com.google.dart.compiler.type.Types;
|
|
|
| /**
|
| * Represents a Dart property access expression (a.b).
|
| @@ -16,6 +18,7 @@ public class DartPropertyAccess extends DartExpression implements ElementReferen
|
| private DartIdentifier name;
|
| private DartExpression normalizedNode = this;
|
| private Element referencedElement;
|
| + private Type type;
|
|
|
| public DartPropertyAccess(DartNode qualifier, DartIdentifier name) {
|
| this.qualifier = becomeParentOf(qualifier);
|
| @@ -63,6 +66,16 @@ public class DartPropertyAccess extends DartExpression implements ElementReferen
|
| }
|
|
|
| @Override
|
| + public void setType(Type type) {
|
| + this.type = type;
|
| + }
|
| +
|
| + @Override
|
| + public Type getType() {
|
| + return type;
|
| + }
|
| +
|
| + @Override
|
| public void traverse(DartVisitor v, DartContext ctx) {
|
| if (v.visit(this, ctx)) {
|
| qualifier = becomeParentOf(v.accept(qualifier));
|
|
|