| Index: third_party/pkg/angular/lib/core/parser/syntax.dart
|
| diff --git a/third_party/pkg/angular/lib/core/parser/syntax.dart b/third_party/pkg/angular/lib/core/parser/syntax.dart
|
| index 174c192b605bc42675cf207771219a57cce3edbb..3d6fa1514f00ced2f1c8e7f96abad9b3bf57a94c 100644
|
| --- a/third_party/pkg/angular/lib/core/parser/syntax.dart
|
| +++ b/third_party/pkg/angular/lib/core/parser/syntax.dart
|
| @@ -3,6 +3,7 @@ library angular.core.parser.syntax;
|
| import 'package:angular/core/parser/parser.dart' show LocalsWrapper;
|
| import 'package:angular/core/parser/unparser.dart' show Unparser;
|
| import 'package:angular/core/parser/utils.dart' show EvalError;
|
| +import 'package:angular/core/module.dart';
|
|
|
| abstract class Visitor {
|
| visit(Expression expression)
|
| @@ -56,7 +57,7 @@ abstract class Expression {
|
| bool get isAssignable => false;
|
| bool get isChain => false;
|
|
|
| - eval(scope)
|
| + eval(scope, [FilterMap filters = defaultFilterMap])
|
| => throw new EvalError("Cannot evaluate $this");
|
| assign(scope, value)
|
| => throw new EvalError("Cannot assign to $this");
|
| @@ -200,3 +201,14 @@ class LiteralObject extends Literal {
|
| LiteralObject(this.keys, this.values);
|
| accept(Visitor visitor) => visitor.visitLiteralObject(this);
|
| }
|
| +
|
| +const defaultFilterMap = const _DefaultFilterMap();
|
| +
|
| +class _DefaultFilterMap implements FilterMap {
|
| + const _DefaultFilterMap();
|
| +
|
| + call(name) => throw 'No NgFilter: $name found!';
|
| + Type operator[](annotation) => null;
|
| + forEach(fn) { }
|
| + annotationsFor(type) => null;
|
| +}
|
|
|