mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 00:47:28 +01:00
Name the func's "in" and "out" params.
This eliminates one []*Node typed field from the Node struct.
This commit is contained in:
1 parent
f7095028f0
commit
85f3cca0cd
4 files changed
+44
-39
No files matched your search
+3
-1
@@ -108,7 +108,9 @@ func (p *parser) parseTopLevelDecl() (*a.Node, error) {
|
||||
return nil, fmt.Errorf("parse: expected (implicit) \";\", got %q at %s:%d", got, p.filename, p.line())
|
||||
}
|
||||
p.src = p.src[1:]
|
||||
return a.NewFunc(flags, p.filename, line, id0, id1, inParams, outParams, body).Node(), nil
|
||||
in := a.NewStruct(0, p.filename, line, t.IDIn, inParams)
|
||||
out := a.NewStruct(0, p.filename, line, t.IDOut, outParams)
|
||||
return a.NewFunc(flags, p.filename, line, id0, id1, in, out, body).Node(), nil
|
||||
|
||||
case t.IDStruct:
|
||||
flags := a.Flags(0)
|
||||
|
||||
Reference in new issue
Block a user