mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 01:01:35 +01:00
Add an io_bind keyword
This commit is contained in:
1 parent
00f660af60
commit
395890c287
11 files changed
+127
-18
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user