Skip to main content
Fragments of a concatenated string containing stringified Tokens.

Initializers


Methods


addEscape

kindRequired

  • Type: string

addIntrinsic

Adds an intrinsic fragment.

valueRequired

  • Type: any
the intrinsic value to add.

addLiteral

Adds a literal fragment.

litRequired

  • Type: any
the literal to add.

addToken

Adds a token fragment.

tokenRequired

the token to add.

concat

otherRequired


join

Combine the string fragments using the given joiner. If there are any

concatRequired


mapTokens

Apply a transformation function to all tokens in the string.

contextRequired


Properties


escapesRequired

Return all escape fragments from this string.

firstValueRequired

  • Type: any
Returns the first value.

intrinsicRequired

Return all intrinsic fragments from this string.

lengthRequired

  • Type: number
Returns the number of fragments.

literalsRequired

Return all literals from this string.

tokensRequired

Return all Tokens from this string.

firstTokenOptional

Returns the first token.