| 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 '../common/names.dart' show | |
| 11 Names; | |
| 12 import '../constants/expressions.dart'; | 10 import '../constants/expressions.dart'; |
| 13 import '../elements/elements.dart'; | 11 import '../elements/elements.dart'; |
| 14 import '../dart_types.dart'; | 12 import '../dart_types.dart'; |
| 15 | 13 |
| 16 /// Enum representing the different kinds of destinations which a property | 14 /// Enum representing the different kinds of destinations which a property |
| 17 /// access or method or function invocation might refer to. | 15 /// access or method or function invocation might refer to. |
| 18 enum AccessKind { | 16 enum AccessKind { |
| 19 /// The destination of the conditional access is an instance method, property, | 17 /// The destination of the conditional access is an instance method, property, |
| 20 /// or field of a class, and thus must be determined dynamically. | 18 /// or field of a class, and thus must be determined dynamically. |
| 21 CONDITIONAL_DYNAMIC_PROPERTY, | 19 CONDITIONAL_DYNAMIC_PROPERTY, |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 | 529 |
| 532 RedirectingFactoryConstructorAccessSemantics( | 530 RedirectingFactoryConstructorAccessSemantics( |
| 533 ConstructorAccessKind kind, | 531 ConstructorAccessKind kind, |
| 534 Element element, | 532 Element element, |
| 535 DartType type, | 533 DartType type, |
| 536 this.effectiveTargetSemantics) | 534 this.effectiveTargetSemantics) |
| 537 : super(kind, element, type); | 535 : super(kind, element, type); |
| 538 } | 536 } |
| 539 | 537 |
| 540 | 538 |
| OLD | NEW |