Herb C Reference
Loading...
Searching...
No Matches
pretty_print.h File Reference
#include "analyzed_ruby.h"
#include "ast_nodes.h"
#include "location.h"
#include "util/hb_buffer.h"
#include <stdbool.h>

Go to the source code of this file.

Functions

void pretty_print_indent (hb_buffer_T *buffer, size_t indent)
 
void pretty_print_newline (size_t indent, size_t relative_indent, hb_buffer_T *buffer)
 
void pretty_print_label (hb_string_T name, size_t indent, size_t relative_indent, bool last_property, hb_buffer_T *buffer)
 
void pretty_print_position_property (position_T *position, hb_string_T name, size_t indent, size_t relative_indent, bool last_property, hb_buffer_T *buffer)
 
void pretty_print_location (location_T location, hb_buffer_T *buffer)
 
void pretty_print_property (hb_string_T name, hb_string_T value, size_t indent, size_t relative_indent, bool last_property, hb_buffer_T *buffer)
 
void pretty_print_size_t_property (size_t value, hb_string_T name, size_t indent, size_t relative_indent, bool last_property, hb_buffer_T *buffer)
 
void pretty_print_string_property (hb_string_T string, hb_string_T name, size_t indent, size_t relative_indent, bool last_property, hb_buffer_T *buffer)
 
void pretty_print_quoted_property (hb_string_T name, hb_string_T value, size_t indent, size_t relative_indent, bool last_property, hb_buffer_T *buffer)
 
void pretty_print_boolean_property (hb_string_T name, bool value, size_t indent, size_t relative_indent, bool last_property, hb_buffer_T *buffer)
 
void pretty_print_token_property (token_T *token, hb_string_T name, size_t indent, size_t relative_indent, bool last_property, hb_buffer_T *buffer)
 
void pretty_print_array (hb_string_T name, hb_array_T *array, size_t indent, size_t relative_indent, bool last_property, hb_buffer_T *buffer)
 
void pretty_print_errors (AST_NODE_T *node, size_t indent, size_t relative_indent, bool last_property, hb_buffer_T *buffer)
 

Function Documentation

◆ pretty_print_indent()

void pretty_print_indent ( hb_buffer_T *  buffer,
size_t  indent 
)

◆ pretty_print_newline()

void pretty_print_newline ( size_t  indent,
size_t  relative_indent,
hb_buffer_T *  buffer 
)

◆ pretty_print_label()

void pretty_print_label ( hb_string_T  name,
size_t  indent,
size_t  relative_indent,
bool  last_property,
hb_buffer_T *  buffer 
)

◆ pretty_print_position_property()

void pretty_print_position_property ( position_T position,
hb_string_T  name,
size_t  indent,
size_t  relative_indent,
bool  last_property,
hb_buffer_T *  buffer 
)

◆ pretty_print_location()

void pretty_print_location ( location_T  location,
hb_buffer_T *  buffer 
)

◆ pretty_print_property()

void pretty_print_property ( hb_string_T  name,
hb_string_T  value,
size_t  indent,
size_t  relative_indent,
bool  last_property,
hb_buffer_T *  buffer 
)

◆ pretty_print_size_t_property()

void pretty_print_size_t_property ( size_t  value,
hb_string_T  name,
size_t  indent,
size_t  relative_indent,
bool  last_property,
hb_buffer_T *  buffer 
)

◆ pretty_print_string_property()

void pretty_print_string_property ( hb_string_T  string,
hb_string_T  name,
size_t  indent,
size_t  relative_indent,
bool  last_property,
hb_buffer_T *  buffer 
)

◆ pretty_print_quoted_property()

void pretty_print_quoted_property ( hb_string_T  name,
hb_string_T  value,
size_t  indent,
size_t  relative_indent,
bool  last_property,
hb_buffer_T *  buffer 
)

◆ pretty_print_boolean_property()

void pretty_print_boolean_property ( hb_string_T  name,
bool  value,
size_t  indent,
size_t  relative_indent,
bool  last_property,
hb_buffer_T *  buffer 
)

◆ pretty_print_token_property()

void pretty_print_token_property ( token_T token,
hb_string_T  name,
size_t  indent,
size_t  relative_indent,
bool  last_property,
hb_buffer_T *  buffer 
)

◆ pretty_print_array()

void pretty_print_array ( hb_string_T  name,
hb_array_T *  array,
size_t  indent,
size_t  relative_indent,
bool  last_property,
hb_buffer_T *  buffer 
)

◆ pretty_print_errors()

void pretty_print_errors ( AST_NODE_T node,
size_t  indent,
size_t  relative_indent,
bool  last_property,
hb_buffer_T *  buffer 
)