Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Commit

Permalink
fix(mirror): added missing mirrors declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
mhevery committed Apr 10, 2014
1 parent 45bb8c6 commit 0ebb49f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion lib/core/parser/parser_dynamic.dart
Original file line number Diff line number Diff line change
@@ -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<String, Symbol> symbols = {};
Expand Down

0 comments on commit 0ebb49f

Please sign in to comment.