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

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

Issue 2876813002: Implement generalized function types. (Closed)
Patch Set: Fixes for analyzer and dart2js. 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 af2803293f1f31ac09ae5aebeeab42c655942dbf..7084e578b909791b4cfc0449c25d36cebb9c1c12 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) => (fasta.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

Powered by Google App Engine
This is Rietveld 408576698