Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(684)

Unified Diff: third_party/pkg/angular/lib/core/parser/static_parser.dart

Issue 176943008: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/pkg/angular/lib/core/parser/static_parser.dart
diff --git a/third_party/pkg/angular/lib/core/parser/static_parser.dart b/third_party/pkg/angular/lib/core/parser/static_parser.dart
index 155472108e3b83fe4354969cb838df05ad1730e3..b9c59ee5d80acd46c7bff1f347c153e91f9b3336 100644
--- a/third_party/pkg/angular/lib/core/parser/static_parser.dart
+++ b/third_party/pkg/angular/lib/core/parser/static_parser.dart
@@ -1,7 +1,9 @@
library angular.core.parser.static_parser;
+import 'package:angular/core/module.dart' show FilterMap, NgInjectableService;
import 'package:angular/core/parser/parser.dart';
import 'package:angular/core/parser/utils.dart' show EvalError;
+import 'package:angular/core/parser/syntax.dart';
class StaticParserFunctions {
final Map<String, Function> eval;
@@ -9,7 +11,7 @@ class StaticParserFunctions {
StaticParserFunctions(this.eval, this.assign);
}
-//@NgInjectableService()
+@NgInjectableService()
class StaticParser implements Parser<Expression> {
final StaticParserFunctions _functions;
final DynamicParser _fallbackParser;
@@ -40,9 +42,9 @@ class StaticExpression extends Expression {
accept(Visitor visitor) => throw "Cannot visit static expression $this";
toString() => _input;
- eval(scope) {
+ eval(scope, [FilterMap filters = defaultFilterMap]) {
try {
- return _eval(scope);
+ return _eval(scope, filters);
} on EvalError catch (e, s) {
throw e.unwrap("$this", s);
}

Powered by Google App Engine
This is Rietveld 408576698