findByValue
findByValue(
ast: any,
matcher: AstValueMatcher,
): { node: any; value: TokenSearchResult } | null
Parameters
ast: anymatcher: AstValueMatcher
findByValue(
ast: any,
matcher: AstValueMatcher,
): { node: any; value: TokenSearchResult } | null
ast: anymatcher: AstValueMatcher
Search the ast tree by checking each node's value token and return the first match