Skip to content

DeclGroupSyntax should have introducerKeyword #2535

@ktoso

Description

@ktoso

Description

It should be possible to .as(DeclGroupSyntax.self)?.introducerKeyword when writing macros in order to easily write diagnostics like "cannot be applied to struct" etc.

Currently one has to do manual if/else of all the kinds we support

Steps to Reproduce

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions