summaryrefslogtreecommitdiff
path: root/src/nsgenbind-parser.y
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-08-02 22:59:08 +0100
committerVincent Sanders <vince@kyllikki.org>2015-08-02 22:59:08 +0100
commitdd684cd17564664ca9c51f0b95d0bbd3cbadddf2 (patch)
tree1ced9679fb0b8edbb8b5ccdbeda5c889de42f2ec /src/nsgenbind-parser.y
parent780d7c53a8479b62fe8d90e16a3045187e347cc7 (diff)
downloadnsgenbind-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.y6
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));
}
;