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

Rename type field of AstStatTypeAlias in JSON Encoder #1461

Merged
merged 2 commits into from
Oct 4, 2024

Conversation

Dekkonot
Copy link
Contributor

@Dekkonot Dekkonot commented Oct 4, 2024

Closes #1460.

This renames the type field of AstStatTypeAlias to value during the JSON encoding process.

I've chosen to just rename the field in the JSON encoder rather than rename the actual field since it's a lot further reaching. Another option would have been to rename what the actual type of an AST node is written to be something like tokenType instead of type, but that's a bigger diff and technically breaking (as opposed to this one which isn't!)

@andyfriesen andyfriesen self-assigned this Oct 4, 2024
@andyfriesen andyfriesen merged commit ae7b07d into luau-lang:master Oct 4, 2024
7 checks passed
@Dekkonot Dekkonot deleted the json-type-alias-type-rename branch October 4, 2024 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

luau-ast output contains duplicate type keys in AstStatTypeAlias statements
2 participants