Chromium Code Reviews| Index: pkg/compiler/lib/src/patch_parser.dart |
| diff --git a/pkg/compiler/lib/src/patch_parser.dart b/pkg/compiler/lib/src/patch_parser.dart |
| index 5dccfd276fef8c56bb47ee522d840cc938cb1bb8..2694a34adb512d793ed258632e1eff477f2f90b6 100644 |
| --- a/pkg/compiler/lib/src/patch_parser.dart |
| +++ b/pkg/compiler/lib/src/patch_parser.dart |
| @@ -134,6 +134,7 @@ import 'elements/modelx.dart' |
| LibraryElementX, |
| MetadataAnnotationX, |
| SetterElementX; |
| +import 'enqueue.dart' show DeferredAction; |
| import 'id_generator.dart'; |
| import 'library_loader.dart' show LibraryLoader; |
| import 'parser/element_listener.dart' show ElementListener; |
| @@ -363,11 +364,12 @@ abstract class EagerAnnotationHandler<T> { |
| if (result != handler.defaultResult) { |
| // TODO(johnniwinther): Perform this check in |
| // [Compiler.onLibrariesLoaded]. |
|
Siggi Cherem (dart-lang)
2017/03/14 05:27:55
I'm assuming that all the libraryLoader's deferred
Johnni Winther
2017/03/15 12:46:53
Add a TODO to [registerDeferredAction].
|
| - compiler.enqueuer.resolution.addDeferredAction(element, () { |
| + compiler.libraryLoader |
| + .registerDeferredAction(new DeferredAction(element, () { |
| annotation.ensureResolved(compiler.resolution); |
| handler.validate(compiler, element, annotation, |
| compiler.constants.getConstantValue(annotation.constant)); |
| - }); |
| + })); |
| return result; |
| } |
| } |