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

Unified Diff: lib/_internal/libraries.dart

Issue 10894005: Remove library_map.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to tip of tree. Created 8 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 | lib/compiler/implementation/apiimpl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/_internal/libraries.dart
diff --git a/lib/_internal/libraries.dart b/lib/_internal/libraries.dart
index f6a9ace436f2fffd2008ccb7558e1aee37fd22bf..34688b89db938912f904a16c9db05c084c0663e5 100644
--- a/lib/_internal/libraries.dart
+++ b/lib/_internal/libraries.dart
@@ -25,14 +25,9 @@ const Map<String, LibraryInfo> LIBRARIES = const <LibraryInfo> {
"builtin": const LibraryInfo(
"builtin/builtin_runtime.dart",
category: "Server",
+ documented: false,
platforms: VM_PLATFORM),
- // Is moving to pkg directory
- "compiler": const LibraryInfo(
- "compiler/compiler.dart",
- category: "Tools",
- platforms: 0),
-
"core": const LibraryInfo(
"core/core_runtime.dart",
dart2jsPath: "compiler/implementation/lib/core.dart"),
@@ -75,7 +70,9 @@ const Map<String, LibraryInfo> LIBRARIES = const <LibraryInfo> {
dart2jsPatchPath: "compiler/implementation/lib/math_patch.dart"),
"mirrors": const LibraryInfo(
- "mirrors/mirrors.dart"),
+ "mirrors/mirrors.dart",
+ documented: false,
+ platforms: VM_PLATFORM),
"nativewrappers": const LibraryInfo(
"html/nativewrappers.dart",
@@ -164,12 +161,6 @@ class LibraryInfo {
this.documented = true,
this.platforms = DART2JS_PLATFORM | VM_PLATFORM]);
- bool isDart2JsLibrary() => (platforms & DART2JS_PLATFORM) != 0;
- bool isVmLibrary() => (platforms & VM_PLATFORM) != 0;
-
- String getDart2JsPath() =>
- dart2jsPath != null ? "lib/$dart2jsPath" : "lib/$path";
-
- String getDart2jsPatchPath() =>
- dart2jsPatchPath != null ? "lib/$dart2jsPatchPath" : null;
+ bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0;
+ bool get isVmLibrary => (platforms & VM_PLATFORM) != 0;
}
« no previous file with comments | « no previous file | lib/compiler/implementation/apiimpl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698