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

Unified Diff: pkg/analyzer/test/generated/parser_fasta_test.dart

Issue 2902813005: remove fasta <--> analyzer token translation (Closed)
Patch Set: Created 3 years, 7 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: pkg/analyzer/test/generated/parser_fasta_test.dart
diff --git a/pkg/analyzer/test/generated/parser_fasta_test.dart b/pkg/analyzer/test/generated/parser_fasta_test.dart
index 18605a439237f37987b440b3fe3010fc5b3c56e4..21f39a5fa4df397ac32be934f0abc7393b1f4a12 100644
--- a/pkg/analyzer/test/generated/parser_fasta_test.dart
+++ b/pkg/analyzer/test/generated/parser_fasta_test.dart
@@ -229,7 +229,6 @@ class ExpressionParserTest_Fasta extends FastaParserTestCase
}
@override
- @failingTest
void test_parseListLiteral_empty_oneToken_withComment() {
super.test_parseListLiteral_empty_oneToken_withComment();
}
@@ -273,6 +272,7 @@ class FastaParserTestCase extends Object
with ParserTestHelpers
implements AbstractParserTestCase {
ParserProxy _parserProxy;
+ analyzer.Token _fastaTokens;
/**
* Whether generic method comments should be enabled for the test.
@@ -332,7 +332,8 @@ class FastaParserTestCase extends Object
void createParser(String content) {
var scanner = new StringScanner(content, includeComments: true);
scanner.scanGenericMethodComments = enableGenericMethodComments;
- _parserProxy = new ParserProxy(scanner.tokenize(),
+ _fastaTokens = scanner.tokenize();
+ _parserProxy = new ParserProxy(_fastaTokens,
enableGenericMethodComments: enableGenericMethodComments);
}
@@ -476,14 +477,12 @@ class FastaParserTestCase extends Object
@override
CompilationUnitMember parseFullCompilationUnitMember() {
- return _parserProxy._run((parser) => parser.parseTopLevelDeclaration)
- as CompilationUnitMember;
+ return _parserProxy._run((parser) => parser.parseTopLevelDeclaration);
}
@override
Directive parseFullDirective() {
- return _parserProxy._run((parser) => parser.parseTopLevelDeclaration)
- as Directive;
+ return _parserProxy._run((parser) => parser.parseTopLevelDeclaration);
}
@override

Powered by Google App Engine
This is Rietveld 408576698