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

Unified Diff: lib/compiler/implementation/library_map.dart

Issue 10809035: Several new features and improvements for dartdoc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 8 years, 5 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 | « lib/compiler/implementation/lib/js_helper.dart ('k') | lib/crypto/crypto.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/library_map.dart
diff --git a/lib/compiler/implementation/library_map.dart b/lib/compiler/implementation/library_map.dart
index 6aa742e513ddd48f8322fead08cb725bdcb0218c..4af8b50f815eb73d195c3dbaa2ed6411c64e4630 100644
--- a/lib/compiler/implementation/library_map.dart
+++ b/lib/compiler/implementation/library_map.dart
@@ -10,44 +10,49 @@
* Simple struct holding the path to a library and an optional path
* to a patch file for the library.
*/
-class LibraryPatchPath {
+class LibraryInfo {
final String libraryPath;
final String patchPath;
- const LibraryPatchPath(this.libraryPath, this.patchPath);
+
+ /** If [:true:], the library is not part of the public API. */
+ final bool isInternal;
+
+ const LibraryInfo(this.libraryPath,
+ [this.patchPath = null, this.isInternal = false]);
}
/**
* Specifies the location of Dart platform libraries.
*/
-final Map<String,LibraryPatchPath> DART2JS_LIBRARY_MAP
- = const <LibraryPatchPath> {
- "core": const LibraryPatchPath(
- "lib/compiler/implementation/lib/core.dart", null),
- "coreimpl": const LibraryPatchPath(
- "lib/compiler/implementation/lib/coreimpl.dart", null),
- "_js_helper": const LibraryPatchPath(
- "lib/compiler/implementation/lib/js_helper.dart", null),
- "_interceptors": const LibraryPatchPath(
- "lib/compiler/implementation/lib/interceptors.dart", null),
- "crypto": const LibraryPatchPath(
- "lib/crypto/crypto.dart", null),
- "dom_deprecated": const LibraryPatchPath(
- "lib/dom/frog/dom_frog.dart", null),
- "html": const LibraryPatchPath(
- "lib/html/frog/html_frog.dart", null),
- "io": const LibraryPatchPath(
- "lib/compiler/implementation/lib/io.dart", null),
- "isolate": const LibraryPatchPath(
- "lib/isolate/isolate_leg.dart", null),
- "json": const LibraryPatchPath(
- "lib/json/json.dart", null),
- "math": const LibraryPatchPath(
+final Map<String, LibraryInfo> DART2JS_LIBRARY_MAP
+ = const <LibraryInfo> {
+ "core": const LibraryInfo(
+ "lib/compiler/implementation/lib/core.dart"),
+ "coreimpl": const LibraryInfo(
+ "lib/compiler/implementation/lib/coreimpl.dart"),
+ "_js_helper": const LibraryInfo(
+ "lib/compiler/implementation/lib/js_helper.dart", isInternal: true),
+ "_interceptors": const LibraryInfo(
+ "lib/compiler/implementation/lib/interceptors.dart", isInternal: true),
+ "crypto": const LibraryInfo(
+ "lib/crypto/crypto.dart"),
+ "dom_deprecated": const LibraryInfo(
+ "lib/dom/frog/dom_frog.dart", isInternal: true),
+ "html": const LibraryInfo(
+ "lib/html/frog/html_frog.dart"),
+ "io": const LibraryInfo(
+ "lib/compiler/implementation/lib/io.dart"),
+ "isolate": const LibraryInfo(
+ "lib/isolate/isolate_leg.dart"),
+ "json": const LibraryInfo(
+ "lib/json/json.dart"),
+ "math": const LibraryInfo(
"corelib/unified/math/math.dart",
- "lib/compiler/implementation/lib/math.dartp"),
- "uri": const LibraryPatchPath(
- "lib/uri/uri.dart", null),
- "utf": const LibraryPatchPath(
- "lib/utf/utf.dart", null),
- "web": const LibraryPatchPath(
- "lib/web/web.dart", null),
+ "lib/compiler/implementation/lib/math.dartp", isInternal: true),
+ "uri": const LibraryInfo(
+ "lib/uri/uri.dart"),
+ "utf": const LibraryInfo(
+ "lib/utf/utf.dart"),
+ "web": const LibraryInfo(
+ "lib/web/web.dart"),
};
« no previous file with comments | « lib/compiler/implementation/lib/js_helper.dart ('k') | lib/crypto/crypto.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698