Skip to content

Cm5Editor.getTokenAt method

Cm5Editor › getTokenAt

Unofficial

Retrieves information about the token at the given position.

Signature:

getTokenAt(pos: Position, precise?: boolean | undefined): Cm5Token

Parameters:

ParameterTypeDescription
posPositionThe position.
precise?boolean | undefinedWhether to use a more precise algorithm.

Returns: Cm5TokenThe token information.