Skip to content

[REQ] [Dart] Use Dart SDK to generate Dart keywords for reserved words list #4448

Closed
@nickmeinhold

Description

@nickmeinhold

Is your feature request related to a problem? Please describe.

A recent PR improved the Dart generator by updating the reserved words. When I went through and checked if there were any more Dart keywords missing, there were a few still missing and it was quite time consuming to determine exactly which words were missing as it is a hard-coded list.

Describe the solution you'd like

Use the Dart SDK to automatically generate the Dart keywords and have the dart generator use the generated set of words.

Describe alternatives you've considered

We could keep the list of reserved words hard-coded in and just add a comment that the list was generated by the SDK with a date and Dart version so we know when the list needs to be updated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions