File tree 3 files changed +4
-4
lines changed
_fe_analyzer_shared/lib/src/messages 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12369,7 +12369,8 @@ const Code<Null> codePrivateNamedParameter = messagePrivateNamedParameter;
12369
12369
const MessageCode messagePrivateNamedParameter = const MessageCode(
12370
12370
"PrivateNamedParameter",
12371
12371
analyzerCodes: <String>["PRIVATE_OPTIONAL_PARAMETER"],
12372
- problemMessage: r"""An optional named parameter can't start with '_'.""");
12372
+ problemMessage:
12373
+ r"""A named parameter can't start with an underscore ('_').""");
12373
12374
12374
12375
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
12375
12376
const Code<Null> codeRecordFieldsCantBePrivate =
Original file line number Diff line number Diff line change @@ -1995,7 +1995,7 @@ FunctionTypeDefaultValue:
1995
1995
analyzerCode : DEFAULT_VALUE_IN_FUNCTION_TYPE
1996
1996
1997
1997
PrivateNamedParameter :
1998
- problemMessage : " An optional named parameter can't start with '_'."
1998
+ problemMessage : " A named parameter can't start with an underscore ( '_') ."
1999
1999
analyzerCode : PRIVATE_OPTIONAL_PARAMETER
2000
2000
2001
2001
NoFormals :
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ class Foo {
11
11
Foo .private ({this ._y = 77 }) {}
12
12
// ^^
13
13
// [analyzer] COMPILE_TIME_ERROR.PRIVATE_OPTIONAL_PARAMETER
14
- // ^
15
- // [cfe] An optional named parameter can't start with '_'.
14
+ // [cfe] A named parameter can't start with an underscore ('_').
16
15
}
17
16
18
17
main () {
You can’t perform that action at this time.
0 commit comments