Binaryen.TS - v0.3.0
    Preparing search index...

    Hierarchy (View Summary)

    Index
    • Construct a new Expression object given an ID and reference.

      Without an ID, you can still call Expression(expr) (without new), which will compute the ID and construct an Expression object from there.

      Parameters

      • exprId: ExpressionId

        the expression “kind” id

      • expr: number

        the expression reference

      Returns expressions.Expression

    _ptr: number

    The underlying C-API pointer of the wrapped expression.

    • get type(): Type

      Returns Type

    • set type(typ: Type): void

      Parameters

      Returns void

    • Returns void

    • Adds to this object enumerable own properties that are computed from getter methods. Useful when calling JSON.stringify:

      JSON.stringify(this.toJson());
      

      Returns Record<string, number | string>

    • Returns string

    • Returns number