Skip to content

No access to const token in AST for dot shorthand const constructor call. #60840

Open
@munificent

Description

@munificent

Greetings!

I'm working on supporting dot shorthands in dart format. I have most of it working but I'm running into an issue with shorthands like:

variable = const .new();

I'm using analyzer 7.4.5 and in the DotShorthandInvocation AST node class, I don't see any way to get the token for the const keyword. Am I missing something?

Metadata

Metadata

Assignees

Labels

area-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.feature-dot-shorthandsImplementation of the dot shorthands feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions