Herb C Reference
Loading...
Searching...
No Matches
errors.c File Reference
#include "include/errors.h"
#include "include/location.h"
#include "include/position.h"
#include "include/pretty_print.h"
#include "include/token.h"
#include "include/util.h"
#include "include/util/hb_array.h"
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>

Macros

#define ERROR_MESSAGES_TRUNCATED_LENGTH   128
 

Functions

size_t error_sizeof (void)
 
void error_init (ERROR_T *error, const error_type_T type, position_T start, position_T end)
 
UNEXPECTED_ERROR_Tunexpected_error_init (const char *description, const char *expected, const char *found, position_T start, position_T end)
 
void append_unexpected_error (const char *description, const char *expected, const char *found, position_T start, position_T end, hb_array_T *errors)
 
UNEXPECTED_TOKEN_ERROR_Tunexpected_token_error_init (token_type_T expected_type, token_T *found, position_T start, position_T end)
 
void append_unexpected_token_error (token_type_T expected_type, token_T *found, position_T start, position_T end, hb_array_T *errors)
 
MISSING_OPENING_TAG_ERROR_Tmissing_opening_tag_error_init (token_T *closing_tag, position_T start, position_T end)
 
void append_missing_opening_tag_error (token_T *closing_tag, position_T start, position_T end, hb_array_T *errors)
 
MISSING_CLOSING_TAG_ERROR_Tmissing_closing_tag_error_init (token_T *opening_tag, position_T start, position_T end)
 
void append_missing_closing_tag_error (token_T *opening_tag, position_T start, position_T end, hb_array_T *errors)
 
TAG_NAMES_MISMATCH_ERROR_Ttag_names_mismatch_error_init (token_T *opening_tag, token_T *closing_tag, position_T start, position_T end)
 
void append_tag_names_mismatch_error (token_T *opening_tag, token_T *closing_tag, position_T start, position_T end, hb_array_T *errors)
 
VOID_ELEMENT_CLOSING_TAG_ERROR_Tvoid_element_closing_tag_error_init (token_T *tag_name, const char *expected, const char *found, position_T start, position_T end)
 
void append_void_element_closing_tag_error (token_T *tag_name, const char *expected, const char *found, position_T start, position_T end, hb_array_T *errors)
 
UNCLOSED_ELEMENT_ERROR_Tunclosed_element_error_init (token_T *opening_tag, position_T start, position_T end)
 
void append_unclosed_element_error (token_T *opening_tag, position_T start, position_T end, hb_array_T *errors)
 
RUBY_PARSE_ERROR_Truby_parse_error_init (const char *error_message, const char *diagnostic_id, const char *level, position_T start, position_T end)
 
void append_ruby_parse_error (const char *error_message, const char *diagnostic_id, const char *level, position_T start, position_T end, hb_array_T *errors)
 
ERB_CONTROL_FLOW_SCOPE_ERROR_Terb_control_flow_scope_error_init (const char *keyword, position_T start, position_T end)
 
void append_erb_control_flow_scope_error (const char *keyword, position_T start, position_T end, hb_array_T *errors)
 
MISSINGERB_END_TAG_ERROR_Tmissingerb_end_tag_error_init (const char *keyword, position_T start, position_T end)
 
void append_missingerb_end_tag_error (const char *keyword, position_T start, position_T end, hb_array_T *errors)
 
ERB_MULTIPLE_BLOCKS_IN_TAG_ERROR_Terb_multiple_blocks_in_tag_error_init (position_T start, position_T end)
 
void append_erb_multiple_blocks_in_tag_error (position_T start, position_T end, hb_array_T *errors)
 
ERB_CASE_WITH_CONDITIONS_ERROR_Terb_case_with_conditions_error_init (position_T start, position_T end)
 
void append_erb_case_with_conditions_error (position_T start, position_T end, hb_array_T *errors)
 
CONDITIONAL_ELEMENT_MULTIPLE_TAGS_ERROR_Tconditional_element_multiple_tags_error_init (size_t line, size_t column, position_T start, position_T end)
 
