| 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 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 | 470 |
| 471 /// Data structure used to classify the semantics of a constructor invocation. | 471 /// Data structure used to classify the semantics of a constructor invocation. |
| 472 class ConstructorAccessSemantics { | 472 class ConstructorAccessSemantics { |
| 473 /// The kind of constructor invocation. | 473 /// The kind of constructor invocation. |
| 474 final ConstructorAccessKind kind; | 474 final ConstructorAccessKind kind; |
| 475 | 475 |
| 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 ResolutionDartType 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 |