OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 package com.google.dart.compiler.ast; | 5 package com.google.dart.compiler.ast; |
6 | 6 |
7 import com.google.dart.compiler.common.Symbol; | 7 import com.google.dart.compiler.common.Symbol; |
8 import com.google.dart.compiler.resolver.Element; | 8 import com.google.dart.compiler.resolver.Element; |
9 | 9 |
10 /** | 10 /** |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 @Override | 44 @Override |
45 public boolean isAssignable() { | 45 public boolean isAssignable() { |
46 return true; | 46 return true; |
47 } | 47 } |
48 | 48 |
49 public String getTargetName() { | 49 public String getTargetName() { |
50 return targetName; | 50 return targetName; |
51 } | 51 } |
52 | 52 |
| 53 /** |
| 54 * Different access from getSymbol() to help distinguish parts of an expression |
| 55 * when walking a DartPropertyAccess. |
| 56 */ |
53 public Element getTargetSymbol() { | 57 public Element getTargetSymbol() { |
54 return targetSymbol; | 58 return targetSymbol; |
55 } | 59 } |
56 | 60 |
57 @Override | 61 @Override |
58 public void setSymbol(Symbol symbol) { | 62 public void setSymbol(Symbol symbol) { |
59 this.targetSymbol = (Element) symbol; | 63 this.targetSymbol = (Element) symbol; |
60 } | 64 } |
61 | 65 |
62 @Override | 66 @Override |
(...skipping 14 matching lines...) Expand all Loading... |
77 @Override | 81 @Override |
78 public void setReferencedElement(Element element) { | 82 public void setReferencedElement(Element element) { |
79 referencedElement = element; | 83 referencedElement = element; |
80 } | 84 } |
81 | 85 |
82 @Override | 86 @Override |
83 public Element getReferencedElement() { | 87 public Element getReferencedElement() { |
84 return referencedElement; | 88 return referencedElement; |
85 } | 89 } |
86 } | 90 } |
OLD | NEW |