Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents an IDL function reference.

param

Argument types.

param

Return types.

param

Function annotations.

Hierarchy

Index

Constructors

constructor

  • new FuncClass(argTypes: Type<any>[], retTypes: Type<any>[], annotations?: string[]): FuncClass

Properties

annotations

annotations: string[] = []

argTypes

argTypes: Type<any>[]

retTypes

retTypes: Type<any>[]

Accessors

name

  • get name(): string
  • Returns string

Methods

_buildTypeTableImpl

  • _buildTypeTableImpl(T: TypeTable): void

accept

  • accept<D, R>(v: Visitor<D, R>, d: D): R

buildTypeTable

  • buildTypeTable(typeTable: TypeTable): void

checkType

covariant

  • covariant(x: any): x is [Principal, string]
  • Assert that JavaScript's x is the proper type represented by this Type.

    Parameters

    • x: any

    Returns x is [Principal, string]

decodeValue

  • decodeValue(b: Pipe): [Principal, string]

display

  • display(): string

Private encodeAnnotation

  • encodeAnnotation(ann: string): Buffer
  • Parameters

    • ann: string

    Returns Buffer

encodeType

  • encodeType(typeTable: TypeTable): Buffer
  • Implement I in the IDL spec. Encode this type for the type table.

    Parameters

    • typeTable: TypeTable

    Returns Buffer

encodeValue

  • encodeValue(x: [Principal, string]): Buffer
  • Encode the value. This needs to be public because it is used by encodeValue() from different types.

    Parameters

    • x: [Principal, string]

    Returns Buffer

valueToString

  • valueToString(__namedParameters: [Principal, string]): string
  • Parameters

    • __namedParameters: [Principal, string]

    Returns string

Static argsToString

  • argsToString(types: Type<any>[], v: any[]): string
  • Parameters

    • types: Type<any>[]
    • v: any[]

    Returns string

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Enumeration
  • Inherited method
  • Private method
  • Static method