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

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

Issue 2740573002: Fix for parsing default parameters. (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 | « no previous file | pkg/analyzer/test/generated/parser_test.dart » ('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 dab073055c258a592815945392f8983929e5ed86..943bc7e0613085cfb9866df2edfea233bc591479 100644
--- a/pkg/analyzer/test/generated/parser_fasta_test.dart
+++ b/pkg/analyzer/test/generated/parser_fasta_test.dart
@@ -775,8 +775,12 @@ class FastaParserTestCase extends Object
{bool inFunctionType: false,
List<ErrorCode> errorCodes: const <ErrorCode>[]}) {
return _runParser(
- code, (parser) => parser.parseFormalParameters, errorCodes)
- as FormalParameterList;
+ code,
+ (parser) => (fasta.Token token) {
+ return parser.parseFormalParameters(token,
+ inFunctionType: inFunctionType);
+ },
+ errorCodes) as FormalParameterList;
}
@override
@@ -989,13 +993,6 @@ class FormalParameterParserTest_Fasta extends FastaParserTestCase
@override
@failingTest
- void test_parseFormalParameterList_normal_named_inFunctionType() {
- // TODO(scheglov): Unhandled event: OptionalFormalParameters
- super.test_parseFormalParameterList_normal_named_inFunctionType();
- }
-
- @override
- @failingTest
void test_parseFormalParameterList_prefixedType_partial() {
// TODO(scheglov): Unimplemented: errors
super.test_parseFormalParameterList_prefixedType_partial();
@@ -1075,13 +1072,6 @@ class FormalParameterParserTest_Fasta extends FastaParserTestCase
super
.test_parseNormalFormalParameter_function_void_typeParameters_nullable();
}
-
- @override
- @failingTest
- void test_parseNormalFormalParameter_simple_noName() {
- // TODO(scheglov): in function type, type instead of parameter name
- super.test_parseNormalFormalParameter_simple_noName();
- }
}
/**
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698