| Index: pkg/compiler/lib/src/deferred_load.dart
|
| diff --git a/pkg/compiler/lib/src/deferred_load.dart b/pkg/compiler/lib/src/deferred_load.dart
|
| index baeb2aa1a46cc89a5f8df54478a8f4efe1c5bad9..7b8ddf57c44ee1187215b3938454e25166297a47 100644
|
| --- a/pkg/compiler/lib/src/deferred_load.dart
|
| +++ b/pkg/compiler/lib/src/deferred_load.dart
|
| @@ -164,9 +164,11 @@ class DeferredLoadTask extends CompilerTask {
|
| DiagnosticReporter get reporter => compiler.reporter;
|
|
|
| /// Returns the [OutputUnit] where [element] belongs.
|
| - OutputUnit outputUnitForElement(Element element) {
|
| + OutputUnit outputUnitForElement(Entity entity) {
|
| + // TODO(johnniwinther): Support use of entities by splitting maps by
|
| + // entity kind.
|
| if (!isProgramSplit) return mainOutputUnit;
|
| -
|
| + Element element = entity;
|
| element = element.implementation;
|
| while (!_elementToOutputUnit.containsKey(element)) {
|
| // TODO(21051): workaround: it looks like we output annotation constants
|
| @@ -184,12 +186,12 @@ class DeferredLoadTask extends CompilerTask {
|
| }
|
|
|
| /// Returns the [OutputUnit] where [element] belongs.
|
| - OutputUnit outputUnitForClass(ClassElement element) {
|
| + OutputUnit outputUnitForClass(ClassEntity element) {
|
| return outputUnitForElement(element);
|
| }
|
|
|
| /// Returns the [OutputUnit] where [element] belongs.
|
| - OutputUnit outputUnitForMember(MemberElement element) {
|
| + OutputUnit outputUnitForMember(MemberEntity element) {
|
| return outputUnitForElement(element);
|
| }
|
|
|
|
|