Skip to content

Commit ae4a1f1

Browse files
munificentCommit Queue
authored andcommitted
[private named parameters] Update diagnostic documentation.
Applying Connie's review feedback from: https://dart-review.googlesource.com/c/sdk/+/464605 Change-Id: I06b3fefde12fbe8c4ddc176591c4932fe5b3b642 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/465362 Reviewed-by: Brian Wilkerson <[email protected]> Reviewed-by: Connie Ooi <[email protected]> Commit-Queue: Bob Nystrom <[email protected]> Auto-Submit: Bob Nystrom <[email protected]>
1 parent 1d1527a commit ae4a1f1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/analyzer/messages.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14372,15 +14372,15 @@ CompileTimeErrorCode:
1437214372
documentation: |-
1437314373
#### Description
1437414374

14375-
The analyzer produces this diagnostic when a private named parameter's
14376-
corresponding public name with the leading `_` removed is the same as
14377-
another parameter in the parameter list.
14375+
The analyzer produces this diagnostic when a private named parameter
14376+
(leading `_`) has a corresponding public name that conflicts with an
14377+
existing parameter name in the same parameter list.
1437814378

1437914379
#### Example
1438014380

1438114381
The following code produces this diagnostic because the private named
14382-
parameter `_x`'s public name is `x` and there is another parameter with
14383-
that name:
14382+
parameter `_x`'s public name is `x`, which conflicts with the existing
14383+
parameter named `x`:
1438414384

1438514385
```dart
1438614386
class C {

0 commit comments

Comments
 (0)