rx

package
v0.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RxFutureTypeRef = runtime.MakeRuntimeTypeRef("Future", "rx")
View Source
var RxVariableTypeRef = runtime.MakeRuntimeTypeRef("Variable", "rx")

Functions

This section is empty.

Types

type ExternalRx

type ExternalRx struct {
	// contains filtered or unexported fields
}

func New added in v0.0.19

func New(inter *runtime.Interpreter) ExternalRx

func (ExternalRx) Lookup

func (e ExternalRx) Lookup(name string, env *runtime.Environment, decl ast.Decl) (runtime.RuntimeValue, bool)

func (ExternalRx) MakeRxFuture added in v0.0.19

func (rx ExternalRx) MakeRxFuture(futureType *RxFutureType, configure runtime.CallableRuntimeValue) RxFuture

type RxFuture

type RxFuture struct {
	// contains filtered or unexported fields
}

func (RxFuture) Await

func (RxFuture) Lookup

func (v RxFuture) Lookup(member string) (runtime.Evaluatable, *runtime.RuntimeError)

func (RxFuture) RuntimeType

func (RxFuture) RuntimeType() runtime.RuntimeTypeRef

func (RxFuture) String

func (v RxFuture) String() string

type RxFutureType

type RxFutureType struct {
	ast.DeclExternType
	// contains filtered or unexported fields
}

func (RxFutureType) Arity

func (RxFutureType) Arity() int

func (RxFutureType) Call

func (t RxFutureType) Call(arguments []runtime.Evaluatable, fromExpr ast.Expr) (runtime.RuntimeValue, *runtime.RuntimeError)

func (RxFutureType) Declaration

func (t RxFutureType) Declaration(inter *runtime.Interpreter) (ast.Decl, *runtime.RuntimeError)

func (RxFutureType) HasInstance

func (d RxFutureType) HasInstance(inter *runtime.Interpreter, value runtime.RuntimeValue) (bool, *runtime.RuntimeError)

func (RxFutureType) Lookup

func (RxFutureType) RuntimeType

func (RxFutureType) RuntimeType() runtime.RuntimeTypeRef

func (RxFutureType) Source

func (t RxFutureType) Source() *ast.Source

func (RxFutureType) String

func (RxFutureType) String() string

type RxVariable

type RxVariable struct {
	// contains filtered or unexported fields
}

func MakeRxVariable

func MakeRxVariable(variableType *RxVariableType, current runtime.RuntimeValue) RxVariable

func (*RxVariable) Accept

func (*RxVariable) Current

func (RxVariable) Lookup

func (RxVariable) RuntimeType

func (RxVariable) RuntimeType() runtime.RuntimeTypeRef

func (RxVariable) String

func (v RxVariable) String() string

type RxVariableType

type RxVariableType struct {
	ast.DeclExternType
}

func (RxVariableType) Arity

func (RxVariableType) Arity() int

func (RxVariableType) Call

func (RxVariableType) Declaration

func (t RxVariableType) Declaration(inter *runtime.Interpreter) (ast.Decl, *runtime.RuntimeError)

func (RxVariableType) HasInstance

func (RxVariableType) Lookup

func (RxVariableType) RuntimeType

func (RxVariableType) RuntimeType() runtime.RuntimeTypeRef

func (RxVariableType) Source

func (t RxVariableType) Source() *ast.Source

func (RxVariableType) String

func (RxVariableType) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL