| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 /** | 5 /** |
| 6 * Code for classifying the semantics of identifiers appearing in a Dart file. | 6 * Code for classifying the semantics of identifiers appearing in a Dart file. |
| 7 */ | 7 */ |
| 8 library dart2js.access_semantics; | 8 library dart2js.access_semantics; |
| 9 | 9 |
| 10 import '../constants/expressions.dart'; | 10 import '../constants/expressions.dart'; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 SUPER_FIELD_SETTER, | 173 SUPER_FIELD_SETTER, |
| 174 /// Read from a superclass getter and write to a superclass setter. | 174 /// Read from a superclass getter and write to a superclass setter. |
| 175 SUPER_GETTER_SETTER, | 175 SUPER_GETTER_SETTER, |
| 176 /// Read from a superclass method (closurize) and write to a superclass | 176 /// Read from a superclass method (closurize) and write to a superclass |
| 177 /// setter. | 177 /// setter. |
| 178 SUPER_METHOD_SETTER, | 178 SUPER_METHOD_SETTER, |
| 179 /// Read from a superclass getter and write to a superclass field. | 179 /// Read from a superclass getter and write to a superclass field. |
| 180 SUPER_GETTER_FIELD, | 180 SUPER_GETTER_FIELD, |
| 181 | 181 |
| 182 /// Read from a superclass where the getter is unresolved. | 182 /// Read from a superclass where the getter is unresolved. |
| 183 // TODO(johnniwinther): Use [AccessKind.SUPER_GETTER] when the erroneous |
| 184 // element is no longer needed. |
| 183 UNRESOLVED_SUPER_GETTER, | 185 UNRESOLVED_SUPER_GETTER, |
| 184 /// Read from a superclass getter and write to an unresolved setter. | 186 /// Read from a superclass getter and write to an unresolved setter. |
| 187 // TODO(johnniwinther): Use [AccessKind.SUPER_SETTER] when the erroneous |
| 188 // element is no longer needed. |
| 185 UNRESOLVED_SUPER_SETTER, | 189 UNRESOLVED_SUPER_SETTER, |
| 186 } | 190 } |
| 187 | 191 |
| 188 /** | 192 /** |
| 189 * Data structure used to classify the semantics of a property access or method | 193 * Data structure used to classify the semantics of a property access or method |
| 190 * or function invocation. | 194 * or function invocation. |
| 191 */ | 195 */ |
| 192 abstract class AccessSemantics { | 196 abstract class AccessSemantics { |
| 193 /** | 197 /** |
| 194 * The kind of access. | 198 * The kind of access. |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 | 533 |
| 530 RedirectingFactoryConstructorAccessSemantics( | 534 RedirectingFactoryConstructorAccessSemantics( |
| 531 ConstructorAccessKind kind, | 535 ConstructorAccessKind kind, |
| 532 Element element, | 536 Element element, |
| 533 DartType type, | 537 DartType type, |
| 534 this.effectiveTargetSemantics) | 538 this.effectiveTargetSemantics) |
| 535 : super(kind, element, type); | 539 : super(kind, element, type); |
| 536 } | 540 } |
| 537 | 541 |
| 538 | 542 |
| OLD | NEW |