1234567891011121314151617181920212223242526272829 |
- package rt2
- import (
- "fmt"
- "fw/cp"
- "fw/cp/node"
- "fw/rt2/context"
- "fw/rt2/frame"
- "fw/rt2/nodeframe"
- "fw/rt2/scope"
- "reflect"
- )
- var utils nodeframe.NodeFrameUtils
- func DataOf(f frame.Frame) map[interface{}]interface{} { panic(100) }
- func RegOf(f frame.Frame) map[interface{}]interface{} { return utils.DataOf(f) }
- func ValueOf(f frame.Frame) map[cp.ID]scope.Value {
- fmt.Println("getval ", reflect.TypeOf(NodeOf(f)))
- return utils.ValueOf(f)
- }
- func NodeOf(f frame.Frame) node.Node { return utils.NodeOf(f) }
- func Push(f, p frame.Frame) { utils.Push(f, p) }
- func New(n node.Node) frame.Frame { return utils.New(n) }
- func ScopeOf(f frame.Frame) scope.Manager {
- return f.Domain().Discover(context.SCOPE).(scope.Manager)
- }
- func ReplaceDomain(f frame.Frame, d context.Domain) { utils.ReplaceDomain(f, d) }
- func Assert(f frame.Frame, ok frame.Assert) { utils.Assert(f, ok) }
|