Documentation ¶
Index ¶
- Variables
- type ExternalRx
- type RxFuture
- type RxFutureType
- func (RxFutureType) Arity() int
- func (t RxFutureType) Call(arguments []runtime.Evaluatable, fromExpr ast.Expr) (runtime.RuntimeValue, *runtime.RuntimeError)
- func (t RxFutureType) Declaration(inter *runtime.Interpreter) (ast.Decl, *runtime.RuntimeError)
- func (d RxFutureType) HasInstance(inter *runtime.Interpreter, value runtime.RuntimeValue) (bool, *runtime.RuntimeError)
- func (RxFutureType) Lookup(member string) (runtime.Evaluatable, *runtime.RuntimeError)
- func (RxFutureType) RuntimeType() runtime.RuntimeTypeRef
- func (t RxFutureType) Source() *ast.Source
- func (RxFutureType) String() string
- type RxVariable
- func (v *RxVariable) Accept(lazyValue runtime.Evaluatable) (runtime.RuntimeValue, *runtime.RuntimeError)
- func (v *RxVariable) Current() (runtime.RuntimeValue, *runtime.RuntimeError)
- func (v RxVariable) Lookup(member string) (runtime.Evaluatable, *runtime.RuntimeError)
- func (RxVariable) RuntimeType() runtime.RuntimeTypeRef
- func (v RxVariable) String() string
- type RxVariableType
- func (RxVariableType) Arity() int
- func (t RxVariableType) Call(arguments []runtime.Evaluatable, fromExpr ast.Expr) (runtime.RuntimeValue, *runtime.RuntimeError)
- func (t RxVariableType) Declaration(inter *runtime.Interpreter) (ast.Decl, *runtime.RuntimeError)
- func (d RxVariableType) HasInstance(inter *runtime.Interpreter, value runtime.RuntimeValue) (bool, *runtime.RuntimeError)
- func (RxVariableType) Lookup(member string) (runtime.Evaluatable, *runtime.RuntimeError)
- func (RxVariableType) RuntimeType() runtime.RuntimeTypeRef
- func (t RxVariableType) Source() *ast.Source
- func (RxVariableType) String() string
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 (v RxFuture) Await() (runtime.RuntimeValue, *runtime.RuntimeError)
func (RxFuture) Lookup ¶
func (v RxFuture) Lookup(member string) (runtime.Evaluatable, *runtime.RuntimeError)
func (RxFuture) RuntimeType ¶
func (RxFuture) RuntimeType() runtime.RuntimeTypeRef
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) Lookup(member string) (runtime.Evaluatable, *runtime.RuntimeError)
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 (v *RxVariable) Accept(lazyValue runtime.Evaluatable) (runtime.RuntimeValue, *runtime.RuntimeError)
func (*RxVariable) Current ¶
func (v *RxVariable) Current() (runtime.RuntimeValue, *runtime.RuntimeError)
func (RxVariable) Lookup ¶
func (v RxVariable) Lookup(member string) (runtime.Evaluatable, *runtime.RuntimeError)
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 (t RxVariableType) Call(arguments []runtime.Evaluatable, fromExpr ast.Expr) (runtime.RuntimeValue, *runtime.RuntimeError)
func (RxVariableType) Declaration ¶
func (t RxVariableType) Declaration(inter *runtime.Interpreter) (ast.Decl, *runtime.RuntimeError)
func (RxVariableType) HasInstance ¶
func (d RxVariableType) HasInstance(inter *runtime.Interpreter, value runtime.RuntimeValue) (bool, *runtime.RuntimeError)
func (RxVariableType) Lookup ¶
func (RxVariableType) Lookup(member string) (runtime.Evaluatable, *runtime.RuntimeError)
func (RxVariableType) RuntimeType ¶
func (RxVariableType) RuntimeType() runtime.RuntimeTypeRef
func (RxVariableType) Source ¶
func (t RxVariableType) Source() *ast.Source
func (RxVariableType) String ¶
func (RxVariableType) String() string
Click to show internal directories.
Click to hide internal directories.