Skip to content

Problem with old style named constants #713

Closed
@Janamou

Description

@Janamou

When I generate the documentation for a script:

const String TYPE_NICE = "nice";
const String TYPE_VERY_NICE = "very_nice";

/// Main function uses [TYPE_NICE] and [TYPE_VERY_NICE].
main(List<String> args) {
}

Then there is a problem with constant of a name TYPE_VERY_NICE. I found out that the reason is that when I use more than one underscore, the constant is written with brackets.

Output of the comment in the documentation looks like this:
Main function uses TYPE_NICE and [TYPE_VERY_NICE].

To see it you need to go to the detail of the function in the documentation.

Same problem with the old docgen: dart-lang/sdk#23883

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work ontype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions