Answer architecture round 1: the read-once check back at link over uses from the compiled arms, every link step taking its inputs as arguments in link.go, a record column holding its name and datatype, and items 104 to 106 dropped from the plan with the decisions citing them reworded
This commit is contained in:
@@ -96,7 +96,7 @@ func bindInline(root *folder, n node, label string, typedByGo bool) error {
|
||||
loadShipped(root, unloadedReads(root, nil, scope))
|
||||
return binding{
|
||||
scope: scope,
|
||||
link: func() error { return linkNodeRefs(scope, root.children) },
|
||||
link: func() error { return linkInline(scope, root.children) },
|
||||
typedByGo: typedByGo,
|
||||
}.bind()
|
||||
}
|
||||
@@ -121,17 +121,3 @@ func refuseFolderRefs(scope nodeScope) error {
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
// linkNodeRefs links the templates of an inline node against the loaded tree.
|
||||
func linkNodeRefs(scope nodeScope, root map[string]node) error {
|
||||
var ts []linkSite
|
||||
if err := scope(func(label string, m node) error {
|
||||
if t, ok := m.(*template); ok {
|
||||
ts = append(ts, linkSite{t: t, label: label})
|
||||
}
|
||||
return nil
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
return linkTemplates(ts, root)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user