| 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 ConstantAccess.typedefTypeLiteral(this.constant) | 284 ConstantAccess.typedefTypeLiteral(this.constant) |
| 285 : super._(AccessKind.TYPEDEF_TYPE_LITERAL); | 285 : super._(AccessKind.TYPEDEF_TYPE_LITERAL); |
| 286 | 286 |
| 287 ConstantAccess.dynamicTypeLiteral(this.constant) | 287 ConstantAccess.dynamicTypeLiteral(this.constant) |
| 288 : super._(AccessKind.DYNAMIC_TYPE_LITERAL); | 288 : super._(AccessKind.DYNAMIC_TYPE_LITERAL); |
| 289 } | 289 } |
| 290 | 290 |
| 291 class StaticAccess extends AccessSemantics { | 291 class StaticAccess extends AccessSemantics { |
| 292 final Element element; | 292 final Element element; |
| 293 | 293 |
| 294 StaticAccess._(AccessKind kind, this.element) : super._(kind); | 294 StaticAccess.internal(AccessKind kind, this.element) : super._(kind); |
| 295 | 295 |
| 296 StaticAccess.superSetter(MethodElement this.element) | 296 StaticAccess.superSetter(MethodElement this.element) |
| 297 : super._(AccessKind.SUPER_SETTER); | 297 : super._(AccessKind.SUPER_SETTER); |
| 298 | 298 |
| 299 StaticAccess.superField(FieldElement this.element) | 299 StaticAccess.superField(FieldElement this.element) |
| 300 : super._(AccessKind.SUPER_FIELD); | 300 : super._(AccessKind.SUPER_FIELD); |
| 301 | 301 |
| 302 StaticAccess.superFinalField(FieldElement this.element) | 302 StaticAccess.superFinalField(FieldElement this.element) |
| 303 : super._(AccessKind.SUPER_FINAL_FIELD); | 303 : super._(AccessKind.SUPER_FINAL_FIELD); |
| 304 | 304 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 /// The invoked constructor. | 476 /// The invoked constructor. |
| 477 final Element element; | 477 final Element element; |
| 478 | 478 |
| 479 /// The type on which the constructor is invoked. | 479 /// The type on which the constructor is invoked. |
| 480 final DartType type; | 480 final DartType type; |
| 481 | 481 |
| 482 ConstructorAccessSemantics(this.kind, this.element, this.type); | 482 ConstructorAccessSemantics(this.kind, this.element, this.type); |
| 483 | 483 |
| 484 String toString() => 'ConstructorAccessSemantics($kind, $element, $type)'; | 484 String toString() => 'ConstructorAccessSemantics($kind, $element, $type)'; |
| 485 } | 485 } |
| OLD | NEW |