Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attributes don't have locations #1255

Open
verytactical opened this issue Dec 25, 2024 · 0 comments
Open

Attributes don't have locations #1255

verytactical opened this issue Dec 25, 2024 · 0 comments
Assignees
Milestone

Comments

@verytactical
Copy link
Contributor

Function and constant attributes are represented as strings in AST. In order to emit error that involves an attribute, there is no way to gets its location.

Attributes should be represented as objects.

type AstFooAttribute = {
    kind: 'foo';
    loc: SrcInfo;
}
@anton-trunov anton-trunov added this to the v1.6.0 milestone Dec 25, 2024
@verytactical verytactical self-assigned this Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants