This class provides an essay way to treat the document as a stream of tokens, and provides methods to iterate over these tokens.

Constructors

  • Creates a new token iterator object. The inital token index is set to the provided row and column coordinates.

    Parameters

    • session: EditSession

      The session to associate with

    • initialRow: number

      The row to start the tokenizing at

    • initialColumn: number

      The column to start the tokenizing at

    Returns TokenIterator

Properties

$row: number
$rowTokens: Token[]
$session: EditSession
$tokenIndex: number

Methods

  • Moves iterator position to the start of previous token.

    Returns Token

  • Moves iterator position to the start of next token.

    Returns Token

Generated using TypeDoc