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: interface{}
the intrinsic value to add.

AddLiteral

Adds a literal fragment.

litRequired

  • Type: interface{}
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: interface{}
Returns the first value.

IntrinsicRequired

Return all intrinsic fragments from this string.

LengthRequired

  • Type: *f64
Returns the number of fragments.

LiteralsRequired

Return all literals from this string.

TokensRequired

Return all Tokens from this string.

FirstTokenOptional

Returns the first token.