| 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.
|
|
|