Chromium Code Reviews| Index: frog/gen.dart |
| diff --git a/frog/gen.dart b/frog/gen.dart |
| index cae3ab91433fb980b67ec7494fb83d070f148d8b..04786b428b3871cce14efe8975aa1759308844df 100644 |
| --- a/frog/gen.dart |
| +++ b/frog/gen.dart |
| @@ -165,7 +165,8 @@ class WorldGenerator { |
| // TODO(jmesserly): we can't accurately track if DOM types are |
| // created or not, so we need to prepare to handle them. |
| // This should be fixed by tightening up the return types in DOM. |
| - if ((type.isUsed || type.isHiddenNativeType) && type.isClass) { |
| + if ((type.isUsed || type.library == world.dom |
|
sra1
2011/12/08 22:04:32
I assume isUsed get set when a subclass is used?
Jennifer Messerly
2011/12/08 22:17:48
Maybe. The "hidden" bit isn't really related, thou
|
| + || type.isHiddenNativeType) && type.isClass) { |
| writeType(type); |
| if (type.isGeneric) { |
| @@ -280,7 +281,7 @@ class WorldGenerator { |
| } |
| } |
| } |
| - |
| + |
| if (type.isTop) { |
| // no preludes for top type |
| } else if (type.constructors.length == 0) { |