💻
What problem are you trying to solve?
You can use startLine, but unfortunately there seems to be no way to also modify pos to match. This unfortunately means that the AST interacts poorly with source mapping.
Describe the solution you'd like
Just adding a startPos should fix this.
Describe alternatives you've considered
We currently append a huge string at the beginning of our code with the number of spaces equal to the position offset. This is very inefficient and just inelegant. By just having a startPos the code would be way faster, simpler, and just all around better.
Documentation, Adoption, Migration Strategy
No response
💻
What problem are you trying to solve?
You can use
startLine, but unfortunately there seems to be no way to also modify pos to match. This unfortunately means that the AST interacts poorly with source mapping.Describe the solution you'd like
Just adding a
startPosshould fix this.Describe alternatives you've considered
We currently append a huge string at the beginning of our code with the number of spaces equal to the position offset. This is very inefficient and just inelegant. By just having a
startPosthe code would be way faster, simpler, and just all around better.Documentation, Adoption, Migration Strategy
No response