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#include "analyzed_ruby.h"
5#include "ast_nodes.h"
6#include "location.h"
7#include "util/hb_buffer.h"
8
9#include <stdbool.h>
10
11void pretty_print_indent(hb_buffer_T* buffer, size_t indent);
12void pretty_print_newline(size_t indent, size_t relative_indent, hb_buffer_T* buffer);
14 hb_string_T name,
15 size_t indent,
16 size_t relative_indent,
17 bool last_property,
18 hb_buffer_T* buffer
19);
20
22 position_T* position,
23 hb_string_T name,
24 size_t indent,
25 size_t relative_indent,
26 bool last_property,
27 hb_buffer_T* buffer
28);
29
30void pretty_print_location(location_T location, hb_buffer_T* buffer);
31
33 hb_string_T name,
34 hb_string_T value,
35 size_t indent,
36 size_t relative_indent,
37 bool last_property,
38 hb_buffer_T* buffer
39);
40
42 size_t value,
43 hb_string_T name,
44 size_t indent,
45 size_t relative_indent,
46 bool last_property,
47 hb_buffer_T* buffer
48);
49
51 hb_string_T string,
52 hb_string_T name,
53 size_t indent,
54 size_t relative_indent,
55 bool last_property,
56 hb_buffer_T* buffer
57);
58
60 hb_string_T name,
61 hb_string_T value,
62 size_t indent,
63 size_t relative_indent,
64 bool last_property,
65 hb_buffer_T* buffer
66);
67
69 hb_string_T name,
70 bool value,
71 size_t indent,
72 size_t relative_indent,
73 bool last_property,
74 hb_buffer_T* buffer
75);
76
78 token_T* token,
79 hb_string_T name,
80 size_t indent,
81 size_t relative_indent,
82 bool last_property,
83 hb_buffer_T* buffer
84);
85
87 hb_string_T name,
88 hb_array_T* array,
89 size_t indent,
90 size_t relative_indent,
91 bool last_property,
92 hb_buffer_T* buffer
93);
94
96 AST_NODE_T* node,
97 size_t indent,
98 size_t relative_indent,
99 bool last_property,
100 hb_buffer_T* buffer
101);
102
103#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:151
void pretty_print_location(location_T location, hb_buffer_T *buffer)
Definition pretty_print.c:164
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:205
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:28
void pretty_print_newline(size_t indent, size_t relative_indent, hb_buffer_T *buffer)
Definition pretty_print.c:22
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:102
void pretty_print_indent(hb_buffer_T *buffer, size_t indent)
Definition pretty_print.c:16
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:85
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:72
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:61
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:179
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:48
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:229
Definition ast_nodes.h:53
Definition location.h:9
Definition position.h:8
Definition token_struct.h:51