Documentation ¶
Index ¶
- Variables
- func RegisterBuiltin(importPath string, f PackageFunc)
- type PackageFunc
- type 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) GetNodeFromInstance(key *build.Instance) *adt.Vertex
- 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
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterBuiltin ¶
func RegisterBuiltin(importPath string, f PackageFunc)
Types ¶
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) Build ¶
Build builds b and all its transitive dependencies, insofar they have not been build yet.
func (*Runtime) GetInstanceFromNode ¶
func (*Runtime) GetNodeFromInstance ¶
func (*Runtime) IndexToString ¶
func (*Runtime) IsBuiltinPackage ¶
func (*Runtime) LoadImport ¶
func (*Runtime) ResolveFiles ¶
func (*Runtime) StringToIndex ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.