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

Unified Diff: pkg/dartdoc/dartdoc.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 | « lib/compiler/implementation/library_map.dart ('k') | utils/apidoc/apidoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/dartdoc.dart
diff --git a/pkg/dartdoc/dartdoc.dart b/pkg/dartdoc/dartdoc.dart
index d022e793843eee466fa868a6d6df276022fc4216..075e15d108d5cbdef80b473acd27ef99b742d530 100644
--- a/pkg/dartdoc/dartdoc.dart
+++ b/pkg/dartdoc/dartdoc.dart
@@ -27,7 +27,7 @@
#import('markdown.dart', prefix: 'md');
#import('../../lib/compiler/implementation/scanner/scannerlib.dart',
prefix: 'dart2js');
-#import('../../lib/compiler/implementation/library_map.dart');
+#import('../../lib/_internal/libraries.dart');
#source('comment_map.dart');
#source('nav.dart');
@@ -395,7 +395,6 @@ class Dartdoc {
Dartdoc()
: _comments = new CommentMap(),
dartdocPath = scriptDir {
-
// Patch in support for [:...:]-style code to the markdown parser.
// TODO(rnystrom): Markdown already has syntax for this. Phase this out?
md.InlineParser.syntaxes.insertRange(0, 1,
@@ -426,9 +425,9 @@ class Dartdoc {
}
if (libraryName.startsWith('dart:')) {
String suffix = libraryName.substring('dart:'.length);
- LibraryInfo info = DART2JS_LIBRARY_MAP[suffix];
+ LibraryInfo info = LIBRARIES[suffix];
if (info != null) {
- return !info.isInternal && includeApi;
+ return info.documented && includeApi;
}
}
return includeByDefault;
@@ -443,9 +442,9 @@ class Dartdoc {
String libraryName = library.simpleName;
if (libraryName.startsWith('dart:')) {
String suffix = libraryName.substring('dart:'.length);
- LibraryInfo info = DART2JS_LIBRARY_MAP[suffix];
+ LibraryInfo info = LIBRARIES[suffix];
if (info != null) {
- return !info.isInternal;
+ return info.documented;
}
}
}
@@ -454,15 +453,15 @@ class Dartdoc {
String get footerContent(){
var footerItems = [];
- if(!omitGenerationTime) {
+ if (!omitGenerationTime) {
footerItems.add("This page was generated at ${new Date.now()}");
}
- if(footerText != null) {
+ if (footerText != null) {
footerItems.add(footerText);
}
var content = '';
for (int i = 0; i < footerItems.length; i++) {
- if(i > 0){
+ if (i > 0) {
content = content.concat('\n');
}
content = content.concat('<div>${footerItems[i]}</div>');
« no previous file with comments | « lib/compiler/implementation/library_map.dart ('k') | utils/apidoc/apidoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698