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 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
16struct PARSER_OPTIONS_STRUCT;
17
18typedef enum {
72
73typedef struct ERROR_STRUCT {
75 location_T location;
76 hb_string_T message;
78
79
80typedef struct {
82 hb_string_T description;
83 hb_string_T expected;
84 hb_string_T found;
86
87typedef struct {
89 token_type_T expected_type;
90 token_T* found;
92
97
102
108
109typedef struct {
111 token_T* tag_name;
112 hb_string_T expected;
113 hb_string_T found;
115
120
121typedef struct {
123 hb_string_T error_message;
124 hb_string_T diagnostic_id;
125 hb_string_T level;
127
128typedef struct {
130 hb_string_T keyword;
132
133typedef struct {
135 hb_string_T keyword;
137
138typedef struct {
140 /* no additional fields */
142
143typedef struct {
145 /* no additional fields */
147
148typedef struct {
150 /* no additional fields */
152
158
169
174
180
185
191
192typedef struct {
194 token_T* tag_name;
196
197typedef struct {
199 token_T* tag_name;
201
206
211
216
221
226
231
236
241
246
252
253typedef struct {
255 /* no additional fields */
257
264
265typedef struct {
267 hb_string_T partial;
269
270typedef struct {
272 hb_string_T partial;
273 hb_string_T keywords;
275
276typedef struct {
278 /* no additional fields */
280
286
291
292typedef struct {
294 /* no additional fields */
296
301
306
311
316
321
322typedef struct {
324 /* no additional fields */
326
331
332typedef struct {
334 hb_string_T found;
335 hb_string_T expected;
337
342
343typedef struct {
345 /* no additional fields */
347
348typedef struct {
350 token_T* tag_name;
351 hb_string_T helper_name;
352 hb_string_T content_type;
354
355typedef struct {
357 token_T* segment;
359
360typedef struct {
364
365UNEXPECTED_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);
366void 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, const struct PARSER_OPTIONS_STRUCT* options);
367UNEXPECTED_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);
368void 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, const struct PARSER_OPTIONS_STRUCT* options);
369MISSING_OPENING_TAG_ERROR_T* missing_opening_tag_error_init(token_T* closing_tag, position_T start, position_T end, hb_allocator_T* allocator);
370void append_missing_opening_tag_error(token_T* closing_tag, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
371MISSING_CLOSING_TAG_ERROR_T* missing_closing_tag_error_init(token_T* opening_tag, position_T start, position_T end, hb_allocator_T* allocator);
372void append_missing_closing_tag_error(token_T* opening_tag, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
373TAG_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);
374void 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, const struct PARSER_OPTIONS_STRUCT* options);
375VOID_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);
376void 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, const struct PARSER_OPTIONS_STRUCT* options);
377UNCLOSED_ELEMENT_ERROR_T* unclosed_element_error_init(token_T* opening_tag, position_T start, position_T end, hb_allocator_T* allocator);
378void append_unclosed_element_error(token_T* opening_tag, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
379RUBY_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);
380void 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, const struct PARSER_OPTIONS_STRUCT* options);
381ERB_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);
382void append_erb_control_flow_scope_error(hb_string_T keyword, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
383MISSING_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);
384void append_missing_erb_end_tag_error(hb_string_T keyword, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
385ERB_MULTIPLE_BLOCKS_IN_TAG_ERROR_T* erb_multiple_blocks_in_tag_error_init(position_T start, position_T end, hb_allocator_T* allocator);
386void append_erb_multiple_blocks_in_tag_error(position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
387ERB_CASE_WITH_CONDITIONS_ERROR_T* erb_case_with_conditions_error_init(position_T start, position_T end, hb_allocator_T* allocator);
388void append_erb_case_with_conditions_error(position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
389ERB_CASE_INLINE_PATTERN_MATCH_ERROR_T* erb_case_inline_pattern_match_error_init(position_T start, position_T end, hb_allocator_T* allocator);
390void append_erb_case_inline_pattern_match_error(position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
391CONDITIONAL_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);
392void 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, const struct PARSER_OPTIONS_STRUCT* options);
393CONDITIONAL_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);
394void 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, const struct PARSER_OPTIONS_STRUCT* options);
395UNCLOSED_COMMENT_ERROR_T* unclosed_comment_error_init(token_T* comment_start, position_T start, position_T end, hb_allocator_T* allocator);
396void append_unclosed_comment_error(token_T* comment_start, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
397NESTED_COMMENT_ERROR_T* nested_comment_error_init(token_T* comment_start, token_T* nested_start, position_T start, position_T end, hb_allocator_T* allocator);
398void append_nested_comment_error(token_T* comment_start, token_T* nested_start, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
399INVALID_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);
400void append_invalid_comment_closing_tag_error(token_T* closing_tag, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
401OMITTED_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);
402void 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, const struct PARSER_OPTIONS_STRUCT* options);
403UNCLOSED_OPEN_TAG_ERROR_T* unclosed_open_tag_error_init(token_T* tag_name, position_T start, position_T end, hb_allocator_T* allocator);
404void append_unclosed_open_tag_error(token_T* tag_name, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
405UNCLOSED_CLOSE_TAG_ERROR_T* unclosed_close_tag_error_init(token_T* tag_name, position_T start, position_T end, hb_allocator_T* allocator);
406void append_unclosed_close_tag_error(token_T* tag_name, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
407END_TAG_WITH_TRAILING_SOLIDUS_ERROR_T* end_tag_with_trailing_solidus_error_init(token_T* tag_name, position_T start, position_T end, hb_allocator_T* allocator);
408void append_end_tag_with_trailing_solidus_error(token_T* tag_name, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
409UNCLOSED_QUOTE_ERROR_T* unclosed_quote_error_init(token_T* opening_quote, position_T start, position_T end, hb_allocator_T* allocator);
410void append_unclosed_quote_error(token_T* opening_quote, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
411MISSING_ATTRIBUTE_VALUE_ERROR_T* missing_attribute_value_error_init(hb_string_T attribute_name, position_T start, position_T end, hb_allocator_T* allocator);
412void append_missing_attribute_value_error(hb_string_T attribute_name, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
413MISSING_WHITESPACE_BETWEEN_ATTRIBUTES_ERROR_T* missing_whitespace_between_attributes_error_init(token_T* found, position_T start, position_T end, hb_allocator_T* allocator);
414void append_missing_whitespace_between_attributes_error(token_T* found, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
415UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME_ERROR_T* unexpected_character_in_attribute_name_error_init(token_T* character, position_T start, position_T end, hb_allocator_T* allocator);
416void append_unexpected_character_in_attribute_name_error(token_T* character, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
417UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE_ERROR_T* unexpected_character_in_unquoted_attribute_value_error_init(token_T* character, position_T start, position_T end, hb_allocator_T* allocator);
418void append_unexpected_character_in_unquoted_attribute_value_error(token_T* character, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
419UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME_ERROR_T* unexpected_equals_sign_before_attribute_name_error_init(token_T* equals, position_T start, position_T end, hb_allocator_T* allocator);
420void append_unexpected_equals_sign_before_attribute_name_error(token_T* equals, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
421UNEXPECTED_SOLIDUS_IN_TAG_ERROR_T* unexpected_solidus_in_tag_error_init(token_T* solidus, position_T start, position_T end, hb_allocator_T* allocator);
422void append_unexpected_solidus_in_tag_error(token_T* solidus, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
423UNCLOSED_ERB_TAG_ERROR_T* unclosed_erb_tag_error_init(token_T* opening_tag, position_T start, position_T end, hb_allocator_T* allocator);
424void append_unclosed_erb_tag_error(token_T* opening_tag, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
425MALFORMED_ERB_CLOSING_TAG_ERROR_T* malformed_erb_closing_tag_error_init(token_T* opening_tag, token_T* closing_tag, position_T start, position_T end, hb_allocator_T* allocator);
426void append_malformed_erb_closing_tag_error(token_T* opening_tag, token_T* closing_tag, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
427STRAY_ERB_CLOSING_TAG_ERROR_T* stray_erb_closing_tag_error_init(position_T start, position_T end, hb_allocator_T* allocator);
428void append_stray_erb_closing_tag_error(position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
429NESTED_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);
430void 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, const struct PARSER_OPTIONS_STRUCT* options);
431RENDER_AMBIGUOUS_LOCALS_ERROR_T* render_ambiguous_locals_error_init(hb_string_T partial, position_T start, position_T end, hb_allocator_T* allocator);
432void append_render_ambiguous_locals_error(hb_string_T partial, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
433RENDER_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);
434void 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, const struct PARSER_OPTIONS_STRUCT* options);
435RENDER_NO_ARGUMENTS_ERROR_T* render_no_arguments_error_init(position_T start, position_T end, hb_allocator_T* allocator);
436void append_render_no_arguments_error(position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
437RENDER_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);
438void 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, const struct PARSER_OPTIONS_STRUCT* options);
439RENDER_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);
440void 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, const struct PARSER_OPTIONS_STRUCT* options);
441RENDER_OBJECT_AND_COLLECTION_ERROR_T* render_object_and_collection_error_init(position_T start, position_T end, hb_allocator_T* allocator);
442void append_render_object_and_collection_error(position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
443RENDER_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);
444void append_render_layout_without_block_error(hb_string_T layout, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
445STRICT_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);
446void append_strict_locals_positional_argument_error(hb_string_T name, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
447STRICT_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);
448void append_strict_locals_block_argument_error(hb_string_T name, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
449STRICT_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);
450void append_strict_locals_splat_argument_error(hb_string_T name, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
451STRICT_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);
452void append_strict_locals_missing_parenthesis_error(hb_string_T rest, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
453STRICT_LOCALS_DUPLICATE_DECLARATION_ERROR_T* strict_locals_duplicate_declaration_error_init(position_T start, position_T end, hb_allocator_T* allocator);
454void append_strict_locals_duplicate_declaration_error(position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
455HERB_STATE_MISSING_PARENTHESIS_ERROR_T* herb_state_missing_parenthesis_error_init(hb_string_T rest, position_T start, position_T end, hb_allocator_T* allocator);
456void append_herb_state_missing_parenthesis_error(hb_string_T rest, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
457HERB_STATE_NON_CANONICAL_DIRECTIVE_ERROR_T* herb_state_non_canonical_directive_error_init(hb_string_T found, hb_string_T expected, position_T start, position_T end, hb_allocator_T* allocator);
458void append_herb_state_non_canonical_directive_error(hb_string_T found, hb_string_T expected, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
459HERB_STATE_INVALID_PARAMETER_ERROR_T* herb_state_invalid_parameter_error_init(hb_string_T parameter, position_T start, position_T end, hb_allocator_T* allocator);
460void append_herb_state_invalid_parameter_error(hb_string_T parameter, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
461HERB_STATE_DUPLICATE_DECLARATION_ERROR_T* herb_state_duplicate_declaration_error_init(position_T start, position_T end, hb_allocator_T* allocator);
462void append_herb_state_duplicate_declaration_error(position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
463VOID_ELEMENT_CONTENT_ERROR_T* void_element_content_error_init(token_T* tag_name, hb_string_T helper_name, hb_string_T content_type, position_T start, position_T end, hb_allocator_T* allocator);
464void append_void_element_content_error(token_T* tag_name, hb_string_T helper_name, hb_string_T content_type, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
465DOT_NOTATION_CASING_ERROR_T* dot_notation_casing_error_init(token_T* segment, position_T start, position_T end, hb_allocator_T* allocator);
466void append_dot_notation_casing_error(token_T* segment, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
467TIMEOUT_ERROR_T* timeout_error_init(size_t timeout_ms, position_T start, position_T end, hb_allocator_T* allocator);
468void append_timeout_error(size_t timeout_ms, position_T start, position_T end, hb_allocator_T* allocator, hb_array_T** errors, const struct PARSER_OPTIONS_STRUCT* options);
469
470void error_init(ERROR_T* error, error_type_T type, position_T start, position_T end);
471
472size_t error_sizeof(void);
474
475hb_string_T error_message(ERROR_T* error);
476
477hb_string_T error_type_to_string(ERROR_T* error);
478hb_string_T error_human_type(ERROR_T* error);
479
480void error_free(ERROR_T* error, hb_allocator_T* allocator);
481
482#ifndef HERB_EXCLUDE_PRETTYPRINT
483 void error_pretty_print(ERROR_T* error, size_t indent, size_t relative_indent, hb_buffer_T* buffer);
484
486 const char* name, hb_array_T* array, size_t indent, size_t relative_indent, bool last_property,
487 hb_buffer_T* buffer
488 );
489#endif
490
491#endif
RENDER_NO_ARGUMENTS_ERROR_T * render_no_arguments_error_init(position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:1346
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1529
UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME_ERROR_T * unexpected_equals_sign_before_attribute_name_error_init(token_T *equals, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:1042
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:414
void append_strict_locals_duplicate_declaration_error(position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1654
void append_missing_closing_tag_error(token_T *opening_tag, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:195
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:1642
HERB_STATE_INVALID_PARAMETER_ERROR_T * herb_state_invalid_parameter_error_init(hb_string_T parameter, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:1738
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1599
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:1106
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:203
UNCLOSED_COMMENT_ERROR_T * unclosed_comment_error_init(token_T *comment_start, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:597
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:1497
void append_unexpected_solidus_in_tag_error(token_T *solidus, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1098
HERB_STATE_NON_CANONICAL_DIRECTIVE_ERROR_T * herb_state_non_canonical_directive_error_init(hb_string_T found, hb_string_T expected, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:1697
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:116
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1399
void append_missing_whitespace_between_attributes_error(token_T *found, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:960
UNEXPECTED_SOLIDUS_IN_TAG_ERROR_T * unexpected_solidus_in_tag_error_init(token_T *solidus, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:1074
void append_erb_multiple_blocks_in_tag_error(position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:461
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:379
void append_unclosed_close_tag_error(token_T *tag_name, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:812
void append_render_ambiguous_locals_error(hb_string_T partial, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1292
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:923
void append_end_tag_with_trailing_solidus_error(token_T *tag_name, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:849
void append_malformed_erb_closing_tag_error(token_T *opening_tag, token_T *closing_tag, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1180
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:857
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1564
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:469
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:783
void append_stray_erb_closing_tag_error(position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1211
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:1462
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:1219
void append_void_element_content_error(token_T *tag_name, hb_string_T helper_name, hb_string_T content_type, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1832
void append_dot_notation_casing_error(token_T *segment, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1867
void append_render_no_arguments_error(position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1358
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:161
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1252
UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE_ERROR_T * unexpected_character_in_unquoted_attribute_value_error_init(token_T *character, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:1005
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:371
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:1260
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:449
void append_unclosed_quote_error(token_T *opening_quote, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:886
void append_herb_state_non_canonical_directive_error(hb_string_T found, hb_string_T expected, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1730
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:1607
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:1300
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:73
void append_unexpected_character_in_unquoted_attribute_value_error(token_T *character, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1034
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:1188
void append_erb_case_with_conditions_error(position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:481
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:3219
ERB_CASE_INLINE_PATTERN_MATCH_ERROR_T * erb_case_inline_pattern_match_error_init(position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:489
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:34
HERB_STATE_MISSING_PARENTHESIS_ERROR_T * herb_state_missing_parenthesis_error_init(hb_string_T rest, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:1662
error_type_T
Definition errors.h:18
@ CONDITIONAL_ELEMENT_MULTIPLE_TAGS_ERROR
Definition errors.h:32
@ UNEXPECTED_SOLIDUS_IN_TAG_ERROR
Definition errors.h:47
@ NESTED_COMMENT_ERROR
Definition errors.h:35
@ RENDER_MISSING_LOCALS_ERROR
Definition errors.h:53
@ HERB_STATE_INVALID_PARAMETER_ERROR
Definition errors.h:66
@ RENDER_OBJECT_AND_COLLECTION_ERROR
Definition errors.h:57
@ RENDER_AMBIGUOUS_LOCALS_ERROR
Definition errors.h:52
@ UNEXPECTED_ERROR
Definition errors.h:19
@ STRICT_LOCALS_POSITIONAL_ARGUMENT_ERROR
Definition errors.h:59
@ UNCLOSED_OPEN_TAG_ERROR
Definition errors.h:38
@ RENDER_NO_ARGUMENTS_ERROR
Definition errors.h:54
@ UNCLOSED_COMMENT_ERROR
Definition errors.h:34
@ STRICT_LOCALS_DUPLICATE_DECLARATION_ERROR
Definition errors.h:63
@ DOT_NOTATION_CASING_ERROR
Definition errors.h:69
@ RENDER_CONFLICTING_PARTIAL_ERROR
Definition errors.h:55
@ ERB_CASE_WITH_CONDITIONS_ERROR
Definition errors.h:30
@ STRICT_LOCALS_SPLAT_ARGUMENT_ERROR
Definition errors.h:61
@ ERB_CASE_INLINE_PATTERN_MATCH_ERROR
Definition errors.h:31
@ END_TAG_WITH_TRAILING_SOLIDUS_ERROR
Definition errors.h:40
@ UNEXPECTED_TOKEN_ERROR
Definition errors.h:20
@ STRICT_LOCALS_BLOCK_ARGUMENT_ERROR
Definition errors.h:60
@ VOID_ELEMENT_CLOSING_TAG_ERROR
Definition errors.h:24
@ MISSING_CLOSING_TAG_ERROR
Definition errors.h:22
@ TIMEOUT_ERROR
Definition errors.h:70
@ VOID_ELEMENT_CONTENT_ERROR
Definition errors.h:68
@ MISSING_ATTRIBUTE_VALUE_ERROR
Definition errors.h:42
@ HERB_STATE_DUPLICATE_DECLARATION_ERROR
Definition errors.h:67
@ OMITTED_CLOSING_TAG_ERROR
Definition errors.h:37
@ NESTED_ERB_TAG_ERROR
Definition errors.h:51
@ RUBY_PARSE_ERROR
Definition errors.h:26
@ INVALID_COMMENT_CLOSING_TAG_ERROR
Definition errors.h:36
@ STRAY_ERB_CLOSING_TAG_ERROR
Definition errors.h:50
@ UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME_ERROR
Definition errors.h:44
@ UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE_ERROR
Definition errors.h:45
@ TAG_NAMES_MISMATCH_ERROR
Definition errors.h:23
@ CONDITIONAL_ELEMENT_CONDITION_MISMATCH_ERROR
Definition errors.h:33
@ UNCLOSED_ELEMENT_ERROR
Definition errors.h:25
@ MISSING_ERB_END_TAG_ERROR
Definition errors.h:28
@ ERB_CONTROL_FLOW_SCOPE_ERROR
Definition errors.h:27
@ STRICT_LOCALS_MISSING_PARENTHESIS_ERROR
Definition errors.h:62
@ RENDER_INVALID_AS_OPTION_ERROR
Definition errors.h:56
@ UNCLOSED_QUOTE_ERROR
Definition errors.h:41
@ MALFORMED_ERB_CLOSING_TAG_ERROR
Definition errors.h:49
@ UNCLOSED_ERB_TAG_ERROR
Definition errors.h:48
@ HERB_STATE_NON_CANONICAL_DIRECTIVE_ERROR
Definition errors.h:65
@ MISSING_WHITESPACE_BETWEEN_ATTRIBUTES_ERROR
Definition errors.h:43
@ UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME_ERROR
Definition errors.h:46
@ UNCLOSED_CLOSE_TAG_ERROR
Definition errors.h:39
@ MISSING_OPENING_TAG_ERROR
Definition errors.h:21
@ ERB_MULTIPLE_BLOCKS_IN_TAG_ERROR
Definition errors.h:29
@ RENDER_LAYOUT_WITHOUT_BLOCK_ERROR
Definition errors.h:58
@ HERB_STATE_MISSING_PARENTHESIS_ERROR
Definition errors.h:64
void error_free(ERROR_T *error, hb_allocator_T *allocator)
Definition errors.c:2369
void append_unexpected_equals_sign_before_attribute_name_error(token_T *equals, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1066
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:746
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:248
void append_nested_comment_error(token_T *comment_start, token_T *nested_start, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:656
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:1572
void append_herb_state_missing_parenthesis_error(hb_string_T rest, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1689
END_TAG_WITH_TRAILING_SOLIDUS_ERROR_T * end_tag_with_trailing_solidus_error_init(token_T *tag_name, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:820
void append_timeout_error(size_t timeout_ms, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1898
size_t error_sizeof(void)
Definition errors.c:22
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:292
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:542
void append_herb_state_duplicate_declaration_error(position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1785
NESTED_COMMENT_ERROR_T * nested_comment_error_init(token_T *comment_start, token_T *nested_start, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:629
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:894
void append_unclosed_comment_error(token_T *comment_start, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:621
HERB_STATE_DUPLICATE_DECLARATION_ERROR_T * herb_state_duplicate_declaration_error_init(position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:1773
hb_string_T error_human_type(ERROR_T *error)
Definition errors.c:1965
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:124
void error_init(ERROR_T *error, error_type_T type, position_T start, position_T end)
Definition errors.c:26
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:81
MALFORMED_ERB_CLOSING_TAG_ERROR_T * malformed_erb_closing_tag_error_init(token_T *opening_tag, token_T *closing_tag, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:1143
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:2430
void append_unclosed_element_error(token_T *opening_tag, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:329
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:1366
hb_string_T error_type_to_string(ERROR_T *error)
Definition errors.c:1906
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:406
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1634
void append_unclosed_erb_tag_error(token_T *opening_tag, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1135
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:1537
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1338
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:738
void append_render_object_and_collection_error(position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1454
void append_missing_opening_tag_error(token_T *closing_tag, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:153
MISSING_WHITESPACE_BETWEEN_ATTRIBUTES_ERROR_T * missing_whitespace_between_attributes_error_init(token_T *found, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:931
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:1840
void append_erb_case_inline_pattern_match_error(position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:501
void append_unexpected_character_in_attribute_name_error(token_T *character, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:997
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:664
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:693
TIMEOUT_ERROR_T * timeout_error_init(size_t timeout_ms, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:1875
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:1407
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:1442
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:509
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:337
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:534
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:441
void append_unclosed_open_tag_error(token_T *tag_name, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:775
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1489
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:701
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:589
UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME_ERROR_T * unexpected_character_in_attribute_name_error_init(token_T *character, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:968
VOID_ELEMENT_CONTENT_ERROR_T * void_element_content_error_init(token_T *tag_name, hb_string_T helper_name, hb_string_T content_type, position_T start, position_T end, hb_allocator_T *allocator)
Definition errors.c:1793
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:240
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:300
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, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1434
void append_herb_state_invalid_parameter_error(hb_string_T parameter, position_T start, position_T end, hb_allocator_T *allocator, hb_array_T **errors, const struct PARSER_OPTIONS_STRUCT *options)
Definition errors.c:1765
ERROR_T base
Definition errors.h:160
size_t open_column
Definition errors.h:164
hb_string_T close_condition
Definition errors.h:165
size_t open_line
Definition errors.h:163
size_t close_line
Definition errors.h:166
size_t close_column
Definition errors.h:167
hb_string_T open_condition
Definition errors.h:162
hb_string_T tag_name
Definition errors.h:161
size_t column
Definition errors.h:156
ERROR_T base
Definition errors.h:154
size_t line
Definition errors.h:155
Definition errors.h:355
token_T * segment
Definition errors.h:357
ERROR_T base
Definition errors.h:356
token_T * tag_name
Definition errors.h:204
ERROR_T base
Definition errors.h:203
ERROR_T base
Definition errors.h:149
Definition errors.h:143
ERROR_T base
Definition errors.h:144
Definition errors.h:128
hb_string_T keyword
Definition errors.h:130
ERROR_T base
Definition errors.h:129
Definition errors.h:138
ERROR_T base
Definition errors.h:139
Definition errors.h:73
error_type_T type
Definition errors.h:74
location_T location
Definition errors.h:75
hb_string_T message
Definition errors.h:76
ERROR_T base
Definition errors.h:344
ERROR_T base
Definition errors.h:339
hb_string_T parameter
Definition errors.h:340
hb_string_T rest
Definition errors.h:329
ERROR_T base
Definition errors.h:328
hb_string_T found
Definition errors.h:334
hb_string_T expected
Definition errors.h:335
ERROR_T base
Definition errors.h:333
token_T * closing_tag
Definition errors.h:183
ERROR_T base
Definition errors.h:182
Definition errors.h:247
ERROR_T base
Definition errors.h:248
token_T * opening_tag
Definition errors.h:249
token_T * closing_tag
Definition errors.h:250
Definition errors.h:212
hb_string_T attribute_name
Definition errors.h:214
ERROR_T base
Definition errors.h:213
Definition errors.h:98
ERROR_T base
Definition errors.h:99
token_T * opening_tag
Definition errors.h:100
Definition errors.h:133
hb_string_T keyword
Definition errors.h:135
ERROR_T base
Definition errors.h:134
Definition errors.h:93
token_T * closing_tag
Definition errors.h:95
ERROR_T base
Definition errors.h:94
token_T * found
Definition errors.h:219
ERROR_T base
Definition errors.h:218
Definition errors.h:175
ERROR_T base
Definition errors.h:176
token_T * nested_start
Definition errors.h:178
token_T * comment_start
Definition errors.h:177
Definition errors.h:258
size_t nested_tag_line
Definition errors.h:261
size_t nested_tag_column
Definition errors.h:262
ERROR_T base
Definition errors.h:259
token_T * opening_tag
Definition errors.h:260
Definition errors.h:186
ERROR_T base
Definition errors.h:187
position_T insertion_point
Definition errors.h:189
token_T * opening_tag
Definition errors.h:188
Definition errors.h:265
ERROR_T base
Definition errors.h:266
hb_string_T partial
Definition errors.h:267
Definition errors.h:281
hb_string_T keyword_partial
Definition errors.h:284
ERROR_T base
Definition errors.h:282
hb_string_T positional_partial
Definition errors.h:283
Definition errors.h:287
ERROR_T base
Definition errors.h:288
hb_string_T as_value
Definition errors.h:289
hb_string_T layout
Definition errors.h:299
ERROR_T base
Definition errors.h:298
Definition errors.h:270
hb_string_T partial
Definition errors.h:272
hb_string_T keywords
Definition errors.h:273
ERROR_T base
Definition errors.h:271
Definition errors.h:276
ERROR_T base
Definition errors.h:277
ERROR_T base
Definition errors.h:293
Definition errors.h:121
ERROR_T base
Definition errors.h:122
hb_string_T level
Definition errors.h:125
hb_string_T error_message
Definition errors.h:123
hb_string_T diagnostic_id
Definition errors.h:124
Definition errors.h:253
ERROR_T base
Definition errors.h:254
hb_string_T name
Definition errors.h:309
ERROR_T base
Definition errors.h:308
ERROR_T base
Definition errors.h:323
ERROR_T base
Definition errors.h:318
hb_string_T rest
Definition errors.h:319
hb_string_T name
Definition errors.h:304
ERROR_T base
Definition errors.h:303
hb_string_T name
Definition errors.h:314
ERROR_T base
Definition errors.h:313
Definition errors.h:103
token_T * opening_tag
Definition errors.h:105
token_T * closing_tag
Definition errors.h:106
ERROR_T base
Definition errors.h:104
Definition errors.h:360
ERROR_T base
Definition errors.h:361
size_t timeout_ms
Definition errors.h:362
Definition errors.h:197
token_T * tag_name
Definition errors.h:199
ERROR_T base
Definition errors.h:198
Definition errors.h:170
ERROR_T base
Definition errors.h:171
token_T * comment_start
Definition errors.h:172
Definition errors.h:116
ERROR_T base
Definition errors.h:117
token_T * opening_tag
Definition errors.h:118
Definition errors.h:242
token_T * opening_tag
Definition errors.h:244
ERROR_T base
Definition errors.h:243
Definition errors.h:192
ERROR_T base
Definition errors.h:193
token_T * tag_name
Definition errors.h:194
Definition errors.h:207
token_T * opening_quote
Definition errors.h:209
ERROR_T base
Definition errors.h:208
token_T * character
Definition errors.h:224
ERROR_T base
Definition errors.h:223
Definition errors.h:80
hb_string_T expected
Definition errors.h:83
ERROR_T base
Definition errors.h:81
hb_string_T found
Definition errors.h:84
hb_string_T description
Definition errors.h:82
Definition errors.h:237
token_T * solidus
Definition errors.h:239
ERROR_T base
Definition errors.h:238
Definition errors.h:87
token_T * found
Definition errors.h:90
ERROR_T base
Definition errors.h:88
token_type_T expected_type
Definition errors.h:89
Definition errors.h:109
ERROR_T base
Definition errors.h:110
token_T * tag_name
Definition errors.h:111
hb_string_T expected
Definition errors.h:112
hb_string_T found
Definition errors.h:113
Definition errors.h:348
hb_string_T content_type
Definition errors.h:352
token_T * tag_name
Definition errors.h:350
ERROR_T base
Definition errors.h:349
hb_string_T helper_name
Definition errors.h:351