Skip to content

Commit f0e5504

Browse files
stereotype441Commit Queue
authored andcommitted
[analyzer] Fix incorrect references in InterfaceItemRequirements docs.
The documentation was incorrectly referring to `InstanceElementImpl.constructors` and `InstanceElementImpl.getNamedConstructor`. These element do not exist, since they are declared in the class `InterfaceElementImpl`, not `InstanceElementImpl`. This is a step towards enabling the `comment_references` lint in the analyzer codebase. Change-Id: I6a6a6964d0e005573941f53e47a624afc67aec2f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/450722 Auto-Submit: Paul Berry <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 09b78d2 commit f0e5504

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/analyzer/lib/src/fine/requirements.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,10 @@ class InterfaceItemRequirements {
289289
/// The value of `hasNonFinalField`, if it was requested.
290290
bool? hasNonFinalField;
291291

292-
/// Set if [InstanceElementImpl.constructors] is invoked.
292+
/// Set if [InterfaceElementImpl.constructors] is invoked.
293293
ManifestItemIdList? allConstructors;
294294

295-
/// Requested with [InstanceElementImpl.getNamedConstructor].
295+
/// Requested with [InterfaceElementImpl.getNamedConstructor].
296296
final Map<LookupName, ManifestItemId?> requestedConstructors;
297297

298298
/// These are "methods" in wide meaning: methods, getters, setters.

0 commit comments

Comments
 (0)