Prism Ruby parser
Loading...
Searching...
No Matches
Functions
json.h File Reference
#include "prism/excludes.h"
#include "prism/compiler/exported.h"
#include "prism/compiler/nonnull.h"
#include "prism/ast.h"
#include "prism/buffer.h"
#include "prism/parser.h"
Include dependency graph for json.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

PRISM_EXPORTED_FUNCTION void pm_dump_json (pm_buffer_t *buffer, const pm_parser_t *parser, const pm_node_t *node) PRISM_NONNULL(1
 Dump JSON to the given buffer.
 

Function Documentation

◆ pm_dump_json()

PRISM_EXPORTED_FUNCTION void pm_dump_json ( pm_buffer_t buffer,
const pm_parser_t parser,
const pm_node_t node 
)

Dump JSON to the given buffer.

Parameters
bufferThe buffer to serialize to.
parserThe parser that parsed the node.
nodeThe node to serialize.