[ruby/prism] Static literals inspect

4913d112da
This commit is contained in:
Kevin Newton 2024-03-11 12:13:12 -04:00 committed by git
parent cb4bc4d03c
commit 21ea290b34
8 changed files with 382 additions and 21 deletions

View file

@ -106,4 +106,13 @@ pm_node_t * pm_static_literals_add(const pm_parser_t *parser, pm_static_literals
*/
void pm_static_literals_free(pm_static_literals_t *literals);
/**
* Create a string-based representation of the given static literal.
*
* @param buffer The buffer to write the string to.
* @param parser The parser that created the node.
* @param node The node to create a string representation of.
*/
PRISM_EXPORTED_FUNCTION void pm_static_literal_inspect(pm_buffer_t *buffer, const pm_parser_t *parser, const pm_node_t *node);
#endif