Skip to content

Documentation is not generated for private top-level getters and setters #4185

@sgrekhov

Description

@sgrekhov

According to the specification, doc comments can be placed before top-level getters and setters, and there is no exception for getters and setters with private names. However, doc comments are currently not generated for top-level getters and setters with private names.

I’ll add a link to the appropriate tests after the PR containing those tests lands.

Dart SDK version: 3.12.0-49.0.dev (dev) (Tue Jan 20 08:02:46 2026 -0800) on "windows_x64".

Metadata

Metadata

Assignees

Labels

type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions