Description
The native API's Node is missing the child/token getters that exist on the JS-based API: getChildren(), getChildCount(), getChildAt(), getFirstToken() and getLastToken(). These are useful for API consumers (e.g. tools that walk the syntax tree including tokens), and are a natural completion of the position/text getters that were already added.
History
This work started in the typescript-go repo before development moved back here:
I'm opening this issue to track the re-submission; the PR follows shortly.
Description
The native API's
Nodeis missing the child/token getters that exist on the JS-based API:getChildren(),getChildCount(),getChildAt(),getFirstToken()andgetLastToken(). These are useful for API consumers (e.g. tools that walk the syntax tree including tokens), and are a natural completion of the position/text getters that were already added.History
This work started in the typescript-go repo before development moved back here:
Nodeis missinggetFullStart(),getStart()and other getters typescript-go#4216 (Nodeis missinggetFullStart(),getStart()and other getters)I'm opening this issue to track the re-submission; the PR follows shortly.