Prism API
    Preparing search index...

    Class Token

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    alias?: TokenName | TokenName[]

    The alias(es) of the token.

    content: string | TokenStream

    The strings or tokens contained by this token.

    This will be a token stream if the pattern matched also defined an inside grammar.

    length: number

    Length of the full string this token was created from.

    Only used internally. The API does not guarantee that this field has any particular value or meaning.

    type: TokenName

    The type of the token.

    This is usually the key of a pattern in a Grammar.

    Methods