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

Methods