Herb C Reference
Loading...
Searching...
No Matches
pretty_print.h
Go to the documentation of this file.
1#ifndef HERB_PRETTY_PRINT_H
2#define HERB_PRETTY_PRINT_H
3
4#ifdef HERB_EXCLUDE_PRETTYPRINT
5// Pretty print support excluded
6#else
7
8# include "analyze/analyzed_ruby.h"
9# include "ast_nodes.h"
10# include "location.h"
11# include "util/hb_buffer.h"
12
13# include <stdbool.h>
14
15void pretty_print_indent(hb_buffer_T* buffer, size_t indent);
16void pretty_print_newline(size_t indent, size_t relative_indent, hb_buffer_T* buffer);
18 hb_string_T name,
19 size_t indent,
20 size_t relative_indent,
21 bool last_property,
22 hb_buffer_T* buffer
23);
24
26 position_T* position,
27 hb_string_T name,
28 size_t indent,
29 size_t relative_indent,
30 bool last_property,
31 hb_buffer_T* buffer
32);
33
34void pretty_print_location(location_T location, hb_buffer_T* buffer);
35
37 hb_string_T name,
38 hb_string_T value,
39 size_t indent,
40 size_t relative_indent,
41 bool last_property,
42 hb_buffer_T* buffer
43);
44
46 size_t value,
47 hb_string_T name,
48 size_t indent,
49 size_t relative_indent,
50 bool last_property,
51 hb_buffer_T* buffer
52);
53
55 hb_string_T string,
56 hb_string_T name,
57 size_t indent,
58 size_t relative_indent,
59 bool last_property,
60 hb_buffer_T* buffer
61);
62
64 hb_string_T name,
65 hb_string_T value,
66 size_t indent,
67 size_t relative_indent,
68 bool last_property,
69 hb_buffer_T* buffer
70);
71
73 hb_string_T name,
74 bool value,
75 size_t indent,
76 size_t relative_indent,
77 bool last_property,
78 hb_buffer_T* buffer
79);
80
82 token_T* token,
83 hb_string_T name,
84 size_t indent,
85 size_t relative_indent,
86 bool last_property,
87 hb_buffer_T* buffer
88);
89
91 hb_string_T name,
92 hb_array_T* array,
93 size_t indent,
94 size_t relative_indent,
95 bool last_property,
96 hb_buffer_T* buffer
97);
98
100 AST_NODE_T* node,
101 size_t indent,
102 size_t relative_indent,
103 bool last_property,
104 hb_buffer_T* buffer
105);
106
107#endif
108#endif
void pretty_print_errors(AST_NODE_T *node, size_t indent, size_t relative_indent, bool last_property, hb_buffer_T *buffer)
Definition pretty_print.c:153
void pretty_print_location(location_T location, hb_buffer_T *buffer)
Definition pretty_print.c:166
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)
Definition pretty_print.c:207
void pretty_print_label(hb_string_T name, size_t indent, size_t relative_indent, bool last_property, hb_buffer_T *buffer)
Definition pretty_print.c:30
void pretty_print_newline(size_t indent, size_t relative_indent, hb_buffer_T *buffer)
Definition pretty_print.c:24
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)
Definition pretty_print.c:104
void pretty_print_indent(hb_buffer_T *buffer, size_t indent)
Definition pretty_print.c:18
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)
Definition pretty_print.c:87
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)
Definition pretty_print.c:74
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)
Definition pretty_print.c:63
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)
Definition pretty_print.c:181
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)
Definition pretty_print.c:50
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)
Definition pretty_print.c:231
Definition ast_nodes.h:57
Definition location.h:9
Definition position.h:8
Definition token_struct.h:57