function getPotentialSyntacticTokens
getPotentialSyntacticTokens(cursor: TreeCursor): string[] | undefined

Given a TreeCursor positioned at a node, returns the potential syntactic tokens at that position.

Parameters

cursor: TreeCursor

A TreeCursor positioned at a node.

Return Type

string[] | undefined

An array of potential syntactic tokens, or undefined if none found.

Usage

import { getPotentialSyntacticTokens } from ".";