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

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

Issue 1309743006: Move common URIs to common/names.dart (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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 /// The selector for calling the to-string method on 'Object'. 81 /// The selector for calling the to-string method on 'Object'.
82 static final Selector toString_ = 82 static final Selector toString_ =
83 new Selector.call(Names.toString_, CallStructure.NO_ARGS); 83 new Selector.call(Names.toString_, CallStructure.NO_ARGS);
84 84
85 static final Selector hashCode_ = 85 static final Selector hashCode_ =
86 new Selector.getter(const PublicName('hashCode')); 86 new Selector.getter(const PublicName('hashCode'));
87 87
88 static final Selector compareTo = 88 static final Selector compareTo =
89 new Selector.call(const PublicName("compareTo"), CallStructure.ONE_ARG); 89 new Selector.call(const PublicName("compareTo"), CallStructure.ONE_ARG);
90 } 90 }
91
92 /// [Uri]s commonly used.
93 class Uris {
94 /// The URI for 'dart:async'.
95 static final Uri dart_async = new Uri(scheme: 'dart', path: 'async');
96
97 /// The URI for 'dart:core'.
98 static final Uri dart_core = new Uri(scheme: 'dart', path: 'core');
99
100 /// The URI for 'dart:html'.
101 static final Uri dart_html = new Uri(scheme: 'dart', path: 'html');
102
103 /// The URI for 'dart:mirrors'.
104 static final Uri dart_mirrors = new Uri(scheme: 'dart', path: 'mirrors');
105
106 /// The URI for 'dart:_internal'.
107 static final Uri dart__internal = new Uri(scheme: 'dart', path: '_internal');
108
109 /// The URI for 'dart:_native_typed_data'.
110 static final Uri dart__native_typed_data =
111 new Uri(scheme: 'dart', path: '_native_typed_data');
112 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698