package runtime
import "cuelang.org/go/internal/core/runtime"
Index ¶
- Variables
- func RegisterBuiltin(importPath string, f PackageFunc)
- type PackageFunc
- type Runtime
- func New() *Runtime
- func (r *Runtime) AddInst(path string, key *adt.Vertex, p *build.Instance)
- func (x *Runtime) Build(b *build.Instance) (v *adt.Vertex, errs errors.Error)
- func (r *Runtime) GetInstanceFromNode(key *adt.Vertex) *build.Instance
- func (r *Runtime) IndexToString(i int64) string
- 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 (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 PackageFunc ¶
type Runtime ¶
type Runtime struct { // Data holds the legacy index strut. It is for transitional purposes only. Data interface{} // 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) GetInstanceFromNode ¶
func (*Runtime) IndexToString ¶
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) 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.3.1
- Published
- Apr 8, 2021
- Platform
- darwin/amd64
- Imports
- 13 packages
- Last checked
- 48 minutes ago –
Tools for package owners.