$darkmode
Herb C Reference
pretty_print.c File Reference
#include "include/pretty_print.h"
#include "include/analyzed_ruby.h"
#include "include/ast_node.h"
#include "include/ast_nodes.h"
#include "include/ast_pretty_print.h"
#include "include/errors.h"
#include "include/token_struct.h"
#include "include/util.h"
#include "include/util/hb_buffer.h"
#include "include/util/hb_string.h"
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>

Functions

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

Function Documentation

◆ pretty_print_indent()

void pretty_print_indent ( hb_buffer_T *  buffer,
const size_t  indent 
)

◆ pretty_print_newline()

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

◆ pretty_print_label()

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

◆ pretty_print_quoted_property()

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

◆ pretty_print_boolean_property()

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

◆ pretty_print_property()

void pretty_print_property ( hb_string_T  name,
hb_string_T  value,
const size_t  indent,
const size_t  relative_indent,
const 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,
const size_t  indent,
const size_t  relative_indent,
const bool  last_property,
hb_buffer_T *  buffer 
)

◆ pretty_print_array()

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

◆ pretty_print_errors()

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

◆ pretty_print_location()

void pretty_print_location ( location_T  location,
hb_buffer_T *  buffer 
)

◆ pretty_print_position_property()

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

◆ pretty_print_token_property()

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

◆ pretty_print_string_property()

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