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

Add config option to enable location tracking in prisma-ast #25

Merged
merged 8 commits into from
Jul 19, 2023

Conversation

MrLeebo
Copy link
Owner

@MrLeebo MrLeebo commented Jul 8, 2023

Makes CST node locations available in the prisma-ast schema. This information isn't presented via the builder API, but you can access it by calling const schema = getSchema(source) directly.

Location statistics are:

startLine: number;
startColumn: number;
startOffset: number;
endLine: number;
endColumn: number;
endOffset: number;

Closes #21

@MrLeebo MrLeebo merged commit 035abad into main Jul 19, 2023
@MrLeebo MrLeebo deleted the cst-node-location-tracking branch July 19, 2023 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature request: Include source code location for each node
1 participant