From 3a3cfbd897d59bac6222f74d7a72226c21a7f5f0 Mon Sep 17 00:00:00 2001 From: Victor Date: Tue, 18 Mar 2014 13:53:57 +0100 Subject: [PATCH] feat(AstParser): Made the AST parser private to the scope closes #648 --- lib/core/filter.dart | 6 +++--- lib/core/module.dart | 1 - lib/core_dom/element_binder.dart | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/core/filter.dart b/lib/core/filter.dart index b3b33d7ea..2c27715f4 100644 --- a/lib/core/filter.dart +++ b/lib/core/filter.dart @@ -40,9 +40,9 @@ class NgFilter { @NgInjectableService() class FilterMap extends AnnotationMap { Injector _injector; - FilterMap(Injector injector, MetadataExtractor extractMetadata) : - this._injector = injector, - super(injector, extractMetadata); + FilterMap(Injector injector, MetadataExtractor extractMetadata) + : this._injector = injector, + super(injector, extractMetadata); call(String name) { var filter = new NgFilter(name: name); diff --git a/lib/core/module.dart b/lib/core/module.dart index 4558a3d5f..bda8ac5c9 100644 --- a/lib/core/module.dart +++ b/lib/core/module.dart @@ -45,7 +45,6 @@ class NgCoreModule extends Module { value(ScopeStats, new ScopeStats()); value(GetterCache, new GetterCache({})); value(Object, {}); // RootScope context - type(AstParser); type(NgZone); type(Parser, implementedBy: DynamicParser); diff --git a/lib/core_dom/element_binder.dart b/lib/core_dom/element_binder.dart index ad14c2be5..ae036ab01 100644 --- a/lib/core_dom/element_binder.dart +++ b/lib/core_dom/element_binder.dart @@ -136,7 +136,7 @@ class ElementBinder { nodeModule.factory(NgTextMustacheDirective, (Injector injector) { return new NgTextMustacheDirective( node, ref.value, injector.get(Interpolate), injector.get(Scope), - injector.get(AstParser), injector.get(FilterMap)); + injector.get(FilterMap)); }); } else if (ref.type == NgAttrMustacheDirective) { if (nodesAttrsDirectives == null) { @@ -146,7 +146,7 @@ class ElementBinder { var interpolate = injector.get(Interpolate); for (var ref in nodesAttrsDirectives) { new NgAttrMustacheDirective(nodeAttrs, ref.value, interpolate, - scope, injector.get(AstParser), injector.get(FilterMap)); + scope, injector.get(FilterMap)); } }); }