Skip to content

API: Node is missing getChildren(), getFirstToken(), getLastToken() and related getters #63892

Description

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.

Metadata

Metadata

Labels

Needs InvestigationThis issue needs a team member to investigate its status.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions