summaryrefslogtreecommitdiff
path: root/parse/node.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-12-15 20:03:03 -0800
committerOri Bernstein <ori@eigenstate.org>2015-12-15 20:03:03 -0800
commit24e4c23a889d9e7cc60e5da2bc9df0ec0f8ab04b (patch)
tree7673323681e711b9f6f3bc88d20929e723719076 /parse/node.c
parentdc0295e0515bba0b24ff79266361c8cc93ea2a76 (diff)
downloadmc-24e4c23a889d9e7cc60e5da2bc9df0ec0f8ab04b.tar.gz
Add support for traits with aux types.
This is not final syntax, but it seems to work.
Diffstat (limited to 'parse/node.c')
-rw-r--r--parse/node.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/parse/node.c b/parse/node.c
index 1f1309a..74f8c77 100644
--- a/parse/node.c
+++ b/parse/node.c
@@ -209,13 +209,15 @@ Node *mkblock(Srcloc loc, Stab *scope)
return n;
}
-Node *mkimplstmt(Srcloc loc, Node *name, Type *t, Node **decls, size_t ndecls)
+Node *mkimplstmt(Srcloc loc, Node *name, Type *t, Type **aux, size_t naux, Node **decls, size_t ndecls)
{
Node *n;
n = mknode(loc, Nimpl);
n->impl.traitname = name;
n->impl.type = t;
+ n->impl.aux = aux;
+ n->impl.naux = naux;
n->impl.decls = decls;
n->impl.ndecls = ndecls;
return n;