Companion

object Companion

Functions

Link copied to clipboard
fun fromTokenForDecompiler(token: A_Token): A_Phrase

Create a literal phrase from a literal.

Link copied to clipboard
fun literalNodeFromToken(token: A_Token): A_Phrase

Create a literal phrase from a literal.

Link copied to clipboard
fun syntheticLiteralNodeFor(literalValue: A_BasicObject, literalAsString: A_String = if (literalValue.isString) literalValue as A_String else stringFrom(literalValue.toString())): A_Phrase

Create a literal phrase from an AvailObject, the literal value itself. Automatically wrap the value inside a synthetic literal token. Use the specified literalAsString as the string form of the literal for printing.