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

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

Issue 2876813002: Implement generalized function types. (Closed)
Patch Set: Address comments. 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
« no previous file with comments | « pkg/analyzer/lib/src/fasta/ast_builder.dart ('k') | pkg/compiler/lib/src/parser/diet_parser_task.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 70e5ed080255cd3d2ac6a4fa393725a2ba1f6dc2..32364691a45c9a8d5c7f47ae69d235f8a984afb2 100644
--- a/pkg/analyzer/test/generated/parser_fasta_test.dart
+++ b/pkg/analyzer/test/generated/parser_fasta_test.dart
@@ -465,8 +465,11 @@ class FastaParserTestCase extends Object
return _runParser(
code,
(parser) => (analyzer.Token token) {
- return parser.parseFormalParameters(token,
- inFunctionType: inFunctionType);
+ return parser.parseFormalParameters(
+ token,
+ inFunctionType
+ ? fasta.MemberKind.GeneralizedFunctionType
+ : fasta.MemberKind.NonStaticMethod);
},
errorCodes) as FormalParameterList;
}
@@ -931,13 +934,6 @@ class TopLevelParserTest_Fasta extends FastaParserTestCase
@override
@failingTest
- void test_parseCompilationUnit_typedefAsPrefix() {
- // TODO(paulberry): As of commit 5de9108 this syntax is invalid.
- super.test_parseCompilationUnit_typedefAsPrefix();
- }
-
- @override
- @failingTest
void test_parseDirectives_mixed() {
// TODO(paulberry,ahe): This test verifies the analyzer parser's ability to
// stop parsing as soon as the first non-directive is encountered; this is
« no previous file with comments | « pkg/analyzer/lib/src/fasta/ast_builder.dart ('k') | pkg/compiler/lib/src/parser/diet_parser_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698