shithub: mc

Download patch

ref: f32109a79fd8602de04e1dca83ae3aaf44cadf03
parent: 196258441277732b8ab24471404b7fd21a81987a
author: Ori Bernstein <[email protected]>
date: Sat Feb 1 06:48:42 EST 2014

Insert the trait/impl nodes into the node list.

--- a/parse/gram.y
+++ b/parse/gram.y
@@ -206,7 +206,9 @@
             {puttype(file->file.globls, mkname($1.line, $1.name), $1.type);
              installucons(file->file.globls, $1.type);}
         | traitdef
+            {lappend(&file->file.stmts, &file->file.nstmts, $1);}
         | implstmt
+            {lappend(&file->file.stmts, &file->file.nstmts, $1);}
         | /* empty */
         ;