Index: pkg/dartdoc/dartdoc.dart |
diff --git a/pkg/dartdoc/dartdoc.dart b/pkg/dartdoc/dartdoc.dart |
index fd79101a2ee81ca09b9f42083f51fcbb9522a749..3cb3c28cacc9765251a4e5cd5d520508da4f5c18 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('utils.dart'); |
@@ -387,8 +387,7 @@ class Dartdoc { |
int _totalTypes = 0; |
int _totalMembers = 0; |
- Dartdoc() |
- : _comments = new CommentMap() { |
+ Dartdoc() : _comments = new CommentMap() { |
// 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, |
@@ -419,9 +418,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; |
@@ -436,9 +435,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; |
} |
} |
} |
@@ -447,15 +446,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>'); |