@mathjax/src
    Preparing search index...

    Final item on the stack. Errors will be thrown if other items than the start item are still on the stack.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    factory: default

    The factory for stack items.

    global: EnvList = {}
    startI: number = 0
    startStr: string = ''
    stopI: number = 0
    errors: { [key: string]: string[] } = ...

    A list of basic errors.

    fail: CheckType = ...

    The fail value.

    success: CheckType = ...

    The success value.

    Accessors

    • get env(): EnvList

      Returns EnvList

      Get the private environment

    • set env(value: EnvList): void

      Set the private environment

      Parameters

      • value: EnvList

        New private environemt.

      Returns void

    • get isFinal(): boolean

      Returns boolean

      True if item is final, i.e., it contains one or multiple finished parsed nodes.

    • get isOpen(): boolean

      Returns boolean

      True if item is an opening entity, i.e., it expects a closing counterpart on the stack later.

    Methods

    • Convenience method to create nodes with the node factory on this stack.

      Parameters

      • kind: string

        The kind of node to create.

      • ...rest: any[]

        The remaining arguments for the creation method.

      Returns MmlNode

      The newly created node.

    • Get error messages for a particular types of stack item. This reads error messages from the static errors object, which can be extended in subclasses.

      Parameters

      • kind: string

        The stack item type.

      Returns string[]

      The list of arguments for the TeXError.