void append_conditional_element_multiple_tags_error (size_t line, size_t column, position_T start, position_T end, hb_array_T *errors)
 
CONDITIONAL_ELEMENT_CONDITION_MISMATCH_ERROR_Tconditional_element_condition_mismatch_error_init (const char *tag_name, const char *open_condition, size_t open_line, size_t open_column, const char *close_condition, size_t close_line, size_t close_column, position_T start, position_T end)
 
void append_conditional_element_condition_mismatch_error (const char *tag_name, const char *open_condition, size_t open_line, size_t open_column, const char *close_condition, size_t close_line, size_t close_column, position_T start, position_T end, hb_array_T *errors)
 
INVALID_COMMENT_CLOSING_TAG_ERROR_Tinvalid_comment_closing_tag_error_init (token_T *closing_tag, position_T start, position_T end)
 
void append_invalid_comment_closing_tag_error (token_T *closing_tag, position_T start, position_T end, hb_array_T *errors)
 
OMITTED_CLOSING_TAG_ERROR_Tomitted_closing_tag_error_init (token_T *opening_tag, position_T insertion_point, position_T start, position_T end)
 
void append_omitted_closing_tag_error (token_T *opening_tag, position_T insertion_point, position_T start, position_T end, hb_array_T *errors)
 
UNCLOSED_OPEN_TAG_ERROR_Tunclosed_open_tag_error_init (token_T *tag_name, position_T start, position_T end)
 
void append_unclosed_open_tag_error (token_T *tag_name, position_T start, position_T end, hb_array_T *errors)
 
UNCLOSED_CLOSE_TAG_ERROR_Tunclosed_close_tag_error_init (token_T *tag_name, position_T start, position_T end)
 
void append_unclosed_close_tag_error (token_T *tag_name, position_T start, position_T end, hb_array_T *errors)
 
UNCLOSED_QUOTE_ERROR_Tunclosed_quote_error_init (token_T *opening_quote, position_T start, position_T end)
 
void append_unclosed_quote_error (token_T *opening_quote, position_T start, position_T end, hb_array_T *errors)
 
MISSING_ATTRIBUTE_VALUE_ERROR_Tmissing_attribute_value_error_init (const char *attribute_name, position_T start, position_T end)
 
void append_missing_attribute_value_error (const char *attribute_name, position_T start, position_T end, hb_array_T *errors)
 
UNCLOSEDERB_TAG_ERROR_Tunclosederb_tag_error_init (token_T *opening_tag, position_T start, position_T end)
 
void append_unclosederb_tag_error (token_T *opening_tag, position_T start, position_T end, hb_array_T *errors)
 
NESTEDERB_TAG_ERROR_Tnestederb_tag_error_init (token_T *opening_tag, size_t nested_tag_line, size_t nested_tag_column, position_T start, position_T end)
 
void append_nestederb_tag_error (token_T *opening_tag, size_t nested_tag_line, size_t nested_tag_column, position_T start, position_T end, hb_array_T *errors)
 
const char * error_type_to_string (ERROR_T *error)
 
const char * error_human_type (ERROR_T *error)
 
void error_free_base_error (ERROR_T *error)
 
static void error_free_unexpected_error (UNEXPECTED_ERROR_T *unexpected_error)
 
static void error_free_unexpected_token_error (UNEXPECTED_TOKEN_ERROR_T *unexpected_token_error)
 
static void error_free_missing_opening_tag_error (MISSING_OPENING_TAG_ERROR_T *missing_opening_tag_error)
 
static void error_free_missing_closing_tag_error (MISSING_CLOSING_TAG_ERROR_T *missing_closing_tag_error)
 
static void error_free_tag_names_mismatch_error (TAG_NAMES_MISMATCH_ERROR_T *tag_names_mismatch_error)
 
static void error_free_void_element_closing_tag_error (VOID_ELEMENT_CLOSING_TAG_ERROR_T *void_element_closing_tag_error)
 
static void error_free_unclosed_element_error (UNCLOSED_ELEMENT_ERROR_T *unclosed_element_error)
 
static void error_free_ruby_parse_error (RUBY_PARSE_ERROR_T *ruby_parse_error)
 
static void error_free_erb_control_flow_scope_error (ERB_CONTROL_FLOW_SCOPE_ERROR_T *erb_control_flow_scope_error)
 
static void error_free_missingerb_end_tag_error (MISSINGERB_END_TAG_ERROR_T *missingerb_end_tag_error)
 
static void error_free_erb_multiple_blocks_in_tag_error (ERB_MULTIPLE_BLOCKS_IN_TAG_ERROR_T *erb_multiple_blocks_in_tag_error)
 
static void error_free_erb_case_with_conditions_error (ERB_CASE_WITH_CONDITIONS_ERROR_T *erb_case_with_conditions_error)
 
static void error_free_conditional_element_multiple_tags_error (CONDITIONAL_ELEMENT_MULTIPLE_TAGS_ERROR_T *conditional_element_multiple_tags_error)
 
static void error_free_conditional_element_condition_mismatch_error (CONDITIONAL_ELEMENT_CONDITION_MISMATCH_ERROR_T *conditional_element_condition_mismatch_error)
 
static void error_free_invalid_comment_closing_tag_error (INVALID_COMMENT_CLOSING_TAG_ERROR_T *invalid_comment_closing_tag_error)
 
static void error_free_omitted_closing_tag_error (OMITTED_CLOSING_TAG_ERROR_T *omitted_closing_tag_error)
 
static void error_free_unclosed_open_tag_error (UNCLOSED_OPEN_TAG_ERROR_T *unclosed_open_tag_error)
 
static void error_free_unclosed_close_tag_error (UNCLOSED_CLOSE_TAG_ERROR_T *unclosed_close_tag_error)
 
static void error_free_unclosed_quote_error (UNCLOSED_QUOTE_ERROR_T *unclosed_quote_error)
 
static void error_free_missing_attribute_value_error (MISSING_ATTRIBUTE_VALUE_ERROR_T *missing_attribute_value_error)
 
static void error_free_unclosederb_tag_error (UNCLOSEDERB_TAG_ERROR_T *unclosederb_tag_error)
 
static void error_free_nestederb_tag_error (NESTEDERB_TAG_ERROR_T *nestederb_tag_error)
 
void error_free (ERROR_T *error)
 
void error_pretty_print_array (const char *name, hb_array_T *array, const size_t indent, const size_t relative_indent, const bool last_property, hb_buffer_T *buffer)
 
