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

Unified 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, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/common/names.dart
diff --git a/pkg/compiler/lib/src/common/names.dart b/pkg/compiler/lib/src/common/names.dart
index a53e6a9643a26cf344313f9214502a099c729f20..967e873f4f8535a6fc82e04a38c38f12462cd651 100644
--- a/pkg/compiler/lib/src/common/names.dart
+++ b/pkg/compiler/lib/src/common/names.dart
@@ -88,3 +88,25 @@ class Selectors {
static final Selector compareTo =
new Selector.call(const PublicName("compareTo"), CallStructure.ONE_ARG);
}
+
+/// [Uri]s commonly used.
+class Uris {
+ /// The URI for 'dart:async'.
+ static final Uri dart_async = new Uri(scheme: 'dart', path: 'async');
+
+ /// The URI for 'dart:core'.
+ static final Uri dart_core = new Uri(scheme: 'dart', path: 'core');
+
+ /// The URI for 'dart:html'.
+ static final Uri dart_html = new Uri(scheme: 'dart', path: 'html');
+
+ /// The URI for 'dart:mirrors'.
+ static final Uri dart_mirrors = new Uri(scheme: 'dart', path: 'mirrors');
+
+ /// The URI for 'dart:_internal'.
+ static final Uri dart__internal = new Uri(scheme: 'dart', path: '_internal');
+
+ /// The URI for 'dart:_native_typed_data'.
+ static final Uri dart__native_typed_data =
+ new Uri(scheme: 'dart', path: '_native_typed_data');
+}
« 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