package runtime
import "cuelang.org/go/internal/core/runtime"
Index ¶
- Variables
- func RegisterBuiltin(importPath string, f PackageFunc)
- type Config
- type PackageFunc
- type Runtime
- func New() *Runtime
- func (r *Runtime) AddInst(path string, key *adt.Vertex, p *build.Instance)
- func (x *Runtime) Build(cfg *Config, b *build.Instance) (v *adt.Vertex, errs errors.Error)
- func (r *Runtime) BuildData(b *build.Instance) (x interface{}, ok bool)
- func (r *Runtime) Compile(cfg *Config, source interface{}) (*adt.Vertex, *build.Instance)
- func (r *Runtime) CompileFile(cfg *Config, file *ast.File) (*adt.Vertex, *build.Instance)
- func (r *Runtime) GetInstanceFromNode(key *adt.Vertex) *build.Instance
- func (r *Runtime) IndexToString(i int64) string
- func (r *Runtime) Init()
- func (x *Runtime) IsBuiltinPackage(path string) bool
- func (r *Runtime) Label(s string, isIdent bool) adt.Feature
- func (r *Runtime) LabelStr(l adt.Feature) string
- func (r *Runtime) LoadImport(importPath string) (*adt.Vertex, errors.Error)
- func (x *Runtime) LoadType(t reflect.Type) (src ast.Expr, expr adt.Expr, ok bool)
- func (r *Runtime) ResolveFiles(p *build.Instance) (errs errors.Error)
- func (r *Runtime) SetBuildData(b *build.Instance, x interface{})
- func (x *Runtime) StoreType(t reflect.Type, src ast.Expr, expr adt.Expr)
- func (r *Runtime) StrLabel(str string) adt.Feature
- func (r *Runtime) StringToIndex(s string) int64
Variables ¶
var Runtime{index: sharedIndex}= &
Functions ¶
func RegisterBuiltin ¶
func RegisterBuiltin(importPath string, f PackageFunc)
Types ¶
type Config ¶
type PackageFunc ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
A Runtime maintains data structures for indexing and resuse for evaluation.
func New ¶
func New() *Runtime
New creates a new Runtime. The builtins registered with RegisterBuiltin are available for
func (*Runtime) AddInst ¶
func (*Runtime) Build ¶
Build builds b and all its transitive dependencies, insofar they have not been build yet.
func (*Runtime) BuildData ¶
func (*Runtime) Compile ¶
func (*Runtime) CompileFile ¶
func (*Runtime) GetInstanceFromNode ¶
func (*Runtime) IndexToString ¶
func (*Runtime) Init ¶
func (r *Runtime) Init()
func (*Runtime) IsBuiltinPackage ¶
func (*Runtime) Label ¶
func (*Runtime) LabelStr ¶
func (*Runtime) LoadImport ¶
func (*Runtime) LoadType ¶
func (*Runtime) ResolveFiles ¶
TODO(resolve): this is also done in compile, do we need both?
func (*Runtime) SetBuildData ¶
func (*Runtime) StoreType ¶
func (*Runtime) StrLabel ¶
func (*Runtime) StringToIndex ¶
Source Files ¶
build.go errors.go go.go imports.go index.go resolve.go runtime.go
- Version
- v0.4.0-rc.1
- Published
- May 19, 2021
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 55 minutes ago –
Tools for package owners.