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

Record table type alias property locations #1046

Merged

Conversation

JohnnyMorganz
Copy link
Contributor

@JohnnyMorganz JohnnyMorganz commented Sep 17, 2023

For table type aliases, records the location of the property in the alias declaration.

This is an alternate solution to the particular case noted in #802. Instead of tracking the type alias definition for FTVs, it tracks it for the encompassing property instead.

Note that we still don't have positions in the following case:

type Func = () -> ()

Closes #802 (Although not completely...)

@andyfriesen andyfriesen merged commit 1a9159d into luau-lang:master Nov 2, 2023
6 checks passed
@andyfriesen
Copy link
Collaborator

Thanks!

@JohnnyMorganz JohnnyMorganz deleted the record-table-type-prop-locs branch November 2, 2023 17:34
vegorov-rbx pushed a commit that referenced this pull request Jan 8, 2024
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.

Track the location of FunctionType declarations
2 participants