diff options
author | Kevin Newton <[email protected]> | 2023-08-24 15:18:10 -0400 |
---|---|---|
committer | git <[email protected]> | 2023-08-24 19:27:22 +0000 |
commit | 90048241cad97573d830e86222ca4826a32da13e (patch) | |
tree | fe9a40f432b0c1991cd3e6afc8b3e86eef7057bb /yarp/yarp.h | |
parent | 90ff30e51e877b292e156f771e30a76876101387 (diff) |
[ruby/yarp] A couple small stylistic updates for yp_scope_node
* Ensure the node gets initialized in case of failure with no assertions
* Include lambda and top-level nodes for scopes
* Small indentation fixes
https://github.com/ruby/yarp/commit/be29e07391
Diffstat (limited to 'yarp/yarp.h')
-rw-r--r-- | yarp/yarp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yarp/yarp.h b/yarp/yarp.h index 6b1f3b4ed7..078483193d 100644 --- a/yarp/yarp.h +++ b/yarp/yarp.h @@ -30,7 +30,7 @@ void yp_serialize_content(yp_parser_t *parser, yp_node_t *node, yp_buffer_t *buf void yp_print_node(yp_parser_t *parser, yp_node_t *node); -// Generate a scope node for a DefNode and ClassNode +// Generate a scope node from the given node. void yp_scope_node_init(yp_node_t *node, yp_scope_node_t *dest); // The YARP version and the serialization format. |