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

Side by Side Diff: pkg/compiler/lib/src/common/names.dart

Issue 1348063002: Make the universe parts into small libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 /// Library containing identifier, names, and selectors commonly used through 5 /// Library containing identifier, names, and selectors commonly used through
6 /// the compiler. 6 /// the compiler.
7 library dart2js.common.names; 7 library dart2js.common.names;
8 8
9 import '../elements/elements.dart' show 9 import '../elements/elements.dart' show
10 Name, 10 Name,
11 PublicName; 11 PublicName;
12 import '../universe/universe.dart' show 12 import '../universe/call_structure.dart' show
13 CallStructure, 13 CallStructure;
14 import '../universe/selector.dart' show
14 Selector; 15 Selector;
15 16
16 /// [String]s commonly used. 17 /// [String]s commonly used.
17 class Identifiers { 18 class Identifiers {
18 /// The name of the call operator. 19 /// The name of the call operator.
19 static const String call = 'call'; 20 static const String call = 'call';
20 21
21 /// The name of the current element property used on iterators in for-each 22 /// The name of the current element property used on iterators in for-each
22 /// loops. 23 /// loops.
23 static const String current = 'current'; 24 static const String current = 'current';
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 static const Name iterator = const PublicName(Identifiers.iterator); 56 static const Name iterator = const PublicName(Identifiers.iterator);
56 57
57 /// The name of the move next method used on iterators in for-each loops. 58 /// The name of the move next method used on iterators in for-each loops.
58 static const Name moveNext = const PublicName('moveNext'); 59 static const Name moveNext = const PublicName('moveNext');
59 60
60 /// The name of the no such method handler on 'Object'. 61 /// The name of the no such method handler on 'Object'.
61 static const Name noSuchMethod_ = const PublicName(Identifiers.noSuchMethod_); 62 static const Name noSuchMethod_ = const PublicName(Identifiers.noSuchMethod_);
62 63
63 /// The name of the to-string method on 'Object'. 64 /// The name of the to-string method on 'Object'.
64 static const Name toString_ = const PublicName('toString'); 65 static const Name toString_ = const PublicName('toString');
66
67 static const Name INDEX_NAME = const PublicName("[]");
68 static const Name INDEX_SET_NAME = const PublicName("[]=");
69 static const Name CALL_NAME = Names.call;
65 } 70 }
66 71
67 /// [Selector]s commonly used. 72 /// [Selector]s commonly used.
68 class Selectors { 73 class Selectors {
69 /// The selector for calling the cancel method on 'StreamIterator'. 74 /// The selector for calling the cancel method on 'StreamIterator'.
70 static final Selector cancel = 75 static final Selector cancel =
71 new Selector.call(const PublicName('cancel'), CallStructure.NO_ARGS); 76 new Selector.call(const PublicName('cancel'), CallStructure.NO_ARGS);
72 77
73 /// The selector for getting the current element property used in for-each 78 /// The selector for getting the current element property used in for-each
74 /// loops. 79 /// loops.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 /// The URI for 'dart:mirrors'. 117 /// The URI for 'dart:mirrors'.
113 static final Uri dart_mirrors = new Uri(scheme: 'dart', path: 'mirrors'); 118 static final Uri dart_mirrors = new Uri(scheme: 'dart', path: 'mirrors');
114 119
115 /// The URI for 'dart:_internal'. 120 /// The URI for 'dart:_internal'.
116 static final Uri dart__internal = new Uri(scheme: 'dart', path: '_internal'); 121 static final Uri dart__internal = new Uri(scheme: 'dart', path: '_internal');
117 122
118 /// The URI for 'dart:_native_typed_data'. 123 /// The URI for 'dart:_native_typed_data'.
119 static final Uri dart__native_typed_data = 124 static final Uri dart__native_typed_data =
120 new Uri(scheme: 'dart', path: '_native_typed_data'); 125 new Uri(scheme: 'dart', path: '_native_typed_data');
121 } 126 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/common/codegen.dart ('k') | pkg/compiler/lib/src/compile_time_constants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698