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

Unified Diff: pkg/dartdoc/lib/dartdoc.dart

Issue 11365019: Merging dart:html interfaces and implementations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding generated files. Created 8 years, 1 month 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
Index: pkg/dartdoc/lib/dartdoc.dart
diff --git a/pkg/dartdoc/lib/dartdoc.dart b/pkg/dartdoc/lib/dartdoc.dart
index 755b87f9adc3c681ad25bb6197868fddb70ea96f..28f39e9771223004f5b0959f1b91e4511c072298 100644
--- a/pkg/dartdoc/lib/dartdoc.dart
+++ b/pkg/dartdoc/lib/dartdoc.dart
@@ -889,6 +889,9 @@ class Dartdoc {
listTypes(types, header) {
if (types == null) return;
+ // Filter out injected types. (JavaScriptIndexingBehavior)
+ types = new List.from(types.filter((t) => t.library != null));
+
var publicTypes;
if (showPrivate) {
publicTypes = types;
@@ -1528,7 +1531,9 @@ class Dartdoc {
if (type is LibraryMirror) {
return '${sanitize(type.simpleName)}.html';
}
- assert (type is TypeMirror);
+ if (type.library == null) {
+ return '';
+ }
// Always get the generic type to strip off any type parameters or
// arguments. If the type isn't generic, genericType returns `this`, so it
// works for non-generic types too.

Powered by Google App Engine
This is Rietveld 408576698