Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1382)

Side by Side Diff: pkg/compiler/lib/src/resolution/access_semantics.dart

Issue 2860753005: Make elements/names.dart its own library (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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';
11 import '../elements/resolution_types.dart'; 11 import '../elements/resolution_types.dart';
12 import '../elements/elements.dart'; 12 import '../elements/elements.dart';
13 import '../elements/names.dart';
13 14
14 /// Enum representing the different kinds of destinations which a property 15 /// Enum representing the different kinds of destinations which a property
15 /// access or method or function invocation might refer to. 16 /// access or method or function invocation might refer to.
16 enum AccessKind { 17 enum AccessKind {
17 /// The destination of the conditional access is an instance method, property, 18 /// The destination of the conditional access is an instance method, property,
18 /// or field of a class, and thus must be determined dynamically. 19 /// or field of a class, and thus must be determined dynamically.
19 CONDITIONAL_DYNAMIC_PROPERTY, 20 CONDITIONAL_DYNAMIC_PROPERTY,
20 21
21 /// The destination of the access is an instance method, property, or field 22 /// The destination of the access is an instance method, property, or field
22 /// of a class, and thus must be determined dynamically. 23 /// of a class, and thus must be determined dynamically.
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 /// The invoked constructor. 477 /// The invoked constructor.
477 final Element element; 478 final Element element;
478 479
479 /// The type on which the constructor is invoked. 480 /// The type on which the constructor is invoked.
480 final ResolutionDartType type; 481 final ResolutionDartType type;
481 482
482 ConstructorAccessSemantics(this.kind, this.element, this.type); 483 ConstructorAccessSemantics(this.kind, this.element, this.type);
483 484
484 String toString() => 'ConstructorAccessSemantics($kind, $element, $type)'; 485 String toString() => 'ConstructorAccessSemantics($kind, $element, $type)';
485 } 486 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/patch_parser.dart ('k') | pkg/compiler/lib/src/resolution/class_hierarchy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698