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

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

Issue 2918373002: Named parameters of generic functions should have names. (Closed)
Patch Set: Created 3 years, 6 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/test/generated/declaration_resolver_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/parser_test.dart
diff --git a/pkg/analyzer/test/generated/parser_test.dart b/pkg/analyzer/test/generated/parser_test.dart
index 61ccf2207d4b460a35c8dd956ff6b3b00840e6c7..4a4ea6f397c34984ba9e238d7faae66f502b1068 100644
--- a/pkg/analyzer/test/generated/parser_test.dart
+++ b/pkg/analyzer/test/generated/parser_test.dart
@@ -3515,6 +3515,7 @@ class Foo {
ParserErrorCode.DEFAULT_VALUE_IN_FUNCTION_TYPE,
ParserErrorCode.MISSING_NAME_FOR_NAMED_PARAMETER
]);
+ expect(parameter.identifier, isNotNull);
}
void test_missingNameForNamedParameter_equals() {
@@ -3526,6 +3527,7 @@ class Foo {
ParserErrorCode.DEFAULT_VALUE_IN_FUNCTION_TYPE,
ParserErrorCode.MISSING_NAME_FOR_NAMED_PARAMETER
]);
+ expect(parameter.identifier, isNotNull);
}
void test_missingNameForNamedParameter_noDefault() {
@@ -3535,6 +3537,7 @@ class Foo {
expectNotNullIfNoErrors(parameter);
listener.assertErrorsWithCodes(
[ParserErrorCode.MISSING_NAME_FOR_NAMED_PARAMETER]);
+ expect(parameter.identifier, isNotNull);
}
void test_missingNameInLibraryDirective() {
« no previous file with comments | « pkg/analyzer/test/generated/declaration_resolver_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698