summaryrefslogtreecommitdiff
path: root/parse/node.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-02-14 19:25:17 -0500
committerOri Bernstein <ori@eigenstate.org>2014-02-14 19:25:17 -0500
commit0c454eb69e126d7180b0a05598de1fac65dc3fd3 (patch)
treee4b4b12df3efe6c670af204fd665f67108b160f9 /parse/node.c
parentcb804dc4af19cad9ba86a55aa5cc8b3c1a9a4159 (diff)
downloadmc-0c454eb69e126d7180b0a05598de1fac65dc3fd3.tar.gz
More work towards implementing traits.
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 2d35f41..0589c3d 100644
--- a/parse/node.c
+++ b/parse/node.c
@@ -183,13 +183,15 @@ Node *mkblock(int line, Stab *scope)
return n;
}
-Node *mkimplstmt(int line, Node *name, Type *t)
+Node *mkimplstmt(int line, Node *name, Type *t, Node **decls, size_t ndecls)
{
Node *n;
n = mknode(line, Nimpl);
n->impl.traitname = name;
n->impl.type = t;
+ n->impl.decls = decls;
+ n->impl.ndecls = ndecls;
return n;
}