Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DataType Abstract

Types of entities that can be physically represented

Hierarchy

Implements

  • DataTypeInterface

Index

Constructors

Properties

token: LexerToken
valueType: ValueType
ValueTypes: { 0: SyntaxType; 1: SyntaxType; 2: SyntaxType; 3: SyntaxType; 4: SyntaxType; 5: SyntaxType; 6: SyntaxType; 7: SyntaxType; 8: SyntaxType; 9: SyntaxType } = ...

Methods

  • check(type: Type): boolean
  • Get a flat list of primitive types that constitute this type

    throws

    if union encountered throws string "union"

    virtual

    Returns (PrimitiveType | RefType<DataType>)[]

    list of primitives that this type compiles to

  • getWasmTypeName(name?: string): string
  • Gives the wasm typename for given type

    virtual

    Parameters

    • Optional name: string

    Returns string

    • typename
  • isUnit(): boolean
  • Does this type hold a value in wasm?

    virtual

    Returns boolean

    false if the value doesn't carry a value

  • toString(): string

Generated using TypeDoc