diff options
author | Carlos Maniero <carlos@maniero.me> | 2023-05-02 23:45:56 -0300 |
---|---|---|
committer | Johnny Richard <johnny@johnnyrichard.com> | 2023-05-03 23:00:14 +0200 |
commit | 0b0ce0d1735b4358691fb1d4a85b550d45ae9d48 (patch) | |
tree | e87de88ee2af7c8e2c86c6d906194007027f7c5b /test | |
parent | d97cdd9e84879d8fc3adf4bcf5c130f498e95b79 (diff) |
ast: Replace init by allocation (new) functions
All parsers have been following the patterns bellow:
ast_node_t *node = ast_node_new();
ast_node_init_node_kind(node, ...args);
return node;
Bringing a uncessessary distraction when reading. The pattern bellow was
replaced by:
return ast_node_new_node_kind(...args);
Signed-off-by: Carlos Maniero <carlos@maniero.me>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions