$darkmode
Herb C Reference
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 
19 typedef enum {
52 
53 typedef struct AST_NODE_STRUCT {
56  // maybe a range too?
57  hb_array_T* errors;
59 
60 
61 typedef struct AST_DOCUMENT_NODE_STRUCT {
63  hb_array_T* children;
65 
66 typedef struct AST_LITERAL_NODE_STRUCT {
68  const char* content;
70 
76  hb_array_T* children;
77  bool is_void;
79 
84  hb_array_T* children;
87 
92  hb_array_T* body;
94  bool is_void;
97 
101  hb_array_T* children;
103  bool quoted;
105 
108  hb_array_T* children;
110 
117 
120  const char* content;
122 
126  hb_array_T* children;
129 
133  hb_array_T* children;
136 
140  hb_array_T* children;
143 
144 typedef struct AST_CDATA_NODE_STRUCT {
147  hb_array_T* children;
150 
155 
162  bool parsed;
163  bool valid;
165 
166 typedef struct AST_ERB_END_NODE_STRUCT {
172 
173 typedef struct AST_ERB_ELSE_NODE_STRUCT {
178  hb_array_T* statements;
180 
181 typedef struct AST_ERB_IF_NODE_STRUCT {
186  hb_array_T* statements;
190 
196  hb_array_T* body;
199 
200 typedef struct AST_ERB_WHEN_NODE_STRUCT {
205  hb_array_T* statements;
207 
208 typedef struct AST_ERB_CASE_NODE_STRUCT {
213  hb_array_T* children;
214  hb_array_T* conditions;
218 
224  hb_array_T* children;
225  hb_array_T* conditions;
229 
235  hb_array_T* statements;
238 
244  hb_array_T* statements;
247 
248 typedef struct AST_ERB_FOR_NODE_STRUCT {
253  hb_array_T* statements;
256 
262  hb_array_T* statements;
265 
271  hb_array_T* statements;
273 
279  hb_array_T* statements;
285 
291  hb_array_T* statements;
295 
302 
303 typedef struct AST_ERB_IN_NODE_STRUCT {
308  hb_array_T* statements;
310 
311 AST_DOCUMENT_NODE_T* ast_document_node_init(hb_array_T* children, position_T start_position, position_T end_position, hb_array_T* errors);
312 AST_LITERAL_NODE_T* ast_literal_node_init(const char* content, position_T start_position, position_T end_position, hb_array_T* errors);
313 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);
314 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);
315 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);
316 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);
317 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);
318 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);
319 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);
320 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);
321 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);
322 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);
323 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);
324 AST_WHITESPACE_NODE_T* ast_whitespace_node_init(token_T* value, position_T start_position, position_T end_position, hb_array_T* errors);
325 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);
326 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);
327 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);
328 AST_ERB_IF_NODE_T* ast_erb_if_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, 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);
329 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);
330 AST_ERB_WHEN_NODE_T* ast_erb_when_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);
331 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);
332 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);
333 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);
334 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);
335 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);
336 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);
337 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);
338 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);
339 AST_ERB_UNLESS_NODE_T* ast_erb_unless_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, 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);
340 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);
341 AST_ERB_IN_NODE_T* ast_erb_in_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);
342 
343 hb_string_T ast_node_type_to_string(AST_NODE_T* node);
344 hb_string_T ast_node_human_type(AST_NODE_T* node);
345 
346 #endif
struct AST_NODE_STRUCT AST_NODE_T
struct AST_HTML_DOCTYPE_NODE_STRUCT AST_HTML_DOCTYPE_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:339
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:398
struct AST_CDATA_NODE_STRUCT AST_CDATA_NODE_T
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:366
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
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_IN_NODE_T * ast_erb_in_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:410
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_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:353
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:137
struct AST_ERB_CASE_MATCH_NODE_STRUCT AST_ERB_CASE_MATCH_NODE_T
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:311
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:297
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_ERB_FOR_NODE_STRUCT AST_ERB_FOR_NODE_T
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:115
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:173
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:93
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:103
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
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:80
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_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:325
struct AST_ERB_WHILE_NODE_STRUCT AST_ERB_WHILE_NODE_T
struct AST_ERB_END_NODE_STRUCT AST_ERB_END_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_ERB_UNLESS_NODE_T * ast_erb_unless_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, 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:383
ast_node_type_T
Definition: ast_nodes.h:19
@ AST_ERB_UNTIL_NODE
Definition: ast_nodes.h:43
@ AST_ERB_IN_NODE
Definition: ast_nodes.h:50
@ AST_ERB_END_NODE
Definition: ast_nodes.h:35
@ AST_ERB_BLOCK_NODE
Definition: ast_nodes.h:38
@ AST_HTML_COMMENT_NODE
Definition: ast_nodes.h:29
@ AST_HTML_ATTRIBUTE_VALUE_NODE
Definition: ast_nodes.h:25
@ AST_CDATA_NODE
Definition: ast_nodes.h:32
@ AST_HTML_ELEMENT_NODE
Definition: ast_nodes.h:24
@ AST_ERB_WHEN_NODE
Definition: ast_nodes.h:39
@ AST_ERB_BEGIN_NODE
Definition: ast_nodes.h:47
@ AST_ERB_WHILE_NODE
Definition: ast_nodes.h:42
@ AST_DOCUMENT_NODE
Definition: ast_nodes.h:20
@ AST_ERB_IF_NODE
Definition: ast_nodes.h:37
@ AST_ERB_FOR_NODE
Definition: ast_nodes.h:44
@ AST_HTML_OPEN_TAG_NODE
Definition: ast_nodes.h:22
@ AST_HTML_DOCTYPE_NODE
Definition: ast_nodes.h:30
@ AST_HTML_ATTRIBUTE_NODE
Definition: ast_nodes.h:27
@ AST_HTML_TEXT_NODE
Definition: ast_nodes.h:28
@ AST_ERB_UNLESS_NODE
Definition: ast_nodes.h:48
@ AST_ERB_ENSURE_NODE
Definition: ast_nodes.h:46
@ AST_LITERAL_NODE
Definition: ast_nodes.h:21
@ AST_WHITESPACE_NODE
Definition: ast_nodes.h:33
@ AST_ERB_CASE_NODE
Definition: ast_nodes.h:40
@ AST_ERB_CONTENT_NODE
Definition: ast_nodes.h:34
@ AST_ERB_ELSE_NODE
Definition: ast_nodes.h:36
@ AST_ERB_CASE_MATCH_NODE
Definition: ast_nodes.h:41
@ AST_ERB_RESCUE_NODE
Definition: ast_nodes.h:45
@ AST_ERB_YIELD_NODE
Definition: ast_nodes.h:49
@ AST_XML_DECLARATION_NODE
Definition: ast_nodes.h:31
@ AST_HTML_ATTRIBUTE_NAME_NODE
Definition: ast_nodes.h:26
@ AST_HTML_CLOSE_TAG_NODE
Definition: ast_nodes.h:23
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:125
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:238
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:265
struct AST_ERB_CASE_NODE_STRUCT AST_ERB_CASE_NODE_T
struct AST_XML_DECLARATION_NODE_STRUCT AST_XML_DECLARATION_NODE_T
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
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:149
struct AST_HTML_OPEN_TAG_NODE_STRUCT AST_HTML_OPEN_TAG_NODE_T
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:161
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:210
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:198
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:461
struct AST_ERB_CONTENT_NODE_STRUCT AST_ERB_CONTENT_NODE_T
hb_string_T ast_node_type_to_string(AST_NODE_T *node)
Definition: ast_nodes.c:423
struct AST_HTML_ATTRIBUTE_NODE_STRUCT AST_HTML_ATTRIBUTE_NODE_T
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:183
AST_ERB_WHEN_NODE_T * ast_erb_when_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:252
struct AST_LITERAL_NODE_STRUCT AST_LITERAL_NODE_T
AST_ERB_IF_NODE_T * ast_erb_if_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, 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:223
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_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:281
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:144
token_T * tag_opening
Definition: ast_nodes.h:146
AST_NODE_T base
Definition: ast_nodes.h:145
token_T * tag_closing
Definition: ast_nodes.h:148
hb_array_T * children
Definition: ast_nodes.h:147
Definition: ast_nodes.h:61
hb_array_T * children
Definition: ast_nodes.h:63
AST_NODE_T base
Definition: ast_nodes.h:62
Definition: ast_nodes.h:274
struct AST_ERB_ELSE_NODE_STRUCT * else_clause
Definition: ast_nodes.h:281
hb_array_T * statements
Definition: ast_nodes.h:279
token_T * tag_closing
Definition: ast_nodes.h:278
token_T * content
Definition: ast_nodes.h:277
struct AST_ERB_END_NODE_STRUCT * end_node
Definition: ast_nodes.h:283
AST_NODE_T base
Definition: ast_nodes.h:275
token_T * tag_opening
Definition: ast_nodes.h:276
struct AST_ERB_RESCUE_NODE_STRUCT * rescue_clause
Definition: ast_nodes.h:280
struct AST_ERB_ENSURE_NODE_STRUCT * ensure_clause
Definition: ast_nodes.h:282
Definition: ast_nodes.h:191
AST_NODE_T base
Definition: ast_nodes.h:192
token_T * tag_opening
Definition: ast_nodes.h:193
token_T * tag_closing
Definition: ast_nodes.h:195
token_T * content
Definition: ast_nodes.h:194
struct AST_ERB_END_NODE_STRUCT * end_node
Definition: ast_nodes.h:197
hb_array_T * body
Definition: ast_nodes.h:196
Definition: ast_nodes.h:219
hb_array_T * children
Definition: ast_nodes.h:224
struct AST_ERB_ELSE_NODE_STRUCT * else_clause
Definition: ast_nodes.h:226
token_T * tag_opening
Definition: ast_nodes.h:221
AST_NODE_T base
Definition: ast_nodes.h:220
hb_array_T * conditions
Definition: ast_nodes.h:225
token_T * tag_closing
Definition: ast_nodes.h:223
token_T * content
Definition: ast_nodes.h:222
struct AST_ERB_END_NODE_STRUCT * end_node
Definition: ast_nodes.h:227
Definition: ast_nodes.h:208
struct AST_ERB_END_NODE_STRUCT * end_node
Definition: ast_nodes.h:216
token_T * content
Definition: ast_nodes.h:211
hb_array_T * children
Definition: ast_nodes.h:213
hb_array_T * conditions
Definition: ast_nodes.h:214
AST_NODE_T base
Definition: ast_nodes.h:209
token_T * tag_closing
Definition: ast_nodes.h:212
struct AST_ERB_ELSE_NODE_STRUCT * else_clause
Definition: ast_nodes.h:215
token_T * tag_opening
Definition: ast_nodes.h:210
Definition: ast_nodes.h:156
analyzed_ruby_T * analyzed_ruby
Definition: ast_nodes.h:161
AST_NODE_T base
Definition: ast_nodes.h:157
bool valid
Definition: ast_nodes.h:163
bool parsed
Definition: ast_nodes.h:162
token_T * tag_closing
Definition: ast_nodes.h:160
token_T * tag_opening
Definition: ast_nodes.h:158
token_T * content
Definition: ast_nodes.h:159
Definition: ast_nodes.h:173
token_T * tag_opening
Definition: ast_nodes.h:175
token_T * tag_closing
Definition: ast_nodes.h:177
AST_NODE_T base
Definition: ast_nodes.h:174
hb_array_T * statements
Definition: ast_nodes.h:178
token_T * content
Definition: ast_nodes.h:176
Definition: ast_nodes.h:166
token_T * tag_closing
Definition: ast_nodes.h:170
token_T * tag_opening
Definition: ast_nodes.h:168
AST_NODE_T base
Definition: ast_nodes.h:167
token_T * content
Definition: ast_nodes.h:169
Definition: ast_nodes.h:266
hb_array_T * statements
Definition: ast_nodes.h:271
token_T * tag_closing
Definition: ast_nodes.h:270
AST_NODE_T base
Definition: ast_nodes.h:267
token_T * tag_opening
Definition: ast_nodes.h:268
token_T * content
Definition: ast_nodes.h:269
Definition: ast_nodes.h:248
hb_array_T * statements
Definition: ast_nodes.h:253
token_T * tag_opening
Definition: ast_nodes.h:250
token_T * tag_closing
Definition: ast_nodes.h:252
struct AST_ERB_END_NODE_STRUCT * end_node
Definition: ast_nodes.h:254
token_T * content
Definition: ast_nodes.h:251
AST_NODE_T base
Definition: ast_nodes.h:249
Definition: ast_nodes.h:181
AST_NODE_T base
Definition: ast_nodes.h:182
token_T * tag_opening
Definition: ast_nodes.h:183
hb_array_T * statements
Definition: ast_nodes.h:186
struct AST_NODE_STRUCT * subsequent
Definition: ast_nodes.h:187
token_T * content
Definition: ast_nodes.h:184
token_T * tag_closing
Definition: ast_nodes.h:185
struct AST_ERB_END_NODE_STRUCT * end_node
Definition: ast_nodes.h:188
Definition: ast_nodes.h:303
token_T * tag_opening
Definition: ast_nodes.h:305
hb_array_T * statements
Definition: ast_nodes.h:308
token_T * tag_closing
Definition: ast_nodes.h:307
AST_NODE_T base
Definition: ast_nodes.h:304
token_T * content
Definition: ast_nodes.h:306
Definition: ast_nodes.h:257
token_T * tag_closing
Definition: ast_nodes.h:261
AST_NODE_T base
Definition: ast_nodes.h:258
hb_array_T * statements
Definition: ast_nodes.h:262
token_T * tag_opening
Definition: ast_nodes.h:259
token_T * content
Definition: ast_nodes.h:260
struct AST_ERB_RESCUE_NODE_STRUCT * subsequent
Definition: ast_nodes.h:263
Definition: ast_nodes.h:286
token_T * content
Definition: ast_nodes.h:289
AST_NODE_T base
Definition: ast_nodes.h:287
struct AST_ERB_END_NODE_STRUCT * end_node
Definition: ast_nodes.h:293
struct AST_ERB_ELSE_NODE_STRUCT * else_clause
Definition: ast_nodes.h:292
token_T * tag_closing
Definition: ast_nodes.h:290
hb_array_T * statements
Definition: ast_nodes.h:291
token_T * tag_opening
Definition: ast_nodes.h:288
Definition: ast_nodes.h:239
AST_NODE_T base
Definition: ast_nodes.h:240
token_T * content
Definition: ast_nodes.h:242
token_T * tag_closing
Definition: ast_nodes.h:243
hb_array_T * statements
Definition: ast_nodes.h:244
struct AST_ERB_END_NODE_STRUCT * end_node
Definition: ast_nodes.h:245
token_T * tag_opening
Definition: ast_nodes.h:241
Definition: ast_nodes.h:200
token_T * content
Definition: ast_nodes.h:203
token_T * tag_closing
Definition: ast_nodes.h:204
token_T * tag_opening
Definition: ast_nodes.h:202
hb_array_T * statements
Definition: ast_nodes.h:205
AST_NODE_T base
Definition: ast_nodes.h:201
Definition: ast_nodes.h:230
token_T * content
Definition: ast_nodes.h:233
token_T * tag_opening
Definition: ast_nodes.h:232
hb_array_T * statements
Definition: ast_nodes.h:235
struct AST_ERB_END_NODE_STRUCT * end_node
Definition: ast_nodes.h:236
AST_NODE_T base
Definition: ast_nodes.h:231
token_T * tag_closing
Definition: ast_nodes.h:234
Definition: ast_nodes.h:296
token_T * tag_closing
Definition: ast_nodes.h:300
token_T * content
Definition: ast_nodes.h:299
token_T * tag_opening
Definition: ast_nodes.h:298
AST_NODE_T base
Definition: ast_nodes.h:297
Definition: ast_nodes.h:106
AST_NODE_T base
Definition: ast_nodes.h:107
hb_array_T * children
Definition: ast_nodes.h:108
Definition: ast_nodes.h:111
struct AST_HTML_ATTRIBUTE_NAME_NODE_STRUCT * name
Definition: ast_nodes.h:113
struct AST_HTML_ATTRIBUTE_VALUE_NODE_STRUCT * value
Definition: ast_nodes.h:115
AST_NODE_T base
Definition: ast_nodes.h:112
token_T * equals
Definition: ast_nodes.h:114
Definition: ast_nodes.h:98
hb_array_T * children
Definition: ast_nodes.h:101
token_T * close_quote
Definition: ast_nodes.h:102
bool quoted
Definition: ast_nodes.h:103
AST_NODE_T base
Definition: ast_nodes.h:99
token_T * open_quote
Definition: ast_nodes.h:100
Definition: ast_nodes.h:80
token_T * tag_name
Definition: ast_nodes.h:83
AST_NODE_T base
Definition: ast_nodes.h:81
token_T * tag_opening
Definition: ast_nodes.h:82
token_T * tag_closing
Definition: ast_nodes.h:85
hb_array_T * children
Definition: ast_nodes.h:84
Definition: ast_nodes.h:123
token_T * comment_start
Definition: ast_nodes.h:125
AST_NODE_T base
Definition: ast_nodes.h:124
token_T * comment_end
Definition: ast_nodes.h:127
hb_array_T * children
Definition: ast_nodes.h:126
Definition: ast_nodes.h:130
hb_array_T * children
Definition: ast_nodes.h:133
token_T * tag_opening
Definition: ast_nodes.h:132
AST_NODE_T base
Definition: ast_nodes.h:131
token_T * tag_closing
Definition: ast_nodes.h:134
Definition: ast_nodes.h:88
AST_NODE_T base
Definition: ast_nodes.h:89
element_source_t source
Definition: ast_nodes.h:95
hb_array_T * body
Definition: ast_nodes.h:92
bool is_void
Definition: ast_nodes.h:94
token_T * tag_name
Definition: ast_nodes.h:91
struct AST_HTML_CLOSE_TAG_NODE_STRUCT * close_tag
Definition: ast_nodes.h:93
struct AST_HTML_OPEN_TAG_NODE_STRUCT * open_tag
Definition: ast_nodes.h:90
Definition: ast_nodes.h:71
hb_array_T * children
Definition: ast_nodes.h:76
token_T * tag_name
Definition: ast_nodes.h:74
bool is_void
Definition: ast_nodes.h:77
token_T * tag_closing
Definition: ast_nodes.h:75
AST_NODE_T base
Definition: ast_nodes.h:72
token_T * tag_opening
Definition: ast_nodes.h:73
Definition: ast_nodes.h:118
const char * content
Definition: ast_nodes.h:120
AST_NODE_T base
Definition: ast_nodes.h:119
Definition: ast_nodes.h:66
const char * content
Definition: ast_nodes.h:68
AST_NODE_T base
Definition: ast_nodes.h:67
Definition: ast_nodes.h:53
hb_array_T * errors
Definition: ast_nodes.h:57
ast_node_type_T type
Definition: ast_nodes.h:54
location_T location
Definition: ast_nodes.h:55
Definition: ast_nodes.h:151
AST_NODE_T base
Definition: ast_nodes.h:152
token_T * value
Definition: ast_nodes.h:153
Definition: ast_nodes.h:137
hb_array_T * children
Definition: ast_nodes.h:140
token_T * tag_opening
Definition: ast_nodes.h:139
token_T * tag_closing
Definition: ast_nodes.h:141
AST_NODE_T base
Definition: ast_nodes.h:138
Definition: location.h:9
Definition: position.h:6
Definition: token_struct.h:51