Add an io_bind keyword

This commit is contained in:
Nigel Tao committed 2018-04-28 11:45:33 +10:00
1 parent 00f660af60
commit 395890c287
11 files changed
+127 -18

No files matched your search

+8
View File
@@ -303,6 +303,14 @@ func (q *checker) bcheckStatement(n *a.Node) error {
case a.KVar:
return q.bcheckVar(n.Var())
case a.KIOBind:
n := n.IOBind()
if err := q.bcheckBlock(n.Body()); err != nil {
return err
}
// TODO: invalidate any facts regarding the io_bind expressions.
return nil
case a.KIterate:
n := n.Iterate()
for _, o := range n.Variables() {