ASTParser.searchAST

Searches for a path of AST nodes lying within the specified offset.

struct ASTParser
AST[]
searchAST
(
size_t offset
,
bool inclusiveStart = true
,
bool inclusiveEnd = true
)

Parameters

offset size_t

The cursor position to search AST nodes in.

inclusiveStart bool

true if an AST [1 .. 3] should be matched for index 1.

inclusiveEnd bool

true if an AST [1 .. 3] should be matched for index 3.

Return Value

Type: AST[]

A path of AST nodes starting at the broadest object (Document) down to the finest object.

Meta