| Index: third_party/pkg/angular/lib/core/parser/dynamic_parser_impl.dart
|
| ===================================================================
|
| --- third_party/pkg/angular/lib/core/parser/dynamic_parser_impl.dart (revision 33054)
|
| +++ third_party/pkg/angular/lib/core/parser/dynamic_parser_impl.dart (working copy)
|
| @@ -2,7 +2,6 @@
|
|
|
| import 'package:angular/core/parser/parser.dart' show ParserBackend;
|
| import 'package:angular/core/parser/lexer.dart';
|
| -import 'package:angular/core/parser/syntax.dart';
|
|
|
| class DynamicParserImpl {
|
| static Token EOF = new Token(-1, null);
|
| @@ -19,23 +18,14 @@
|
| }
|
|
|
| parseChain() {
|
| - bool isChain = false;
|
| - while (optional(';')) {
|
| - isChain = true;
|
| - }
|
| + while (optional(';'));
|
| List expressions = [];
|
| while (index < tokens.length) {
|
| if (peek.text == ')' || peek.text == '}' || peek.text == ']') {
|
| error('Unconsumed token ${peek.text}');
|
| }
|
| - var expr = parseFilter();
|
| - expressions.add(expr);
|
| - while (optional(';')) {
|
| - isChain = true;
|
| - }
|
| - if (isChain && expr is Filter) {
|
| - error('cannot have a filter in a chain');
|
| - }
|
| + expressions.add(parseFilter());
|
| + while (optional(';'));
|
| }
|
| return (expressions.length == 1)
|
| ? expressions.first
|
| @@ -213,7 +203,7 @@
|
|
|
| parsePrimary() {
|
| if (optional('(')) {
|
| - var result = parseExpression();
|
| + var result = parseFilter();
|
| expect(')');
|
| return result;
|
| } else if (optional('null') || optional('undefined')) {
|
|
|