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

Unified Diff: pkg/analyzer/lib/src/fasta/ast_builder.dart

Issue 3011643002: Fix several failing tests (Closed)
Patch Set: fix sort and metadata parsing Created 3 years, 4 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
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/parser_fasta_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/fasta/ast_builder.dart
diff --git a/pkg/analyzer/lib/src/fasta/ast_builder.dart b/pkg/analyzer/lib/src/fasta/ast_builder.dart
index c6f57cea7b1b7bb065b097aada8bc69c5879a607..524b1fd7e6ed900ea9440fdbf68339721a90a2d0 100644
--- a/pkg/analyzer/lib/src/fasta/ast_builder.dart
+++ b/pkg/analyzer/lib/src/fasta/ast_builder.dart
@@ -1226,9 +1226,6 @@ class AstBuilder extends ScopeListener {
void endConditionalUri(Token ifKeyword, Token equalitySign) {
debugEvent("ConditionalUri");
StringLiteral libraryUri = pop();
- // TODO(paulberry,ahe): the parser should report the right paren token to
- // the listener.
- Token rightParen = null;
StringLiteral value;
if (equalitySign != null) {
value = pop();
@@ -1239,6 +1236,9 @@ class AstBuilder extends ScopeListener {
// recovery and then report both the ifKeyword and leftParen tokens to the
// listener.
Token leftParen = ifKeyword.next;
+ // TODO(paulberry,ahe): the parser should report the right paren token to
+ // the listener.
danrubel 2017/08/30 17:44:03 Is this comment still valid? Are there situations
Brian Wilkerson 2017/08/30 18:03:49 I think so... If the paren is missing, or if ther
+ Token rightParen = name.endToken.next;
push(ast.configuration(ifKeyword, leftParen, name, equalitySign, value,
rightParen, libraryUri));
}
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/parser_fasta_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698