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

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

Issue 180843004: Revert revision 33053 (Closed) Base URL: http://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/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')) {
« no previous file with comments | « third_party/pkg/angular/lib/core/parser/dynamic_parser.dart ('k') | third_party/pkg/angular/lib/core/parser/eval.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698