Hierarchy

  • BasicEvaluatedExpression

Constructors

Properties

array?: any[]
bigint?: bigint
bool?: boolean
expression: NodeEstreeIndex
falsy: boolean
getMembers: (() => string[])

Type declaration

    • (): string[]
    • Returns string[]

getMembersOptionals: (() => boolean[])

Type declaration

    • (): boolean[]
    • Returns boolean[]

identifier?: string | VariableInfoInterface
nullish?: boolean
number?: number
range: [number, number]
regExp?: RegExp
rootInfo: string | VariableInfoInterface
sideEffects: boolean
string?: string
templateStringKind?: "raw" | "cooked"
truthy: boolean
type: number
wrappedInnerExpressions: BasicEvaluatedExpression[]

Methods

  • Creates a boolean representation of this evaluated expression.

    Returns undefined | boolean

  • Gets the compile-time value of the expression

    Returns any

  • Creates a nullish coalescing representation of this evaluated expression.

    Returns undefined | boolean

  • Creates a string representation of this evaluated expression.

    Returns undefined | string

  • Can this expression have side effects?

    Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Is expression a runtime or compile-time value?

    Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns undefined | boolean

  • Returns boolean

  • Is expression a primitive or an object type value?

    Returns undefined | boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Set's the value of this expression to a particular identifier and its members.

    Parameters

    • identifier: string | VariableInfoInterface
    • rootInfo: string | VariableInfoInterface
    • getMembers: (() => string[])
        • (): string[]
        • Returns string[]

    • Optional getMembersOptionals: (() => boolean[])
        • (): boolean[]
        • Returns boolean[]

    Returns BasicEvaluatedExpression

Generated using TypeDoc