Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Expr Abstract

This stores expressions that we can reason about but can't completly eliminate from the code.

For example, operations on user input and not constant-values

abstract

Hierarchy

Index

Constructors

Properties

_datatype?: Type
_isCompiled: boolean = false
token: LexerToken
type: ValueType
value: any
Type: typeof ValueType = ValueType

Accessors

  • get datatype(): Type
  • set datatype(t: Type): void
  • get expensive(): boolean
  • Would it be better to store the value in a local or inline it multiple times?

    virtual

    Returns boolean

    true if performance would improve with caching false if inlining better

Methods

  • Exhaustive version of .children()

    Returns Expr[]

    all child nodes which don't have children

  • isConstExpr(): boolean
  • typename(): string

Generated using TypeDoc