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

Side by Side Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 717723003: Issue 21549. Fix for infinite loop in the Angular expression parser (Dart version). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/all_the_rest.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine; 8 library engine;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 6593 matching lines...) Expand 10 before | Expand all | Expand 10 after
6604 formatterToken = name.endToken.next; 6604 formatterToken = name.endToken.next;
6605 // parse arguments 6605 // parse arguments
6606 List<AngularFormatterArgument> arguments = <AngularFormatterArgument>[]; 6606 List<AngularFormatterArgument> arguments = <AngularFormatterArgument>[];
6607 while (formatterToken.type != TokenType.EOF) { 6607 while (formatterToken.type != TokenType.EOF) {
6608 // skip ":" 6608 // skip ":"
6609 Token colonToken = formatterToken; 6609 Token colonToken = formatterToken;
6610 if (colonToken.type == TokenType.COLON) { 6610 if (colonToken.type == TokenType.COLON) {
6611 formatterToken = formatterToken.next; 6611 formatterToken = formatterToken.next;
6612 } else { 6612 } else {
6613 _reportErrorForToken(AngularCode.MISSING_FORMATTER_COLON, colonToken); 6613 _reportErrorForToken(AngularCode.MISSING_FORMATTER_COLON, colonToken);
6614 break;
6614 } 6615 }
6615 // parse argument 6616 // parse argument
6616 Expression argument = _parseDartExpressionInToken(formatterToken); 6617 Expression argument = _parseDartExpressionInToken(formatterToken);
6617 arguments.add(new AngularFormatterArgument(colonToken, argument)); 6618 arguments.add(new AngularFormatterArgument(colonToken, argument));
6618 // next token 6619 // next token
6619 formatterToken = argument.endToken.next; 6620 formatterToken = argument.endToken.next;
6620 } 6621 }
6621 formatters.add(new AngularFormatterNode(barToken, name, arguments)); 6622 formatters.add(new AngularFormatterNode(barToken, name, arguments));
6622 } 6623 }
6623 // done 6624 // done
(...skipping 6936 matching lines...) Expand 10 before | Expand all | Expand 10 after
13560 _index++; 13561 _index++;
13561 if (_index >= _manager._workQueues[_queueIndex].length) { 13562 if (_index >= _manager._workQueues[_queueIndex].length) {
13562 _index = 0; 13563 _index = 0;
13563 _queueIndex++; 13564 _queueIndex++;
13564 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_ queueIndex].isEmpty) { 13565 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_ queueIndex].isEmpty) {
13565 _queueIndex++; 13566 _queueIndex++;
13566 } 13567 }
13567 } 13568 }
13568 } 13569 }
13569 } 13570 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/all_the_rest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698