Herb C Reference
Loading...
Searching...
No Matches
ast_nodes.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/ast_nodes.h.erb
3
4#ifndef HERB_AST_NODES_H
5#define HERB_AST_NODES_H
6
7#include <stdbool.h>
8#include <prism.h>
9
10#include "analyzed_ruby.h"
11#include "element_source.h"
12#include "location.h"
13#include "position.h"
14#include "token_struct.h"
15#include "util/hb_array.h"
16#include "util/hb_buffer.h"
17#include "util/hb_string.h"
18
53
54typedef struct AST_NODE_STRUCT {
57 // maybe a range too?
58 hb_array_T* errors;
60
61
66
71
80
88
98
110
118
123
130
135
142
149
156
163
168
178
185
193
204
213
222
233
244
253
262
271
280
288
300
311
318
327
328AST_DOCUMENT_NODE_T* ast_document_node_init(hb_array_T* children, position_T start_position, position_T end_position, hb_array_T* errors);
329AST_LITERAL_NODE_T* ast_literal_node_init(const char* content, position_T start_position, position_T end_position, hb_array_T* errors);
330AST_HTML_OPEN_TAG_NODE_T* ast_html_open_tag_node_init(token_T* tag_opening, token_T* tag_name, token_T* tag_closing, hb_array_T* children, bool is_void, position_T start_position, position_T end_position, hb_array_T* errors);
331AST_HTML_CLOSE_TAG_NODE_T* ast_html_close_tag_node_init(token_T* tag_opening, token_T* tag_name, hb_array_T* children, token_T* tag_closing, position_T start_position, position_T end_position, hb_array_T* errors);
332AST_HTML_ELEMENT_NODE_T* ast_html_element_node_init(struct AST_HTML_OPEN_TAG_NODE_STRUCT* open_tag, token_T* tag_name, hb_array_T* body, struct AST_HTML_CLOSE_TAG_NODE_STRUCT* close_tag, bool is_void, element_source_t source, position_T start_position, position_T end_position, hb_array_T* errors);
333AST_HTML_CONDITIONAL_ELEMENT_NODE_T* ast_html_conditional_element_node_init(const char* condition, struct AST_NODE_STRUCT* open_conditional, struct AST_HTML_OPEN_TAG_NODE_STRUCT* open_tag, hb_array_T* body, struct AST_HTML_CLOSE_TAG_NODE_STRUCT* close_tag, struct AST_NODE_STRUCT* close_conditional, token_T* tag_name, element_source_t source, position_T start_position, position_T end_position, hb_array_T* errors);
334AST_HTML_ATTRIBUTE_VALUE_NODE_T* ast_html_attribute_value_node_init(token_T* open_quote, hb_array_T* children, token_T* close_quote, bool quoted, position_T start_position, position_T end_position, hb_array_T* errors);
335AST_HTML_ATTRIBUTE_NAME_NODE_T* ast_html_attribute_name_node_init(hb_array_T* children, position_T start_position, position_T end_position, hb_array_T* errors);
337AST_HTML_TEXT_NODE_T* ast_html_text_node_init(const char* content, position_T start_position, position_T end_position, hb_array_T* errors);
338AST_HTML_COMMENT_NODE_T* ast_html_comment_node_init(token_T* comment_start, hb_array_T* children, token_T* comment_end, position_T start_position, position_T end_position, hb_array_T* errors);
339AST_HTML_DOCTYPE_NODE_T* ast_html_doctype_node_init(token_T* tag_opening, hb_array_T* children, token_T* tag_closing, position_T start_position, position_T end_position, hb_array_T* errors);
340AST_XML_DECLARATION_NODE_T* ast_xml_declaration_node_init(token_T* tag_opening, hb_array_T* children, token_T* tag_closing, position_T start_position, position_T end_position, hb_array_T* errors);
341AST_CDATA_NODE_T* ast_cdata_node_init(token_T* tag_opening, hb_array_T* children, token_T* tag_closing, position_T start_position, position_T end_position, hb_array_T* errors);
342AST_WHITESPACE_NODE_T* ast_whitespace_node_init(token_T* value, position_T start_position, position_T end_position, hb_array_T* errors);
343AST_ERB_CONTENT_NODE_T* ast_erb_content_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, analyzed_ruby_T* analyzed_ruby, bool parsed, bool valid, position_T start_position, position_T end_position, hb_array_T* errors);
344AST_ERB_END_NODE_T* ast_erb_end_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, position_T start_position, position_T end_position, hb_array_T* errors);
345AST_ERB_ELSE_NODE_T* ast_erb_else_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, hb_array_T* statements, position_T start_position, position_T end_position, hb_array_T* errors);
346AST_ERB_IF_NODE_T* ast_erb_if_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, location_T* then_keyword, hb_array_T* statements, struct AST_NODE_STRUCT* subsequent, struct AST_ERB_END_NODE_STRUCT* end_node, position_T start_position, position_T end_position, hb_array_T* errors);
347AST_ERB_BLOCK_NODE_T* ast_erb_block_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, hb_array_T* body, struct AST_ERB_END_NODE_STRUCT* end_node, position_T start_position, position_T end_position, hb_array_T* errors);
348AST_ERB_WHEN_NODE_T* ast_erb_when_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, location_T* then_keyword, hb_array_T* statements, position_T start_position, position_T end_position, hb_array_T* errors);
349AST_ERB_CASE_NODE_T* ast_erb_case_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, hb_array_T* children, hb_array_T* conditions, struct AST_ERB_ELSE_NODE_STRUCT* else_clause, struct AST_ERB_END_NODE_STRUCT* end_node, position_T start_position, position_T end_position, hb_array_T* errors);
350AST_ERB_CASE_MATCH_NODE_T* ast_erb_case_match_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, hb_array_T* children, hb_array_T* conditions, struct AST_ERB_ELSE_NODE_STRUCT* else_clause, struct AST_ERB_END_NODE_STRUCT* end_node, position_T start_position, position_T end_position, hb_array_T* errors);
351AST_ERB_WHILE_NODE_T* ast_erb_while_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, hb_array_T* statements, struct AST_ERB_END_NODE_STRUCT* end_node, position_T start_position, position_T end_position, hb_array_T* errors);
352AST_ERB_UNTIL_NODE_T* ast_erb_until_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, hb_array_T* statements, struct AST_ERB_END_NODE_STRUCT* end_node, position_T start_position, position_T end_position, hb_array_T* errors);
353AST_ERB_FOR_NODE_T* ast_erb_for_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, hb_array_T* statements, struct AST_ERB_END_NODE_STRUCT* end_node, position_T start_position, position_T end_position, hb_array_T* errors);
354AST_ERB_RESCUE_NODE_T* ast_erb_rescue_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, hb_array_T* statements, struct AST_ERB_RESCUE_NODE_STRUCT* subsequent, position_T start_position, position_T end_position, hb_array_T* errors);
355AST_ERB_ENSURE_NODE_T* ast_erb_ensure_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, hb_array_T* statements, position_T start_position, position_T end_position, hb_array_T* errors);
356AST_ERB_BEGIN_NODE_T* ast_erb_begin_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, hb_array_T* statements, struct AST_ERB_RESCUE_NODE_STRUCT* rescue_clause, struct AST_ERB_ELSE_NODE_STRUCT* else_clause, struct AST_ERB_ENSURE_NODE_STRUCT* ensure_clause, struct AST_ERB_END_NODE_STRUCT* end_node, position_T start_position, position_T end_position, hb_array_T* errors);
357AST_ERB_UNLESS_NODE_T* ast_erb_unless_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, location_T* then_keyword, hb_array_T* statements, struct AST_ERB_ELSE_NODE_STRUCT* else_clause, struct AST_ERB_END_NODE_STRUCT* end_node, position_T start_position, position_T end_position, hb_array_T* errors);
358AST_ERB_YIELD_NODE_T* ast_erb_yield_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, position_T start_position, position_T end_position, hb_array_T* errors);
359AST_ERB_IN_NODE_T* ast_erb_in_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, location_T* then_keyword, hb_array_T* statements, position_T start_position, position_T end_position, hb_array_T* errors);
360
361hb_string_T ast_node_type_to_string(AST_NODE_T* node);
362hb_string_T ast_node_human_type(AST_NODE_T* node);
363
364#endif
struct AST_NODE_STRUCT AST_NODE_T
struct AST_HTML_DOCTYPE_NODE_STRUCT AST_HTML_DOCTYPE_NODE_T
AST_HTML_ATTRIBUTE_VALUE_NODE_T * ast_html_attribute_value_node_init(token_T *open_quote, hb_array_T *children, token_T *close_quote, bool quoted, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:97
AST_ERB_UNLESS_NODE_T * ast_erb_unless_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, location_T *then_keyword, hb_array_T *statements, struct AST_ERB_ELSE_NODE_STRUCT *else_clause, struct AST_ERB_END_NODE_STRUCT *end_node, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:402
AST_CDATA_NODE_T * ast_cdata_node_init(token_T *tag_opening, hb_array_T *children, token_T *tag_closing, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:178
struct AST_CDATA_NODE_STRUCT AST_CDATA_NODE_T
struct AST_ERB_BEGIN_NODE_STRUCT AST_ERB_BEGIN_NODE_T
struct AST_ERB_ENSURE_NODE_STRUCT AST_ERB_ENSURE_NODE_T
struct AST_ERB_WHEN_NODE_STRUCT AST_ERB_WHEN_NODE_T
struct AST_DOCUMENT_NODE_STRUCT AST_DOCUMENT_NODE_T
AST_ERB_IF_NODE_T * ast_erb_if_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, location_T *then_keyword, hb_array_T *statements, struct AST_NODE_STRUCT *subsequent, struct AST_ERB_END_NODE_STRUCT *end_node, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:240
AST_HTML_ELEMENT_NODE_T * ast_html_element_node_init(struct AST_HTML_OPEN_TAG_NODE_STRUCT *open_tag, token_T *tag_name, hb_array_T *body, struct AST_HTML_CLOSE_TAG_NODE_STRUCT *close_tag, bool is_void, element_source_t source, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:65
struct AST_HTML_TEXT_NODE_STRUCT AST_HTML_TEXT_NODE_T
struct AST_HTML_ATTRIBUTE_NAME_NODE_STRUCT AST_HTML_ATTRIBUTE_NAME_NODE_T
AST_XML_DECLARATION_NODE_T * ast_xml_declaration_node_init(token_T *tag_opening, hb_array_T *children, token_T *tag_closing, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:166
AST_ERB_CASE_MATCH_NODE_T * ast_erb_case_match_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, hb_array_T *children, hb_array_T *conditions, struct AST_ERB_ELSE_NODE_STRUCT *else_clause, struct AST_ERB_END_NODE_STRUCT *end_node, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:300
struct AST_ERB_CASE_MATCH_NODE_STRUCT AST_ERB_CASE_MATCH_NODE_T
struct AST_ERB_FOR_NODE_STRUCT AST_ERB_FOR_NODE_T
AST_ERB_ELSE_NODE_T * ast_erb_else_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, hb_array_T *statements, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:227
AST_ERB_IN_NODE_T * ast_erb_in_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, location_T *then_keyword, hb_array_T *statements, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:430
AST_ERB_CASE_NODE_T * ast_erb_case_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, hb_array_T *children, hb_array_T *conditions, struct AST_ERB_ELSE_NODE_STRUCT *else_clause, struct AST_ERB_END_NODE_STRUCT *end_node, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:284
AST_ERB_YIELD_NODE_T * ast_erb_yield_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:418
AST_HTML_OPEN_TAG_NODE_T * ast_html_open_tag_node_init(token_T *tag_opening, token_T *tag_name, token_T *tag_closing, hb_array_T *children, bool is_void, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:38
struct AST_WHITESPACE_NODE_STRUCT AST_WHITESPACE_NODE_T
struct AST_ERB_BLOCK_NODE_STRUCT AST_ERB_BLOCK_NODE_T
struct AST_ERB_IF_NODE_STRUCT AST_ERB_IF_NODE_T
AST_HTML_ATTRIBUTE_NODE_T * ast_html_attribute_node_init(struct AST_HTML_ATTRIBUTE_NAME_NODE_STRUCT *name, token_T *equals, struct AST_HTML_ATTRIBUTE_VALUE_NODE_STRUCT *value, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:120
struct AST_ERB_WHILE_NODE_STRUCT AST_ERB_WHILE_NODE_T
AST_HTML_CONDITIONAL_ELEMENT_NODE_T * ast_html_conditional_element_node_init(const char *condition, struct AST_NODE_STRUCT *open_conditional, struct AST_HTML_OPEN_TAG_NODE_STRUCT *open_tag, hb_array_T *body, struct AST_HTML_CLOSE_TAG_NODE_STRUCT *close_tag, struct AST_NODE_STRUCT *close_conditional, token_T *tag_name, element_source_t source, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:80
struct AST_ERB_END_NODE_STRUCT AST_ERB_END_NODE_T
AST_HTML_DOCTYPE_NODE_T * ast_html_doctype_node_init(token_T *tag_opening, hb_array_T *children, token_T *tag_closing, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:154
struct AST_HTML_CONDITIONAL_ELEMENT_NODE_STRUCT AST_HTML_CONDITIONAL_ELEMENT_NODE_T
struct AST_ERB_YIELD_NODE_STRUCT AST_ERB_YIELD_NODE_T
struct AST_ERB_UNTIL_NODE_STRUCT AST_ERB_UNTIL_NODE_T
struct AST_ERB_UNLESS_NODE_STRUCT AST_ERB_UNLESS_NODE_T
ast_node_type_T
Definition ast_nodes.h:19
@ AST_ERB_UNTIL_NODE
Definition ast_nodes.h:44
@ AST_ERB_IN_NODE
Definition ast_nodes.h:51
@ AST_ERB_END_NODE
Definition ast_nodes.h:36
@ AST_ERB_BLOCK_NODE
Definition ast_nodes.h:39
@ AST_HTML_COMMENT_NODE
Definition ast_nodes.h:30
@ AST_HTML_ATTRIBUTE_VALUE_NODE
Definition ast_nodes.h:26
@ AST_CDATA_NODE
Definition ast_nodes.h:33
@ AST_HTML_ELEMENT_NODE
Definition ast_nodes.h:24
@ AST_ERB_WHEN_NODE
Definition ast_nodes.h:40
@ AST_ERB_BEGIN_NODE
Definition ast_nodes.h:48
@ AST_ERB_WHILE_NODE
Definition ast_nodes.h:43
@ AST_DOCUMENT_NODE
Definition ast_nodes.h:20
@ AST_ERB_IF_NODE
Definition ast_nodes.h:38
@ AST_ERB_FOR_NODE
Definition ast_nodes.h:45
@ AST_HTML_OPEN_TAG_NODE
Definition ast_nodes.h:22
@ AST_HTML_DOCTYPE_NODE
Definition ast_nodes.h:31
@ AST_HTML_ATTRIBUTE_NODE
Definition ast_nodes.h:28
@ AST_HTML_TEXT_NODE
Definition ast_nodes.h:29
@ AST_ERB_UNLESS_NODE
Definition ast_nodes.h:49
@ AST_ERB_ENSURE_NODE
Definition ast_nodes.h:47
@ AST_LITERAL_NODE
Definition ast_nodes.h:21
@ AST_WHITESPACE_NODE
Definition ast_nodes.h:34
@ AST_ERB_CASE_NODE
Definition ast_nodes.h:41
@ AST_ERB_CONTENT_NODE
Definition ast_nodes.h:35
@ AST_ERB_ELSE_NODE
Definition ast_nodes.h:37
@ AST_HTML_CONDITIONAL_ELEMENT_NODE
Definition ast_nodes.h:25
@ AST_ERB_CASE_MATCH_NODE
Definition ast_nodes.h:42
@ AST_ERB_RESCUE_NODE
Definition ast_nodes.h:46
@ AST_ERB_YIELD_NODE
Definition ast_nodes.h:50
@ AST_XML_DECLARATION_NODE
Definition ast_nodes.h:32
@ AST_HTML_ATTRIBUTE_NAME_NODE
Definition ast_nodes.h:27
@ AST_HTML_CLOSE_TAG_NODE
Definition ast_nodes.h:23
AST_ERB_ENSURE_NODE_T * ast_erb_ensure_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, hb_array_T *statements, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:372
AST_ERB_CONTENT_NODE_T * ast_erb_content_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, analyzed_ruby_T *analyzed_ruby, bool parsed, bool valid, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:200
AST_HTML_TEXT_NODE_T * ast_html_text_node_init(const char *content, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:132
struct AST_ERB_CASE_NODE_STRUCT AST_ERB_CASE_NODE_T
AST_ERB_BLOCK_NODE_T * ast_erb_block_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, hb_array_T *body, struct AST_ERB_END_NODE_STRUCT *end_node, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:256
struct AST_XML_DECLARATION_NODE_STRUCT AST_XML_DECLARATION_NODE_T
AST_ERB_WHEN_NODE_T * ast_erb_when_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, location_T *then_keyword, hb_array_T *statements, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:270
AST_HTML_ATTRIBUTE_NAME_NODE_T * ast_html_attribute_name_node_init(hb_array_T *children, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:110
struct AST_HTML_OPEN_TAG_NODE_STRUCT AST_HTML_OPEN_TAG_NODE_T
AST_ERB_END_NODE_T * ast_erb_end_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:215
AST_DOCUMENT_NODE_T * ast_document_node_init(hb_array_T *children, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:18
AST_HTML_COMMENT_NODE_T * ast_html_comment_node_init(token_T *comment_start, hb_array_T *children, token_T *comment_end, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:142
AST_ERB_WHILE_NODE_T * ast_erb_while_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, hb_array_T *statements, struct AST_ERB_END_NODE_STRUCT *end_node, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:316
AST_ERB_UNTIL_NODE_T * ast_erb_until_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, hb_array_T *statements, struct AST_ERB_END_NODE_STRUCT *end_node, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:330
struct AST_HTML_CLOSE_TAG_NODE_STRUCT AST_HTML_CLOSE_TAG_NODE_T
hb_string_T ast_node_human_type(AST_NODE_T *node)
Definition ast_nodes.c:483
AST_LITERAL_NODE_T * ast_literal_node_init(const char *content, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:28
struct AST_ERB_CONTENT_NODE_STRUCT AST_ERB_CONTENT_NODE_T
AST_HTML_CLOSE_TAG_NODE_T * ast_html_close_tag_node_init(token_T *tag_opening, token_T *tag_name, hb_array_T *children, token_T *tag_closing, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:52
AST_WHITESPACE_NODE_T * ast_whitespace_node_init(token_T *value, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:190
hb_string_T ast_node_type_to_string(AST_NODE_T *node)
Definition ast_nodes.c:444
struct AST_HTML_ATTRIBUTE_NODE_STRUCT AST_HTML_ATTRIBUTE_NODE_T
struct AST_LITERAL_NODE_STRUCT AST_LITERAL_NODE_T
AST_ERB_RESCUE_NODE_T * ast_erb_rescue_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, hb_array_T *statements, struct AST_ERB_RESCUE_NODE_STRUCT *subsequent, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:358
AST_ERB_BEGIN_NODE_T * ast_erb_begin_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, hb_array_T *statements, struct AST_ERB_RESCUE_NODE_STRUCT *rescue_clause, struct AST_ERB_ELSE_NODE_STRUCT *else_clause, struct AST_ERB_ENSURE_NODE_STRUCT *ensure_clause, struct AST_ERB_END_NODE_STRUCT *end_node, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:385
AST_ERB_FOR_NODE_T * ast_erb_for_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, hb_array_T *statements, struct AST_ERB_END_NODE_STRUCT *end_node, position_T start_position, position_T end_position, hb_array_T *errors)
Definition ast_nodes.c:344
struct AST_ERB_RESCUE_NODE_STRUCT AST_ERB_RESCUE_NODE_T
struct AST_HTML_COMMENT_NODE_STRUCT AST_HTML_COMMENT_NODE_T
struct AST_ERB_IN_NODE_STRUCT AST_ERB_IN_NODE_T
struct AST_HTML_ATTRIBUTE_VALUE_NODE_STRUCT AST_HTML_ATTRIBUTE_VALUE_NODE_T
struct AST_ERB_ELSE_NODE_STRUCT AST_ERB_ELSE_NODE_T
struct AST_HTML_ELEMENT_NODE_STRUCT AST_HTML_ELEMENT_NODE_T
element_source_t
Definition element_source.h:6
Definition analyzed_ruby.h:9
Definition ast_nodes.h:157
token_T * tag_opening
Definition ast_nodes.h:159
AST_NODE_T base
Definition ast_nodes.h:158
token_T * tag_closing
Definition ast_nodes.h:161
hb_array_T * children
Definition ast_nodes.h:160
Definition ast_nodes.h:62
hb_array_T * children
Definition ast_nodes.h:64
AST_NODE_T base
Definition ast_nodes.h:63
Definition ast_nodes.h:289
struct AST_ERB_ELSE_NODE_STRUCT * else_clause
Definition ast_nodes.h:296
hb_array_T * statements
Definition ast_nodes.h:294
token_T * tag_closing
Definition ast_nodes.h:293
token_T * content
Definition ast_nodes.h:292
struct AST_ERB_END_NODE_STRUCT * end_node
Definition ast_nodes.h:298
AST_NODE_T base
Definition ast_nodes.h:290
token_T * tag_opening
Definition ast_nodes.h:291
struct AST_ERB_RESCUE_NODE_STRUCT * rescue_clause
Definition ast_nodes.h:295
struct AST_ERB_ENSURE_NODE_STRUCT * ensure_clause
Definition ast_nodes.h:297
Definition ast_nodes.h:205
AST_NODE_T base
Definition ast_nodes.h:206
token_T * tag_opening
Definition ast_nodes.h:207
token_T * tag_closing
Definition ast_nodes.h:209
token_T * content
Definition ast_nodes.h:208
struct AST_ERB_END_NODE_STRUCT * end_node
Definition ast_nodes.h:211
hb_array_T * body
Definition ast_nodes.h:210
Definition ast_nodes.h:234
hb_array_T * children
Definition ast_nodes.h:239
struct AST_ERB_ELSE_NODE_STRUCT * else_clause
Definition ast_nodes.h:241
token_T * tag_opening
Definition ast_nodes.h:236
AST_NODE_T base
Definition ast_nodes.h:235
hb_array_T * conditions
Definition ast_nodes.h:240
token_T * tag_closing
Definition ast_nodes.h:238
token_T * content
Definition ast_nodes.h:237
struct AST_ERB_END_NODE_STRUCT * end_node
Definition ast_nodes.h:242
Definition ast_nodes.h:223
struct AST_ERB_END_NODE_STRUCT * end_node
Definition ast_nodes.h:231
token_T * content
Definition ast_nodes.h:226
hb_array_T * children
Definition ast_nodes.h:228
hb_array_T * conditions
Definition ast_nodes.h:229
AST_NODE_T base
Definition ast_nodes.h:224
token_T * tag_closing
Definition ast_nodes.h:227
struct AST_ERB_ELSE_NODE_STRUCT * else_clause
Definition ast_nodes.h:230
token_T * tag_opening
Definition ast_nodes.h:225
Definition ast_nodes.h:169
analyzed_ruby_T * analyzed_ruby
Definition ast_nodes.h:174
AST_NODE_T base
Definition ast_nodes.h:170
bool valid
Definition ast_nodes.h:176
bool parsed
Definition ast_nodes.h:175
token_T * tag_closing
Definition ast_nodes.h:173
token_T * tag_opening
Definition ast_nodes.h:171
token_T * content
Definition ast_nodes.h:172
Definition ast_nodes.h:186
token_T * tag_opening
Definition ast_nodes.h:188
token_T * tag_closing
Definition ast_nodes.h:190
AST_NODE_T base
Definition ast_nodes.h:187
hb_array_T * statements
Definition ast_nodes.h:191
token_T * content
Definition ast_nodes.h:189
Definition ast_nodes.h:179
token_T * tag_closing
Definition ast_nodes.h:183
token_T * tag_opening
Definition ast_nodes.h:181
AST_NODE_T base
Definition ast_nodes.h:180
token_T * content
Definition ast_nodes.h:182
Definition ast_nodes.h:281
hb_array_T * statements
Definition ast_nodes.h:286
token_T * tag_closing
Definition ast_nodes.h:285
AST_NODE_T base
Definition ast_nodes.h:282
token_T * tag_opening
Definition ast_nodes.h:283
token_T * content
Definition ast_nodes.h:284
Definition ast_nodes.h:263
hb_array_T * statements
Definition ast_nodes.h:268
token_T * tag_opening
Definition ast_nodes.h:265
token_T * tag_closing
Definition ast_nodes.h:267
struct AST_ERB_END_NODE_STRUCT * end_node
Definition ast_nodes.h:269
token_T * content
Definition ast_nodes.h:266
AST_NODE_T base
Definition ast_nodes.h:264
Definition ast_nodes.h:194
AST_NODE_T base
Definition ast_nodes.h:195
location_T * then_keyword
Definition ast_nodes.h:199
token_T * tag_opening
Definition ast_nodes.h:196
hb_array_T * statements
Definition ast_nodes.h:200
struct AST_NODE_STRUCT * subsequent
Definition ast_nodes.h:201
token_T * content
Definition ast_nodes.h:197
token_T * tag_closing
Definition ast_nodes.h:198
struct AST_ERB_END_NODE_STRUCT * end_node
Definition ast_nodes.h:202
Definition ast_nodes.h:319
location_T * then_keyword
Definition ast_nodes.h:324
token_T * tag_opening
Definition ast_nodes.h:321
hb_array_T * statements
Definition ast_nodes.h:325
token_T * tag_closing
Definition ast_nodes.h:323
AST_NODE_T base
Definition ast_nodes.h:320
token_T * content
Definition ast_nodes.h:322
Definition ast_nodes.h:272
token_T * tag_closing
Definition ast_nodes.h:276
AST_NODE_T base
Definition ast_nodes.h:273
hb_array_T * statements
Definition ast_nodes.h:277
token_T * tag_opening
Definition ast_nodes.h:274
token_T * content
Definition ast_nodes.h:275
struct AST_ERB_RESCUE_NODE_STRUCT * subsequent
Definition ast_nodes.h:278
Definition ast_nodes.h:301
token_T * content
Definition ast_nodes.h:304
AST_NODE_T base
Definition ast_nodes.h:302
struct AST_ERB_END_NODE_STRUCT * end_node
Definition ast_nodes.h:309
location_T * then_keyword
Definition ast_nodes.h:306
struct AST_ERB_ELSE_NODE_STRUCT * else_clause
Definition ast_nodes.h:308
token_T * tag_closing
Definition ast_nodes.h:305
hb_array_T * statements
Definition ast_nodes.h:307
token_T * tag_opening
Definition ast_nodes.h:303
Definition ast_nodes.h:254
AST_NODE_T base
Definition ast_nodes.h:255
token_T * content
Definition ast_nodes.h:257
token_T * tag_closing
Definition ast_nodes.h:258
hb_array_T * statements
Definition ast_nodes.h:259
struct AST_ERB_END_NODE_STRUCT * end_node
Definition ast_nodes.h:260
token_T * tag_opening
Definition ast_nodes.h:256
Definition ast_nodes.h:214
token_T * content
Definition ast_nodes.h:217
token_T * tag_closing
Definition ast_nodes.h:218
location_T * then_keyword
Definition ast_nodes.h:219
token_T * tag_opening
Definition ast_nodes.h:216
hb_array_T * statements
Definition ast_nodes.h:220
AST_NODE_T base
Definition ast_nodes.h:215
Definition ast_nodes.h:245
token_T * content
Definition ast_nodes.h:248
token_T * tag_opening
Definition ast_nodes.h:247
hb_array_T * statements
Definition ast_nodes.h:250
struct AST_ERB_END_NODE_STRUCT * end_node
Definition ast_nodes.h:251
AST_NODE_T base
Definition ast_nodes.h:246
token_T * tag_closing
Definition ast_nodes.h:249
Definition ast_nodes.h:312
token_T * tag_closing
Definition ast_nodes.h:316
token_T * content
Definition ast_nodes.h:315
token_T * tag_opening
Definition ast_nodes.h:314
AST_NODE_T base
Definition ast_nodes.h:313
Definition ast_nodes.h:119
AST_NODE_T base
Definition ast_nodes.h:120
hb_array_T * children
Definition ast_nodes.h:121
Definition ast_nodes.h:124
struct AST_HTML_ATTRIBUTE_NAME_NODE_STRUCT * name
Definition ast_nodes.h:126
struct AST_HTML_ATTRIBUTE_VALUE_NODE_STRUCT * value
Definition ast_nodes.h:128
AST_NODE_T base
Definition ast_nodes.h:125
token_T * equals
Definition ast_nodes.h:127
Definition ast_nodes.h:111
hb_array_T * children
Definition ast_nodes.h:114
token_T * close_quote
Definition ast_nodes.h:115
bool quoted
Definition ast_nodes.h:116
AST_NODE_T base
Definition ast_nodes.h:112
token_T * open_quote
Definition ast_nodes.h:113
Definition ast_nodes.h:81
token_T * tag_name
Definition ast_nodes.h:84
AST_NODE_T base
Definition ast_nodes.h:82
token_T * tag_opening
Definition ast_nodes.h:83
token_T * tag_closing
Definition ast_nodes.h:86
hb_array_T * children
Definition ast_nodes.h:85
Definition ast_nodes.h:136
token_T * comment_start
Definition ast_nodes.h:138
AST_NODE_T base
Definition ast_nodes.h:137
token_T * comment_end
Definition ast_nodes.h:140
hb_array_T * children
Definition ast_nodes.h:139
struct AST_HTML_CLOSE_TAG_NODE_STRUCT * close_tag
Definition ast_nodes.h:105
hb_array_T * body
Definition ast_nodes.h:104
element_source_t source
Definition ast_nodes.h:108
struct AST_NODE_STRUCT * open_conditional
Definition ast_nodes.h:102
AST_NODE_T base
Definition ast_nodes.h:100
struct AST_HTML_OPEN_TAG_NODE_STRUCT * open_tag
Definition ast_nodes.h:103
struct AST_NODE_STRUCT * close_conditional
Definition ast_nodes.h:106
const char * condition
Definition ast_nodes.h:101
token_T * tag_name
Definition ast_nodes.h:107
Definition ast_nodes.h:143
hb_array_T * children
Definition ast_nodes.h:146
token_T * tag_opening
Definition ast_nodes.h:145
AST_NODE_T base
Definition ast_nodes.h:144
token_T * tag_closing
Definition ast_nodes.h:147
Definition ast_nodes.h:89
AST_NODE_T base
Definition ast_nodes.h:90
element_source_t source
Definition ast_nodes.h:96
hb_array_T * body
Definition ast_nodes.h:93
bool is_void
Definition ast_nodes.h:95
token_T * tag_name
Definition ast_nodes.h:92
struct AST_HTML_CLOSE_TAG_NODE_STRUCT * close_tag
Definition ast_nodes.h:94
struct AST_HTML_OPEN_TAG_NODE_STRUCT * open_tag
Definition ast_nodes.h:91
Definition ast_nodes.h:72
hb_array_T * children
Definition ast_nodes.h:77
token_T * tag_name
Definition ast_nodes.h:75
bool is_void
Definition ast_nodes.h:78
token_T * tag_closing
Definition ast_nodes.h:76
AST_NODE_T base
Definition ast_nodes.h:73
token_T * tag_opening
Definition ast_nodes.h:74
Definition ast_nodes.h:131
const char * content
Definition ast_nodes.h:133
AST_NODE_T base
Definition ast_nodes.h:132
Definition ast_nodes.h:67
const char * content
Definition ast_nodes.h:69
AST_NODE_T base
Definition ast_nodes.h:68
Definition ast_nodes.h:54
hb_array_T * errors
Definition ast_nodes.h:58
ast_node_type_T type
Definition ast_nodes.h:55
location_T location
Definition ast_nodes.h:56
Definition ast_nodes.h:164
AST_NODE_T base
Definition ast_nodes.h:165
token_T * value
Definition ast_nodes.h:166
Definition ast_nodes.h:150
hb_array_T * children
Definition ast_nodes.h:153
token_T * tag_opening
Definition ast_nodes.h:152
token_T * tag_closing
Definition ast_nodes.h:154
AST_NODE_T base
Definition ast_nodes.h:151
Definition location.h:9
Definition position.h:8
Definition token_struct.h:51