Herb C Reference
Loading...
Searching...
No Matches
errors.h
Go to the documentation of this file.
1// NOTE: This file is generated by the templates/template.rb script and should not
2// be modified manually. See /home/runner/work/herb/herb/templates/src/include/errors.h.erb
3
4#ifndef HERB_ERRORS_H
5#define HERB_ERRORS_H
6
7#include "errors.h"
8#include "location/location.h"
9#include "location/position.h"
10#include "lexer/token.h"
11#include "lib/hb_allocator.h"
12#include "lib/hb_array.h"
13#include "lib/hb_buffer.h"
14#include "lib/hb_string.h"
15
55
56typedef struct ERROR_STRUCT {
58 location_T location;
59 hb_string_T message;
61
62
63typedef struct {
65 hb_string_T description;
66 hb_string_T expected;
67 hb_string_T found;
69
70typedef struct {
72 token_type_T expected_type;
73 token_T* found;
75
80
85
86typedef struct {
88 token_T* opening_tag;
89 token_T* closing_tag;
91
92typedef struct {
94 token_T* tag_name;
95 hb_string_T expected;
96 hb_string_T found;
98
99typedef struct {
101 token_T* opening_tag;
103
104typedef struct {
106 hb_string_T error_message;
107 hb_string_T diagnostic_id;
108 hb_string_T level;
110
111typedef struct {
113 hb_string_T keyword;
115
116typedef struct {
118 hb_string_T keyword;
120
121typedef struct {
123 /* no additional fields */
125
126typedef struct {
128 /* no additional fields */
130
136
147
152
158
159typedef struct {
161 token_T* tag_name;
163
164typedef struct {
166 token_T* tag_name;
168
173
178
183
184typedef struct {
186 /* no additional fields */
188
195
196typedef struct {
198 hb_string_T partial;
200
201typedef struct {
203 hb_string_T partial;
204 hb_string_T keywords;
206
207typedef struct {
209 /* no additional fields */
211
217
222
223typedef struct {
225 /* no additional fields */
227
232
237
242
247
252
253typedef struct {
255 /* no additional fields */
257
258typedef struct {
260 token_T* tag_name;
261 hb_string_T helper_name;
263
264typedef struct {
266 token_T* segment;
268
269UNEXPECTED_ERROR_T* unexpected_error_init(hb_string_T description, hb_string_T expected, hb_string_T found, position_T start, position_T end, hb_allocator_T* allocator);
270void append_unexpected_error(hb_string_T description, hb_string_T expected, hb_string_T found, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
271UNEXPECTED_TOKEN_ERROR_T* unexpected_token_error_init(token_type_T expected_type, token_T* found, position_T start, position_T end, hb_allocator_T* allocator);
272void append_unexpected_token_error(token_type_T expected_type, token_T* found, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
273MISSING_OPENING_TAG_ERROR_T* missing_opening_tag_error_init(token_T* closing_tag, position_T start, position_T end, hb_allocator_T* allocator);
274void append_missing_opening_tag_error(token_T* closing_tag, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
275MISSING_CLOSING_TAG_ERROR_T* missing_closing_tag_error_init(token_T* opening_tag, position_T start, position_T end, hb_allocator_T* allocator);
276void append_missing_closing_tag_error(token_T* opening_tag, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
277TAG_NAMES_MISMATCH_ERROR_T* tag_names_mismatch_error_init(token_T* opening_tag, token_T* closing_tag, position_T start, position_T end, hb_allocator_T* allocator);
278void append_tag_names_mismatch_error(token_T* opening_tag, token_T* closing_tag, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
279VOID_ELEMENT_CLOSING_TAG_ERROR_T* void_element_closing_tag_error_init(token_T* tag_name, hb_string_T expected, hb_string_T found, position_T start, position_T end, hb_allocator_T* allocator);
280void append_void_element_closing_tag_error(token_T* tag_name, hb_string_T expected, hb_string_T found, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
281UNCLOSED_ELEMENT_ERROR_T* unclosed_element_error_init(token_T* opening_tag, position_T start, position_T end, hb_allocator_T* allocator);
282void append_unclosed_element_error(token_T* opening_tag, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
283RUBY_PARSE_ERROR_T* ruby_parse_error_init(hb_string_T error_message, hb_string_T diagnostic_id, hb_string_T level, position_T start, position_T end, hb_allocator_T* allocator);
284void append_ruby_parse_error(hb_string_T error_message, hb_string_T diagnostic_id, hb_string_T level, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
285ERB_CONTROL_FLOW_SCOPE_ERROR_T* erb_control_flow_scope_error_init(hb_string_T keyword, position_T start, position_T end, hb_allocator_T* allocator);
286void append_erb_control_flow_scope_error(hb_string_T keyword, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
287MISSING_ERB_END_TAG_ERROR_T* missing_erb_end_tag_error_init(hb_string_T keyword, position_T start, position_T end, hb_allocator_T* allocator);
288void append_missing_erb_end_tag_error(hb_string_T keyword, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
289ERB_MULTIPLE_BLOCKS_IN_TAG_ERROR_T* erb_multiple_blocks_in_tag_error_init(position_T start, position_T end, hb_allocator_T* allocator);
290void append_erb_multiple_blocks_in_tag_error(position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
291ERB_CASE_WITH_CONDITIONS_ERROR_T* erb_case_with_conditions_error_init(position_T start, position_T end, hb_allocator_T* allocator);
292void append_erb_case_with_conditions_error(position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
293CONDITIONAL_ELEMENT_MULTIPLE_TAGS_ERROR_T* conditional_element_multiple_tags_error_init(size_t line, size_t column, position_T start, position_T end, hb_allocator_T* allocator);
294void append_conditional_element_multiple_tags_error(size_t line, size_t column, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
295CONDITIONAL_ELEMENT_CONDITION_MISMATCH_ERROR_T* conditional_element_condition_mismatch_error_init(hb_string_T tag_name, hb_string_T open_condition, size_t open_line, size_t open_column, hb_string_T close_condition, size_t close_line, size_t close_column, position_T start, position_T end, hb_allocator_T* allocator);
296void append_conditional_element_condition_mismatch_error(hb_string_T tag_name, hb_string_T open_condition, size_t open_line, size_t open_column, hb_string_T close_condition, size_t close_line, size_t close_column, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
297INVALID_COMMENT_CLOSING_TAG_ERROR_T* invalid_comment_closing_tag_error_init(token_T* closing_tag, position_T start, position_T end, hb_allocator_T* allocator);
298void append_invalid_comment_closing_tag_error(token_T* closing_tag, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
299OMITTED_CLOSING_TAG_ERROR_T* omitted_closing_tag_error_init(token_T* opening_tag, position_T insertion_point, position_T start, position_T end, hb_allocator_T* allocator);
300void append_omitted_closing_tag_error(token_T* opening_tag, position_T insertion_point, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
301UNCLOSED_OPEN_TAG_ERROR_T* unclosed_open_tag_error_init(token_T* tag_name, position_T start, position_T end, hb_allocator_T* allocator);
302void append_unclosed_open_tag_error(token_T* tag_name, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
303UNCLOSED_CLOSE_TAG_ERROR_T* unclosed_close_tag_error_init(token_T* tag_name, position_T start, position_T end, hb_allocator_T* allocator);
304void append_unclosed_close_tag_error(token_T* tag_name, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
305UNCLOSED_QUOTE_ERROR_T* unclosed_quote_error_init(token_T* opening_quote, position_T start, position_T end, hb_allocator_T* allocator);
306void append_unclosed_quote_error(token_T* opening_quote, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
307MISSING_ATTRIBUTE_VALUE_ERROR_T* missing_attribute_value_error_init(hb_string_T attribute_name, position_T start, position_T end, hb_allocator_T* allocator);
308void append_missing_attribute_value_error(hb_string_T attribute_name, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
309UNCLOSED_ERB_TAG_ERROR_T* unclosed_erb_tag_error_init(token_T* opening_tag, position_T start, position_T end, hb_allocator_T* allocator);
310void append_unclosed_erb_tag_error(token_T* opening_tag, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
311STRAY_ERB_CLOSING_TAG_ERROR_T* stray_erb_closing_tag_error_init(position_T start, position_T end, hb_allocator_T* allocator);
312void append_stray_erb_closing_tag_error(position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
313NESTED_ERB_TAG_ERROR_T* nested_erb_tag_error_init(token_T* opening_tag, size_t nested_tag_line, size_t nested_tag_column, position_T start, position_T end, hb_allocator_T* allocator);
314void append_nested_erb_tag_error(token_T* opening_tag, size_t nested_tag_line, size_t nested_tag_column, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
315RENDER_AMBIGUOUS_LOCALS_ERROR_T* render_ambiguous_locals_error_init(hb_string_T partial, position_T start, position_T end, hb_allocator_T* allocator);
316void append_render_ambiguous_locals_error(hb_string_T partial, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
317RENDER_MISSING_LOCALS_ERROR_T* render_missing_locals_error_init(hb_string_T partial, hb_string_T keywords, position_T start, position_T end, hb_allocator_T* allocator);
318void append_render_missing_locals_error(hb_string_T partial, hb_string_T keywords, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
319RENDER_NO_ARGUMENTS_ERROR_T* render_no_arguments_error_init(position_T start, position_T end, hb_allocator_T* allocator);
320void append_render_no_arguments_error(position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
321RENDER_CONFLICTING_PARTIAL_ERROR_T* render_conflicting_partial_error_init(hb_string_T positional_partial, hb_string_T keyword_partial, position_T start, position_T end, hb_allocator_T* allocator);
322void append_render_conflicting_partial_error(hb_string_T positional_partial, hb_string_T keyword_partial, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
323RENDER_INVALID_AS_OPTION_ERROR_T* render_invalid_as_option_error_init(hb_string_T as_value, position_T start, position_T end, hb_allocator_T* allocator);
324void append_render_invalid_as_option_error(hb_string_T as_value, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
325RENDER_OBJECT_AND_COLLECTION_ERROR_T* render_object_and_collection_error_init(position_T start, position_T end, hb_allocator_T* allocator);
326void append_render_object_and_collection_error(position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
327RENDER_LAYOUT_WITHOUT_BLOCK_ERROR_T* render_layout_without_block_error_init(hb_string_T layout, position_T start, position_T end, hb_allocator_T* allocator);
328void append_render_layout_without_block_error(hb_string_T layout, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
329STRICT_LOCALS_POSITIONAL_ARGUMENT_ERROR_T* strict_locals_positional_argument_error_init(hb_string_T name, position_T start, position_T end, hb_allocator_T* allocator);
330void append_strict_locals_positional_argument_error(hb_string_T name, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
331STRICT_LOCALS_BLOCK_ARGUMENT_ERROR_T* strict_locals_block_argument_error_init(hb_string_T name, position_T start, position_T end, hb_allocator_T* allocator);
332void append_strict_locals_block_argument_error(hb_string_T name, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
333STRICT_LOCALS_SPLAT_ARGUMENT_ERROR_T* strict_locals_splat_argument_error_init(hb_string_T name, position_T start, position_T end, hb_allocator_T* allocator);
334void append_strict_locals_splat_argument_error(hb_string_T name, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
335STRICT_LOCALS_MISSING_PARENTHESIS_ERROR_T* strict_locals_missing_parenthesis_error_init(hb_string_T rest, position_T start, position_T end, hb_allocator_T* allocator);
336void append_strict_locals_missing_parenthesis_error(hb_string_T rest, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
337STRICT_LOCALS_DUPLICATE_DECLARATION_ERROR_T* strict_locals_duplicate_declaration_error_init(position_T start, position_T end, hb_allocator_T* allocator);
338void append_strict_locals_duplicate_declaration_error(position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
339VOID_ELEMENT_CONTENT_ERROR_T* void_element_content_error_init(token_T* tag_name, hb_string_T helper_name, position_T start, position_T end, hb_allocator_T* allocator);
340void append_void_element_content_error(token_T* tag_name, hb_string_T helper_name, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
341DOT_NOTATION_CASING_ERROR_T* dot_notation_casing_error_init(token_T* segment, position_T start, position_T end, hb_allocator_T* allocator);
342void append_dot_notation_casing_error(token_T* segment, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T* errors);
343
344void error_init(ERROR_T* error, error_type_T type, position_T start, position_T end);
345
346size_t error_sizeof(void);
348
349hb_string_T error_message(ERROR_T* error);
350
351hb_string_T error_type_to_string(ERROR_T* error);
352hb_string_T error_human_type(ERROR_T* error);
353
354void error_free(ERROR_T* error, hb_allocator_T* allocator);
355
356#ifndef HERB_EXCLUDE_PRETTYPRINT
357 void error_pretty_print(ERROR_T* error, size_t indent, size_t relative_indent, hb_buffer_T* buffer);
358
360 const char* name, hb_array_T* array, size_t indent, size_t relative_indent, bool last_property,
361 hb_buffer_T* buffer
362 );
363#endif
364
365#endif
VOID_ELEMENT_CONTENT_ERROR_T * void_element_content_error_init(token_T *tag_name, hb_string_T helper_name, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:1177
void append_render_ambiguous_locals_error(hb_string_T partial, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:855
RENDER_NO_ARGUMENTS_ERROR_T * render_no_arguments_error_init(position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:901
void append_omitted_closing_tag_error(token_T *opening_tag, position_T insertion_point, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:590
void append_conditional_element_condition_mismatch_error(hb_string_T tag_name, hb_string_T open_condition, size_t open_line, size_t open_column, hb_string_T close_condition, size_t close_line, size_t close_column, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:516
void append_strict_locals_splat_argument_error(hb_string_T name, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:1126
void append_ruby_parse_error(hb_string_T error_message, hb_string_T diagnostic_id, hb_string_T level, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:342
void append_missing_erb_end_tag_error(hb_string_T keyword, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:404
error_type_T error_type(ERROR_T *error)
MISSING_ERB_END_TAG_ERROR_T * missing_erb_end_tag_error_init(hb_string_T keyword, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:377
void append_strict_locals_missing_parenthesis_error(hb_string_T rest, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:1157
void append_render_invalid_as_option_error(hb_string_T as_value, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:981
void append_invalid_comment_closing_tag_error(token_T *closing_tag, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:549
STRICT_LOCALS_DUPLICATE_DECLARATION_ERROR_T * strict_locals_duplicate_declaration_error_init(position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:1161
void append_unclosed_open_tag_error(token_T *tag_name, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:623
UNCLOSED_ERB_TAG_ERROR_T * unclosed_erb_tag_error_init(token_T *opening_tag, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:726
void append_void_element_closing_tag_error(token_T *tag_name, hb_string_T expected, hb_string_T found, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:271
TAG_NAMES_MISMATCH_ERROR_T * tag_names_mismatch_error_init(token_T *opening_tag, token_T *closing_tag, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:186
STRICT_LOCALS_POSITIONAL_ARGUMENT_ERROR_T * strict_locals_positional_argument_error_init(hb_string_T name, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:1032
void append_unclosed_element_error(token_T *opening_tag, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:304
void append_strict_locals_positional_argument_error(hb_string_T name, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:1064
void append_tag_names_mismatch_error(token_T *opening_tag, token_T *closing_tag, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:223
ERB_CONTROL_FLOW_SCOPE_ERROR_T * erb_control_flow_scope_error_init(hb_string_T keyword, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:346
UNCLOSED_QUOTE_ERROR_T * unclosed_quote_error_init(token_T *opening_quote, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:660
ERB_CASE_WITH_CONDITIONS_ERROR_T * erb_case_with_conditions_error_init(position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:424
UNCLOSED_CLOSE_TAG_ERROR_T * unclosed_close_tag_error_init(token_T *tag_name, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:627
void append_render_object_and_collection_error(position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:997
RENDER_LAYOUT_WITHOUT_BLOCK_ERROR_T * render_layout_without_block_error_init(hb_string_T layout, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:1001
NESTED_ERB_TAG_ERROR_T * nested_erb_tag_error_init(token_T *opening_tag, size_t nested_tag_line, size_t nested_tag_column, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:786
void append_unclosed_erb_tag_error(token_T *opening_tag, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:755
MISSING_CLOSING_TAG_ERROR_T * missing_closing_tag_error_init(token_T *opening_tag, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:148
RENDER_AMBIGUOUS_LOCALS_ERROR_T * render_ambiguous_locals_error_init(hb_string_T partial, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:823
void append_nested_erb_tag_error(token_T *opening_tag, size_t nested_tag_line, size_t nested_tag_column, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:819
ERB_MULTIPLE_BLOCKS_IN_TAG_ERROR_T * erb_multiple_blocks_in_tag_error_init(position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:408
hb_string_T error_message(ERROR_T *error)
STRICT_LOCALS_MISSING_PARENTHESIS_ERROR_T * strict_locals_missing_parenthesis_error_init(hb_string_T rest, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:1130
RENDER_MISSING_LOCALS_ERROR_T * render_missing_locals_error_init(hb_string_T partial, hb_string_T keywords, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:859
void append_void_element_content_error(token_T *tag_name, hb_string_T helper_name, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:1210
STRAY_ERB_CLOSING_TAG_ERROR_T * stray_erb_closing_tag_error_init(position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:759
struct ERROR_STRUCT ERROR_T
void error_pretty_print(ERROR_T *error, size_t indent, size_t relative_indent, hb_buffer_T *buffer)
Definition errors.c:2207
void append_dot_notation_casing_error(token_T *segment, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:1241
UNEXPECTED_ERROR_T * unexpected_error_init(hb_string_T description, hb_string_T expected, hb_string_T found, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:33
error_type_T
Definition errors.h:16
@ CONDITIONAL_ELEMENT_MULTIPLE_TAGS_ERROR
Definition errors.h:29
@ RENDER_MISSING_LOCALS_ERROR
Definition errors.h:41
@ RENDER_OBJECT_AND_COLLECTION_ERROR
Definition errors.h:45
@ RENDER_AMBIGUOUS_LOCALS_ERROR
Definition errors.h:40
@ UNEXPECTED_ERROR
Definition errors.h:17
@ STRICT_LOCALS_POSITIONAL_ARGUMENT_ERROR
Definition errors.h:47
@ UNCLOSED_OPEN_TAG_ERROR
Definition errors.h:33
@ RENDER_NO_ARGUMENTS_ERROR
Definition errors.h:42
@ STRICT_LOCALS_DUPLICATE_DECLARATION_ERROR
Definition errors.h:51
@ DOT_NOTATION_CASING_ERROR
Definition errors.h:53
@ RENDER_CONFLICTING_PARTIAL_ERROR
Definition errors.h:43
@ ERB_CASE_WITH_CONDITIONS_ERROR
Definition errors.h:28
@ STRICT_LOCALS_SPLAT_ARGUMENT_ERROR
Definition errors.h:49
@ UNEXPECTED_TOKEN_ERROR
Definition errors.h:18
@ STRICT_LOCALS_BLOCK_ARGUMENT_ERROR
Definition errors.h:48
@ VOID_ELEMENT_CLOSING_TAG_ERROR
Definition errors.h:22
@ MISSING_CLOSING_TAG_ERROR
Definition errors.h:20
@ VOID_ELEMENT_CONTENT_ERROR
Definition errors.h:52
@ MISSING_ATTRIBUTE_VALUE_ERROR
Definition errors.h:36
@ OMITTED_CLOSING_TAG_ERROR
Definition errors.h:32
@ NESTED_ERB_TAG_ERROR
Definition errors.h:39
@ RUBY_PARSE_ERROR
Definition errors.h:24
@ INVALID_COMMENT_CLOSING_TAG_ERROR
Definition errors.h:31
@ STRAY_ERB_CLOSING_TAG_ERROR
Definition errors.h:38
@ TAG_NAMES_MISMATCH_ERROR
Definition errors.h:21
@ CONDITIONAL_ELEMENT_CONDITION_MISMATCH_ERROR
Definition errors.h:30
@ UNCLOSED_ELEMENT_ERROR
Definition errors.h:23
@ MISSING_ERB_END_TAG_ERROR
Definition errors.h:26
@ ERB_CONTROL_FLOW_SCOPE_ERROR
Definition errors.h:25
@ STRICT_LOCALS_MISSING_PARENTHESIS_ERROR
Definition errors.h:50
@ RENDER_INVALID_AS_OPTION_ERROR
Definition errors.h:44
@ UNCLOSED_QUOTE_ERROR
Definition errors.h:35
@ UNCLOSED_ERB_TAG_ERROR
Definition errors.h:37
@ UNCLOSED_CLOSE_TAG_ERROR
Definition errors.h:34
@ MISSING_OPENING_TAG_ERROR
Definition errors.h:19
@ ERB_MULTIPLE_BLOCKS_IN_TAG_ERROR
Definition errors.h:27
@ RENDER_LAYOUT_WITHOUT_BLOCK_ERROR
Definition errors.h:46
void error_free(ERROR_T *error, hb_allocator_T *allocator)
Definition errors.c:1584
void append_erb_multiple_blocks_in_tag_error(position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:420
UNCLOSED_OPEN_TAG_ERROR_T * unclosed_open_tag_error_init(token_T *tag_name, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:594
VOID_ELEMENT_CLOSING_TAG_ERROR_T * void_element_closing_tag_error_init(token_T *tag_name, hb_string_T expected, hb_string_T found, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:227
void append_erb_control_flow_scope_error(hb_string_T keyword, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:373
STRICT_LOCALS_SPLAT_ARGUMENT_ERROR_T * strict_locals_splat_argument_error_init(hb_string_T name, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:1099
void append_render_missing_locals_error(hb_string_T partial, hb_string_T keywords, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:897
size_t error_sizeof(void)
Definition errors.c:21
void append_render_no_arguments_error(position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:913
CONDITIONAL_ELEMENT_CONDITION_MISMATCH_ERROR_T * conditional_element_condition_mismatch_error_init(hb_string_T tag_name, hb_string_T open_condition, size_t open_line, size_t open_column, hb_string_T close_condition, size_t close_line, size_t close_column, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:469
void append_unexpected_error(hb_string_T description, hb_string_T expected, hb_string_T found, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:72
MISSING_ATTRIBUTE_VALUE_ERROR_T * missing_attribute_value_error_init(hb_string_T attribute_name, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:693
void append_unexpected_token_error(token_type_T expected_type, token_T *found, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:111
hb_string_T error_human_type(ERROR_T *error)
Definition errors.c:1289
MISSING_OPENING_TAG_ERROR_T * missing_opening_tag_error_init(token_T *closing_tag, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:115
void error_init(ERROR_T *error, error_type_T type, position_T start, position_T end)
Definition errors.c:25
UNEXPECTED_TOKEN_ERROR_T * unexpected_token_error_init(token_type_T expected_type, token_T *found, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:76
void error_pretty_print_array(const char *name, hb_array_T *array, size_t indent, size_t relative_indent, bool last_property, hb_buffer_T *buffer)
Definition errors.c:1630
RENDER_CONFLICTING_PARTIAL_ERROR_T * render_conflicting_partial_error_init(hb_string_T positional_partial, hb_string_T keyword_partial, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:917
hb_string_T error_type_to_string(ERROR_T *error)
Definition errors.c:1245
void append_missing_opening_tag_error(token_T *closing_tag, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:144
STRICT_LOCALS_BLOCK_ARGUMENT_ERROR_T * strict_locals_block_argument_error_init(hb_string_T name, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:1068
void append_missing_attribute_value_error(hb_string_T attribute_name, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:722
void append_conditional_element_multiple_tags_error(size_t line, size_t column, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:465
DOT_NOTATION_CASING_ERROR_T * dot_notation_casing_error_init(token_T *segment, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:1214
void append_missing_closing_tag_error(token_T *opening_tag, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:182
void append_strict_locals_duplicate_declaration_error(position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:1173
void append_strict_locals_block_argument_error(hb_string_T name, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:1095
void append_render_layout_without_block_error(hb_string_T layout, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:1028
void append_unclosed_close_tag_error(token_T *tag_name, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:656
INVALID_COMMENT_CLOSING_TAG_ERROR_T * invalid_comment_closing_tag_error_init(token_T *closing_tag, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:520
void append_stray_erb_closing_tag_error(position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:782
RENDER_INVALID_AS_OPTION_ERROR_T * render_invalid_as_option_error_init(hb_string_T as_value, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:954
void append_unclosed_quote_error(token_T *opening_quote, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:689
RENDER_OBJECT_AND_COLLECTION_ERROR_T * render_object_and_collection_error_init(position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:985
CONDITIONAL_ELEMENT_MULTIPLE_TAGS_ERROR_T * conditional_element_multiple_tags_error_init(size_t line, size_t column, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:440
RUBY_PARSE_ERROR_T * ruby_parse_error_init(hb_string_T error_message, hb_string_T diagnostic_id, hb_string_T level, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:308
void append_erb_case_with_conditions_error(position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:436
void append_render_conflicting_partial_error(hb_string_T positional_partial, hb_string_T keyword_partial, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T *errors)
Definition errors.c:950
OMITTED_CLOSING_TAG_ERROR_T * omitted_closing_tag_error_init(token_T *opening_tag, position_T insertion_point, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:553
UNCLOSED_ELEMENT_ERROR_T * unclosed_element_error_init(token_T *opening_tag, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:275
ERROR_T base
Definition errors.h:138
size_t open_column
Definition errors.h:142
hb_string_T close_condition
Definition errors.h:143
size_t open_line
Definition errors.h:141
size_t close_line
Definition errors.h:144
size_t close_column
Definition errors.h:145
hb_string_T open_condition
Definition errors.h:140
hb_string_T tag_name
Definition errors.h:139
size_t column
Definition errors.h:134
ERROR_T base
Definition errors.h:132
size_t line
Definition errors.h:133
Definition errors.h:264
token_T * segment
Definition errors.h:266
ERROR_T base
Definition errors.h:265
Definition errors.h:126
ERROR_T base
Definition errors.h:127
Definition errors.h:111
hb_string_T keyword
Definition errors.h:113
ERROR_T base
Definition errors.h:112
Definition errors.h:121
ERROR_T base
Definition errors.h:122
Definition errors.h:56
error_type_T type
Definition errors.h:57
location_T location
Definition errors.h:58
hb_string_T message
Definition errors.h:59
token_T * closing_tag
Definition errors.h:150
ERROR_T base
Definition errors.h:149
Definition errors.h:174
hb_string_T attribute_name
Definition errors.h:176
ERROR_T base
Definition errors.h:175
Definition errors.h:81
ERROR_T base
Definition errors.h:82
token_T * opening_tag
Definition errors.h:83
Definition errors.h:116
hb_string_T keyword
Definition errors.h:118
ERROR_T base
Definition errors.h:117
Definition errors.h:76
token_T * closing_tag
Definition errors.h:78
ERROR_T base
Definition errors.h:77
Definition errors.h:189
size_t nested_tag_line
Definition errors.h:192
size_t nested_tag_column
Definition errors.h:193
ERROR_T base
Definition errors.h:190
token_T * opening_tag
Definition errors.h:191
Definition errors.h:153
ERROR_T base
Definition errors.h:154
position_T insertion_point
Definition errors.h:156
token_T * opening_tag
Definition errors.h:155
Definition errors.h:196
ERROR_T base
Definition errors.h:197
hb_string_T partial
Definition errors.h:198
Definition errors.h:212
hb_string_T keyword_partial
Definition errors.h:215
ERROR_T base
Definition errors.h:213
hb_string_T positional_partial
Definition errors.h:214
Definition errors.h:218
ERROR_T base
Definition errors.h:219
hb_string_T as_value
Definition errors.h:220
hb_string_T layout
Definition errors.h:230
ERROR_T base
Definition errors.h:229
Definition errors.h:201
hb_string_T partial
Definition errors.h:203
hb_string_T keywords
Definition errors.h:204
ERROR_T base
Definition errors.h:202
Definition errors.h:207
ERROR_T base
Definition errors.h:208
ERROR_T base
Definition errors.h:224
Definition errors.h:104
ERROR_T base
Definition errors.h:105
hb_string_T level
Definition errors.h:108
hb_string_T error_message
Definition errors.h:106
hb_string_T diagnostic_id
Definition errors.h:107
Definition errors.h:184
ERROR_T base
Definition errors.h:185
hb_string_T name
Definition errors.h:240
ERROR_T base
Definition errors.h:239
ERROR_T base
Definition errors.h:254
ERROR_T base
Definition errors.h:249
hb_string_T rest
Definition errors.h:250
hb_string_T name
Definition errors.h:235
ERROR_T base
Definition errors.h:234
hb_string_T name
Definition errors.h:245
ERROR_T base
Definition errors.h:244
Definition errors.h:86
token_T * opening_tag
Definition errors.h:88
token_T * closing_tag
Definition errors.h:89
ERROR_T base
Definition errors.h:87
Definition errors.h:164
token_T * tag_name
Definition errors.h:166
ERROR_T base
Definition errors.h:165
Definition errors.h:99
ERROR_T base
Definition errors.h:100
token_T * opening_tag
Definition errors.h:101
Definition errors.h:179
token_T * opening_tag
Definition errors.h:181
ERROR_T base
Definition errors.h:180
Definition errors.h:159
ERROR_T base
Definition errors.h:160
token_T * tag_name
Definition errors.h:161
Definition errors.h:169
token_T * opening_quote
Definition errors.h:171
ERROR_T base
Definition errors.h:170
Definition errors.h:63
hb_string_T expected
Definition errors.h:66
ERROR_T base
Definition errors.h:64
hb_string_T found
Definition errors.h:67
hb_string_T description
Definition errors.h:65
Definition errors.h:70
token_T * found
Definition errors.h:73
ERROR_T base
Definition errors.h:71
token_type_T expected_type
Definition errors.h:72
Definition errors.h:92
ERROR_T base
Definition errors.h:93
token_T * tag_name
Definition errors.h:94
hb_string_T expected
Definition errors.h:95
hb_string_T found
Definition errors.h:96
Definition errors.h:258
token_T * tag_name
Definition errors.h:260
ERROR_T base
Definition errors.h:259
hb_string_T helper_name
Definition errors.h:261