diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-08-02 22:59:08 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-08-02 22:59:08 +0100 |
commit | dd684cd17564664ca9c51f0b95d0bbd3cbadddf2 (patch) | |
tree | 1ced9679fb0b8edbb8b5ccdbeda5c889de42f2ec /src/nsgenbind-parser.y | |
parent | 780d7c53a8479b62fe8d90e16a3045187e347cc7 (diff) | |
download | nsgenbind-dd684cd17564664ca9c51f0b95d0bbd3cbadddf2.tar.gz nsgenbind-dd684cd17564664ca9c51f0b95d0bbd3cbadddf2.tar.bz2 |
Fix initialiser parameter list
The initialiser parameter list parsing was missing creation of a
parameter node in the AST and the parameter iterator was looking for a
method node instead of a paramter node.
Diffstat (limited to 'src/nsgenbind-parser.y')
-rw-r--r-- | src/nsgenbind-parser.y | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nsgenbind-parser.y b/src/nsgenbind-parser.y index 456decb..0f30dfc 100644 --- a/src/nsgenbind-parser.y +++ b/src/nsgenbind-parser.y @@ -350,7 +350,11 @@ ParameterList | ParameterList ',' TypeIdent { - $$ = genbind_node_link($3, $1); + $$ = genbind_node_prepend($1, + genbind_new_node( + GENBIND_NODE_TYPE_PARAMETER, + NULL, + $3)); } ; |