From 0ebb49f84c12ec2c4b11f1cf75d230f601975ebc Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 9 Apr 2014 09:37:31 -0700 Subject: [PATCH] fix(mirror): added missing mirrors declarations --- .../dirty_checking_change_detector_dynamic.dart | 2 +- lib/core/parser/parser_dynamic.dart | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/change_detection/dirty_checking_change_detector_dynamic.dart b/lib/change_detection/dirty_checking_change_detector_dynamic.dart index 2ffa68691..fefdfd589 100644 --- a/lib/change_detection/dirty_checking_change_detector_dynamic.dart +++ b/lib/change_detection/dirty_checking_change_detector_dynamic.dart @@ -7,7 +7,7 @@ export 'package:angular/change_detection/change_detection.dart' show /** * We are using mirrors, but there is no need to import anything. */ -@MirrorsUsed(targets: const [], metaTargets: const []) +@MirrorsUsed(targets: const [ DynamicFieldGetterFactory ], metaTargets: const [] ) import 'dart:mirrors'; class DynamicFieldGetterFactory implements FieldGetterFactory { diff --git a/lib/core/parser/parser_dynamic.dart b/lib/core/parser/parser_dynamic.dart index da5e11604..967db7bed 100644 --- a/lib/core/parser/parser_dynamic.dart +++ b/lib/core/parser/parser_dynamic.dart @@ -1,7 +1,8 @@ library angular.core.parser_dynamic; -import 'package:angular/core/parser/parser.dart'; +@MirrorsUsed(targets: const [ DynamicClosureMap ], metaTargets: const [] ) import 'dart:mirrors'; +import 'package:angular/core/parser/parser.dart'; class DynamicClosureMap implements ClosureMap { final Map symbols = {};