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

Accessing start position for a path returns unexpected line number #258

Open
KevinMitchell opened this issue Jan 25, 2021 · 0 comments
Open

Comments

@KevinMitchell
Copy link

I want to be able to extract accurate start positions for various parts of a specification. As an example, from the model I can extract all the Path objects, and from an individual path I can get an overlay instance, using Overlay.of(path), and from that I can get the PositionInfo instance. But the start line for the position info returns the start of the contents of the path. E.g. the line containing the first non-blank entry such as a get: within the path. It doesn't return the line with the path itself. Is this expected? And should I be following a different sequence of calls to obtain the "real" start-line/column for the path. I can try working "backwards" from what the position info returns to get the real values, but before writing such a hack I wanted to make sure I just hadn't misunderstood how I'm supposed to use the overlays/position infos.

Thanks.

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

No branches or pull requests

1 participant