Index: lib/src/info.dart |
diff --git a/lib/src/info.dart b/lib/src/info.dart |
index 1386013bd84c754f133cfa390a55efe35d90e048..d235807a394a64fede651d0497e6e7cce23e426d 100644 |
--- a/lib/src/info.dart |
+++ b/lib/src/info.dart |
@@ -720,8 +720,9 @@ final List<Type> infoTypes = () { |
var allTypes = new Set(); |
var baseTypes = new Set(); |
var infoMirror = reflectClass(StaticInfo); |
- var declarations = infoMirror.owner.declarations.values; |
- for (var cls in declarations.where((d) => d is ClassMirror)) { |
+ var libMirror = infoMirror.owner as LibraryMirror; |
+ var declarations = libMirror.declarations.values; |
+ for (ClassMirror cls in declarations.where((d) => d is ClassMirror)) { |
if (cls.isSubtypeOf(infoMirror)) { |
allTypes.add(cls); |
baseTypes.add(cls.superclass); |