Skip to content
Discussion options

You must be logged in to vote

@Yokozuna59 What do you mean by saving it? Storing it in a variable? You can always access the positional data of any AST node by accessing it's $cstNode property. To get fine grained results for certain properties of the AST node, the functions findNodeForProperty and findNodeForKeyword can be called.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Yokozuna59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants