feat: add out type arg info storing in declaration node
This commit is contained in:
@@ -69,7 +69,6 @@ fzl_node_t *pa_externfn(fzl_parser_t *parser)
|
|||||||
consume(parser);
|
consume(parser);
|
||||||
is_out = true;
|
is_out = true;
|
||||||
}
|
}
|
||||||
(void)is_out;
|
|
||||||
|
|
||||||
fzl_node_t *node = pa_expression(parser);
|
fzl_node_t *node = pa_expression(parser);
|
||||||
if (!node || node->type != FZL_NODETYPE_DECLARATION)
|
if (!node || node->type != FZL_NODETYPE_DECLARATION)
|
||||||
@@ -86,6 +85,7 @@ fzl_node_t *pa_externfn(fzl_parser_t *parser)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
node->var.is_out = is_out;
|
||||||
args[count++] = node;
|
args[count++] = node;
|
||||||
|
|
||||||
if (is(parser, FZL_TOKTYPE_RPAREN))
|
if (is(parser, FZL_TOKTYPE_RPAREN))
|
||||||
|
|||||||
Reference in New Issue
Block a user