static void error_pretty_print_unexpected_error (UNEXPECTED_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_unexpected_token_error (UNEXPECTED_TOKEN_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_missing_opening_tag_error (MISSING_OPENING_TAG_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_missing_closing_tag_error (MISSING_CLOSING_TAG_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_tag_names_mismatch_error (TAG_NAMES_MISMATCH_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_void_element_closing_tag_error (VOID_ELEMENT_CLOSING_TAG_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_unclosed_element_error (UNCLOSED_ELEMENT_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_ruby_parse_error (RUBY_PARSE_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_erb_control_flow_scope_error (ERB_CONTROL_FLOW_SCOPE_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_missingerb_end_tag_error (MISSINGERB_END_TAG_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_erb_multiple_blocks_in_tag_error (ERB_MULTIPLE_BLOCKS_IN_TAG_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_erb_case_with_conditions_error (ERB_CASE_WITH_CONDITIONS_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_conditional_element_multiple_tags_error (CONDITIONAL_ELEMENT_MULTIPLE_TAGS_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_conditional_element_condition_mismatch_error (CONDITIONAL_ELEMENT_CONDITION_MISMATCH_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_invalid_comment_closing_tag_error (INVALID_COMMENT_CLOSING_TAG_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_omitted_closing_tag_error (OMITTED_CLOSING_TAG_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_unclosed_open_tag_error (UNCLOSED_OPEN_TAG_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_unclosed_close_tag_error (UNCLOSED_CLOSE_TAG_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_unclosed_quote_error (UNCLOSED_QUOTE_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_missing_attribute_value_error (MISSING_ATTRIBUTE_VALUE_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_unclosederb_tag_error (UNCLOSEDERB_TAG_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
static void error_pretty_print_nestederb_tag_error (NESTEDERB_TAG_ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 
void error_pretty_print (ERROR_T *error, const size_t indent, const size_t relative_indent, hb_buffer_T *buffer)
 

Macro Definition Documentation

◆ ERROR_MESSAGES_TRUNCATED_LENGTH

#define ERROR_MESSAGES_TRUNCATED_LENGTH   128

Function Documentation

◆ error_sizeof()

size_t error_sizeof ( void  )

◆ error_init()

void error_init ( ERROR_T error,
const error_type_T  type,
position_T  start,
position_T  end 
)

◆ unexpected_error_init()

UNEXPECTED_ERROR_T * unexpected_error_init ( const char *  description,
const char *  expected,
const char *  found,
position_T  start,
position_T  end 
)

◆ append_unexpected_error()

void append_unexpected_error ( const char *  description,
const char *  expected,
const char *  found,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ unexpected_token_error_init()

UNEXPECTED_TOKEN_ERROR_T * unexpected_token_error_init ( token_type_T  expected_type,
token_T found,
position_T  start,
position_T  end 
)

◆ append_unexpected_token_error()

void append_unexpected_token_error ( token_type_T  expected_type,
token_T found,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ missing_opening_tag_error_init()

MISSING_OPENING_TAG_ERROR_T * missing_opening_tag_error_init ( token_T closing_tag,
position_T  start,
position_T  end 
)

◆ append_missing_opening_tag_error()

void append_missing_opening_tag_error ( token_T closing_tag,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ missing_closing_tag_error_init()

MISSING_CLOSING_TAG_ERROR_T * missing_closing_tag_error_init ( token_T opening_tag,
position_T  start,
position_T  end 
)

◆ append_missing_closing_tag_error()

void append_missing_closing_tag_error ( token_T opening_tag,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ tag_names_mismatch_error_init()

TAG_NAMES_MISMATCH_ERROR_T * tag_names_mismatch_error_init ( token_T opening_tag,
token_T closing_tag,
position_T  start,
position_T  end 
)

◆ append_tag_names_mismatch_error()

void append_tag_names_mismatch_error ( token_T opening_tag,
token_T closing_tag,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ void_element_closing_tag_error_init()

VOID_ELEMENT_CLOSING_TAG_ERROR_T * void_element_closing_tag_error_init ( token_T tag_name,
const char *  expected,
const char *  found,
position_T  start,
position_T  end 
)

◆ append_void_element_closing_tag_error()

void append_void_element_closing_tag_error ( token_T tag_name,
const char *  expected,
const char *  found,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ unclosed_element_error_init()

UNCLOSED_ELEMENT_ERROR_T * unclosed_element_error_init ( token_T opening_tag,
position_T  start,
position_T  end 
)

◆ append_unclosed_element_error()

void append_unclosed_element_error ( token_T opening_tag,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ ruby_parse_error_init()

RUBY_PARSE_ERROR_T * ruby_parse_error_init ( const char *  error_message,
const char *  diagnostic_id,
const char *  level,
position_T  start,
position_T  end 
)

◆ append_ruby_parse_error()

void append_ruby_parse_error ( const char *  error_message,
const char *  diagnostic_id,
const char *  level,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ erb_control_flow_scope_error_init()

ERB_CONTROL_FLOW_SCOPE_ERROR_T * erb_control_flow_scope_error_init ( const char *  keyword,
position_T  start,
position_T  end 
)

◆ append_erb_control_flow_scope_error()

void append_erb_control_flow_scope_error ( const char *  keyword,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ missingerb_end_tag_error_init()

MISSINGERB_END_TAG_ERROR_T * missingerb_end_tag_error_init ( const char *  keyword,
position_T  start,
position_T  end 
)

◆ append_missingerb_end_tag_error()

void append_missingerb_end_tag_error ( const char *  keyword,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ erb_multiple_blocks_in_tag_error_init()

ERB_MULTIPLE_BLOCKS_IN_TAG_ERROR_T * erb_multiple_blocks_in_tag_error_init ( position_T  start,
position_T  end 
)

◆ append_erb_multiple_blocks_in_tag_error()

void append_erb_multiple_blocks_in_tag_error ( position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ erb_case_with_conditions_error_init()

ERB_CASE_WITH_CONDITIONS_ERROR_T * erb_case_with_conditions_error_init ( position_T  start,
position_T  end 
)

◆ append_erb_case_with_conditions_error()

void append_erb_case_with_conditions_error ( position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ conditional_element_multiple_tags_error_init()

CONDITIONAL_ELEMENT_MULTIPLE_TAGS_ERROR_T * conditional_element_multiple_tags_error_init ( size_t  line,
size_t  column,
position_T  start,
position_T  end 
)

◆ append_conditional_element_multiple_tags_error()

void append_conditional_element_multiple_tags_error ( size_t  line,
size_t  column,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ conditional_element_condition_mismatch_error_init()

CONDITIONAL_ELEMENT_CONDITION_MISMATCH_ERROR_T * conditional_element_condition_mismatch_error_init ( const char *  tag_name,
const char *  open_condition,
size_t  open_line,
size_t  open_column,
const char *  close_condition,
size_t  close_line,
size_t  close_column,
position_T  start,
position_T  end 
)

◆ append_conditional_element_condition_mismatch_error()

void append_conditional_element_condition_mismatch_error ( const char *  tag_name,
const char *  open_condition,
size_t  open_line,
size_t  open_column,
const char *  close_condition,
size_t  close_line,
size_t  close_column,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ invalid_comment_closing_tag_error_init()

INVALID_COMMENT_CLOSING_TAG_ERROR_T * invalid_comment_closing_tag_error_init ( token_T closing_tag,
position_T  start,
position_T  end 
)

◆ append_invalid_comment_closing_tag_error()

void append_invalid_comment_closing_tag_error ( token_T closing_tag,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ omitted_closing_tag_error_init()

OMITTED_CLOSING_TAG_ERROR_T * omitted_closing_tag_error_init ( token_T opening_tag,
position_T  insertion_point,
position_T  start,
position_T  end 
)

◆ append_omitted_closing_tag_error()

void append_omitted_closing_tag_error ( token_T opening_tag,
position_T  insertion_point,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ unclosed_open_tag_error_init()

UNCLOSED_OPEN_TAG_ERROR_T * unclosed_open_tag_error_init ( token_T tag_name,
position_T  start,
position_T  end 
)

◆ append_unclosed_open_tag_error()

void append_unclosed_open_tag_error ( token_T tag_name,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ unclosed_close_tag_error_init()

UNCLOSED_CLOSE_TAG_ERROR_T * unclosed_close_tag_error_init ( token_T tag_name,
position_T  start,
position_T  end 
)

◆ append_unclosed_close_tag_error()

void append_unclosed_close_tag_error ( token_T tag_name,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ unclosed_quote_error_init()

UNCLOSED_QUOTE_ERROR_T * unclosed_quote_error_init ( token_T opening_quote,
position_T  start,
position_T  end 
)

◆ append_unclosed_quote_error()

void append_unclosed_quote_error ( token_T opening_quote,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ missing_attribute_value_error_init()

MISSING_ATTRIBUTE_VALUE_ERROR_T * missing_attribute_value_error_init ( const char *  attribute_name,
position_T  start,
position_T  end 
)

◆ append_missing_attribute_value_error()

void append_missing_attribute_value_error ( const char *  attribute_name,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ unclosederb_tag_error_init()

UNCLOSEDERB_TAG_ERROR_T * unclosederb_tag_error_init ( token_T opening_tag,
position_T  start,
position_T  end 
)

◆ append_unclosederb_tag_error()

void append_unclosederb_tag_error ( token_T opening_tag,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ nestederb_tag_error_init()

NESTEDERB_TAG_ERROR_T * nestederb_tag_error_init ( token_T opening_tag,
size_t  nested_tag_line,
size_t  nested_tag_column,
position_T  start,
position_T  end 
)

◆ append_nestederb_tag_error()

void append_nestederb_tag_error ( token_T opening_tag,
size_t  nested_tag_line,
size_t  nested_tag_column,
position_T  start,
position_T  end,
hb_array_T *  errors 
)

◆ error_type_to_string()

const char * error_type_to_string ( ERROR_T error)

◆ error_human_type()

const char * error_human_type ( ERROR_T error)

◆ error_free_base_error()

void error_free_base_error ( ERROR_T error)

◆ error_free_unexpected_error()

static void error_free_unexpected_error ( UNEXPECTED_ERROR_T unexpected_error)
static

◆ error_free_unexpected_token_error()

static void error_free_unexpected_token_error ( UNEXPECTED_TOKEN_ERROR_T unexpected_token_error)
static

◆ error_free_missing_opening_tag_error()

static void error_free_missing_opening_tag_error ( MISSING_OPENING_TAG_ERROR_T missing_opening_tag_error)
static

◆ error_free_missing_closing_tag_error()

static void error_free_missing_closing_tag_error ( MISSING_CLOSING_TAG_ERROR_T missing_closing_tag_error)
static

◆ error_free_tag_names_mismatch_error()

static void error_free_tag_names_mismatch_error ( TAG_NAMES_MISMATCH_ERROR_T tag_names_mismatch_error)
static

◆ error_free_void_element_closing_tag_error()

static void error_free_void_element_closing_tag_error ( VOID_ELEMENT_CLOSING_TAG_ERROR_T void_element_closing_tag_error)
static

◆ error_free_unclosed_element_error()

static void error_free_unclosed_element_error ( UNCLOSED_ELEMENT_ERROR_T unclosed_element_error)
static

◆ error_free_ruby_parse_error()

static void error_free_ruby_parse_error ( RUBY_PARSE_ERROR_T ruby_parse_error)
static

◆ error_free_erb_control_flow_scope_error()

static void error_free_erb_control_flow_scope_error ( ERB_CONTROL_FLOW_SCOPE_ERROR_T erb_control_flow_scope_error)
static

◆ error_free_missingerb_end_tag_error()

static void error_free_missingerb_end_tag_error ( MISSINGERB_END_TAG_ERROR_T missingerb_end_tag_error)
static

◆ error_free_erb_multiple_blocks_in_tag_error()

static void error_free_erb_multiple_blocks_in_tag_error ( ERB_MULTIPLE_BLOCKS_IN_TAG_ERROR_T erb_multiple_blocks_in_tag_error)
static

◆ error_free_erb_case_with_conditions_error()

static void error_free_erb_case_with_conditions_error ( ERB_CASE_WITH_CONDITIONS_ERROR_T erb_case_with_conditions_error)
static

◆ error_free_conditional_element_multiple_tags_error()

static void error_free_conditional_element_multiple_tags_error ( CONDITIONAL_ELEMENT_MULTIPLE_TAGS_ERROR_T conditional_element_multiple_tags_error)
static

◆ error_free_conditional_element_condition_mismatch_error()

static void error_free_conditional_element_condition_mismatch_error ( CONDITIONAL_ELEMENT_CONDITION_MISMATCH_ERROR_T conditional_element_condition_mismatch_error)
static

◆ error_free_invalid_comment_closing_tag_error()

static void error_free_invalid_comment_closing_tag_error ( INVALID_COMMENT_CLOSING_TAG_ERROR_T invalid_comment_closing_tag_error)
static

◆ error_free_omitted_closing_tag_error()

static void error_free_omitted_closing_tag_error ( OMITTED_CLOSING_TAG_ERROR_T omitted_closing_tag_error)
static

◆ error_free_unclosed_open_tag_error()

static void error_free_unclosed_open_tag_error ( UNCLOSED_OPEN_TAG_ERROR_T unclosed_open_tag_error)
static

◆ error_free_unclosed_close_tag_error()

static void error_free_unclosed_close_tag_error ( UNCLOSED_CLOSE_TAG_ERROR_T unclosed_close_tag_error)
static

◆ error_free_unclosed_quote_error()

static void error_free_unclosed_quote_error ( UNCLOSED_QUOTE_ERROR_T unclosed_quote_error)
static

◆ error_free_missing_attribute_value_error()

static void error_free_missing_attribute_value_error ( MISSING_ATTRIBUTE_VALUE_ERROR_T missing_attribute_value_error)
static

◆ error_free_unclosederb_tag_error()

static void error_free_unclosederb_tag_error ( UNCLOSEDERB_TAG_ERROR_T unclosederb_tag_error)
static

◆ error_free_nestederb_tag_error()

static void error_free_nestederb_tag_error ( NESTEDERB_TAG_ERROR_T nestederb_tag_error)
static

◆ error_free()

void error_free ( ERROR_T error)

◆ error_pretty_print_array()

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

◆ error_pretty_print_unexpected_error()

static void error_pretty_print_unexpected_error ( UNEXPECTED_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_unexpected_token_error()

static void error_pretty_print_unexpected_token_error ( UNEXPECTED_TOKEN_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_missing_opening_tag_error()

static void error_pretty_print_missing_opening_tag_error ( MISSING_OPENING_TAG_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_missing_closing_tag_error()

static void error_pretty_print_missing_closing_tag_error ( MISSING_CLOSING_TAG_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_tag_names_mismatch_error()

static void error_pretty_print_tag_names_mismatch_error ( TAG_NAMES_MISMATCH_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_void_element_closing_tag_error()

static void error_pretty_print_void_element_closing_tag_error ( VOID_ELEMENT_CLOSING_TAG_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_unclosed_element_error()

static void error_pretty_print_unclosed_element_error ( UNCLOSED_ELEMENT_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_ruby_parse_error()

static void error_pretty_print_ruby_parse_error ( RUBY_PARSE_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_erb_control_flow_scope_error()

static void error_pretty_print_erb_control_flow_scope_error ( ERB_CONTROL_FLOW_SCOPE_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_missingerb_end_tag_error()

static void error_pretty_print_missingerb_end_tag_error ( MISSINGERB_END_TAG_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_erb_multiple_blocks_in_tag_error()

static void error_pretty_print_erb_multiple_blocks_in_tag_error ( ERB_MULTIPLE_BLOCKS_IN_TAG_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_erb_case_with_conditions_error()

static void error_pretty_print_erb_case_with_conditions_error ( ERB_CASE_WITH_CONDITIONS_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_conditional_element_multiple_tags_error()

static void error_pretty_print_conditional_element_multiple_tags_error ( CONDITIONAL_ELEMENT_MULTIPLE_TAGS_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_conditional_element_condition_mismatch_error()

static void error_pretty_print_conditional_element_condition_mismatch_error ( CONDITIONAL_ELEMENT_CONDITION_MISMATCH_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_invalid_comment_closing_tag_error()

static void error_pretty_print_invalid_comment_closing_tag_error ( INVALID_COMMENT_CLOSING_TAG_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_omitted_closing_tag_error()

static void error_pretty_print_omitted_closing_tag_error ( OMITTED_CLOSING_TAG_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_unclosed_open_tag_error()

static void error_pretty_print_unclosed_open_tag_error ( UNCLOSED_OPEN_TAG_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_unclosed_close_tag_error()

static void error_pretty_print_unclosed_close_tag_error ( UNCLOSED_CLOSE_TAG_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_unclosed_quote_error()

static void error_pretty_print_unclosed_quote_error ( UNCLOSED_QUOTE_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_missing_attribute_value_error()

static void error_pretty_print_missing_attribute_value_error ( MISSING_ATTRIBUTE_VALUE_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_unclosederb_tag_error()

static void error_pretty_print_unclosederb_tag_error ( UNCLOSEDERB_TAG_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print_nestederb_tag_error()

static void error_pretty_print_nestederb_tag_error ( NESTEDERB_TAG_ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)
static

◆ error_pretty_print()

void error_pretty_print ( ERROR_T error,
const size_t  indent,
const size_t  relative_indent,
hb_buffer_T *  buffer 
)