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

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

Issue 2776743002: Parse LabeledStatement and SwitchStatement with Fasta. (Closed)
Patch Set: Created 3 years, 9 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 | « pkg/analyzer/lib/src/fasta/ast_builder.dart ('k') | pkg/front_end/test/fasta/kompile.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d7e86a3df77cb637de3870bab01ad61686091e03..c52ed165b1aafa836a7ad0161c6b308c97895418 100644
--- a/pkg/analyzer/test/generated/parser_fasta_test.dart
+++ b/pkg/analyzer/test/generated/parser_fasta_test.dart
@@ -185,13 +185,6 @@ class ComplexParserTest_Fasta extends FastaParserTestCase
@override
@failingTest
- void test_multipleLabels_statement() {
- // TODO(paulberry,ahe): AstBuilder doesn't implement handleLabel().
- super.test_multipleLabels_statement();
- }
-
- @override
- @failingTest
void test_topLevelFunction_nestedGenericFunction() {
// TODO(paulberry): Implement parseCompilationUnitWithOptions
super.test_topLevelFunction_nestedGenericFunction();
@@ -600,6 +593,16 @@ class FastaParserTestCase extends Object
}
@override
+ ConstructorInitializer parseConstructorInitializer(String code) {
+ String source = 'class __Test { __Test() : $code; }';
+ var unit =
+ _runParser(source, (parser) => parser.parseUnit) as CompilationUnit;
+ var clazz = unit.declarations[0] as ClassDeclaration;
+ var constructor = clazz.members[0] as ConstructorDeclaration;
+ return constructor.initializers.single;
+ }
+
+ @override
CompilationUnit parseDirectives(String source,
[List<ErrorCode> errorCodes = const <ErrorCode>[]]) {
return _runParser(source, (parser) => parser.parseUnit, errorCodes);
@@ -801,16 +804,6 @@ class FastaParserTestCase extends Object
}
@override
- ConstructorInitializer parseConstructorInitializer(String code) {
- String source = 'class __Test { __Test() : $code; }';
- var unit =
- _runParser(source, (parser) => parser.parseUnit) as CompilationUnit;
- var clazz = unit.declarations[0] as ClassDeclaration;
- var constructor = clazz.members[0] as ConstructorDeclaration;
- return constructor.initializers.single;
- }
-
- @override
SymbolLiteral parseSymbolLiteral(String code) {
return _parseExpression(code);
}
@@ -1152,48 +1145,6 @@ class StatementParserTest_Fasta extends FastaParserTestCase
@override
@failingTest
- void test_parseStatement_multipleLabels() {
- super.test_parseStatement_multipleLabels();
- }
-
- @override
- @failingTest
- void test_parseStatement_singleLabel() {
- super.test_parseStatement_singleLabel();
- }
-
- @override
- @failingTest
- void test_parseSwitchStatement_case() {
- super.test_parseSwitchStatement_case();
- }
-
- @override
- @failingTest
- void test_parseSwitchStatement_empty() {
- super.test_parseSwitchStatement_empty();
- }
-
- @override
- @failingTest
- void test_parseSwitchStatement_labeledCase() {
- super.test_parseSwitchStatement_labeledCase();
- }
-
- @override
- @failingTest
- void test_parseSwitchStatement_labeledDefault() {
- super.test_parseSwitchStatement_labeledDefault();
- }
-
- @override
- @failingTest
- void test_parseSwitchStatement_labeledStatementInCase() {
- super.test_parseSwitchStatement_labeledStatementInCase();
- }
-
- @override
- @failingTest
void test_parseTryStatement_catch_finally() {
super.test_parseTryStatement_catch_finally();
}
« no previous file with comments | « pkg/analyzer/lib/src/fasta/ast_builder.dart ('k') | pkg/front_end/test/fasta/kompile.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698