Options
All
  • Public
  • Public/Protected
  • All
Menu

Function that gets added to module but isn't exported

Hierarchy

Index

Constructors

Properties

_datatype?: Type
_isCompiled: boolean = false
copiedParams: ParamExpr[]
inputTypes: DataType[]
locals: FunLocalTracker[] = []
name: string
nparams: number
outputs: (DataExpr | NumberValue)[] = []
params: ParamExpr[]
rvStackOffset: number = 0
takeExprs: DependentLocalExpr[]
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

  • Generate webassembly to push locals onto the stack

    Parameters

    • locals: FunLocalTracker[]

      locals to push onto stack

    • Rest ...args: any[]

      @depricated passed tracker method

    Returns string

    webassembly text

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

Generated using TypeDoc