$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 "array.h"
11 #include "buffer.h"
12 #include "position.h"
13 #include "location.h"
14 #include "token_struct.h"
15 #include "analyzed_ruby.h"
16 
17 typedef enum {
50 
51 typedef struct AST_NODE_STRUCT {
54  // maybe a range too?
57 
58 
59 typedef struct AST_DOCUMENT_NODE_STRUCT {
63 
64 typedef struct AST_LITERAL_NODE_STRUCT {
66  const char* content;
68 
75  bool is_void;
77 
85 
92  bool is_void;
94 
100  bool quoted;
102 
107 
114 
117  const char* content;
119 
126 
133 
140 
141 typedef struct AST_CDATA_NODE_STRUCT {
147 
152 
159  bool parsed;
160  bool valid;
162 
163 typedef struct AST_ERB_END_NODE_STRUCT {
169 
170 typedef struct AST_ERB_ELSE_NODE_STRUCT {
177 
178 typedef struct AST_ERB_IF_NODE_STRUCT {
187 
196 
197 typedef struct AST_ERB_WHEN_NODE_STRUCT {
204 
205 typedef struct AST_ERB_CASE_NODE_STRUCT {
215 
226 
235 
244 
245 typedef struct AST_ERB_FOR_NODE_STRUCT {
253 
262 
270 
282 
292 
299 
300 typedef struct AST_ERB_IN_NODE_STRUCT {
307 
308 AST_DOCUMENT_NODE_T* ast_document_node_init(array_T* children, position_T* start_position, position_T* end_position, array_T* errors);
309 AST_LITERAL_NODE_T* ast_literal_node_init(const char* content, position_T* start_position, position_T* end_position, array_T* errors);
310 AST_HTML_OPEN_TAG_NODE_T* ast_html_open_tag_node_init(token_T* tag_opening, token_T* tag_name, token_T* tag_closing, array_T* children, bool is_void, position_T* start_position, position_T* end_position, array_T* errors);
311 AST_HTML_CLOSE_TAG_NODE_T* ast_html_close_tag_node_init(token_T* tag_opening, token_T* tag_name, array_T* children, token_T* tag_closing, position_T* start_position, position_T* end_position, array_T* errors);
312 AST_HTML_ELEMENT_NODE_T* ast_html_element_node_init(struct AST_HTML_OPEN_TAG_NODE_STRUCT* open_tag, token_T* tag_name, array_T* body, struct AST_HTML_CLOSE_TAG_NODE_STRUCT* close_tag, bool is_void, position_T* start_position, position_T* end_position, array_T* errors);
313 AST_HTML_ATTRIBUTE_VALUE_NODE_T* ast_html_attribute_value_node_init(token_T* open_quote, array_T* children, token_T* close_quote, bool quoted, position_T* start_position, position_T* end_position, array_T* errors);
314 AST_HTML_ATTRIBUTE_NAME_NODE_T* ast_html_attribute_name_node_init(array_T* children, position_T* start_position, position_T* end_position, array_T* errors);
316 AST_HTML_TEXT_NODE_T* ast_html_text_node_init(const char* content, position_T* start_position, position_T* end_position, array_T* errors);
317 AST_HTML_COMMENT_NODE_T* ast_html_comment_node_init(token_T* comment_start, array_T* children, token_T* comment_end, position_T* start_position, position_T* end_position, array_T* errors);
318 AST_HTML_DOCTYPE_NODE_T* ast_html_doctype_node_init(token_T* tag_opening, array_T* children, token_T* tag_closing, position_T* start_position, position_T* end_position, array_T* errors);
319 AST_XML_DECLARATION_NODE_T* ast_xml_declaration_node_init(token_T* tag_opening, array_T* children, token_T* tag_closing, position_T* start_position, position_T* end_position, array_T* errors);
320 AST_CDATA_NODE_T* ast_cdata_node_init(token_T* tag_opening, array_T* children, token_T* tag_closing, position_T* start_position, position_T* end_position, array_T* errors);
321 AST_WHITESPACE_NODE_T* ast_whitespace_node_init(token_T* value, position_T* start_position, position_T* end_position, array_T* errors);
322 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, array_T* errors);
323 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, array_T* errors);
324 AST_ERB_ELSE_NODE_T* ast_erb_else_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* statements, position_T* start_position, position_T* end_position, array_T* errors);
325 AST_ERB_IF_NODE_T* ast_erb_if_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* statements, struct AST_NODE_STRUCT* subsequent, struct AST_ERB_END_NODE_STRUCT* end_node, position_T* start_position, position_T* end_position, array_T* errors);
326 AST_ERB_BLOCK_NODE_T* ast_erb_block_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* body, struct AST_ERB_END_NODE_STRUCT* end_node, position_T* start_position, position_T* end_position, array_T* errors);
327 AST_ERB_WHEN_NODE_T* ast_erb_when_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* statements, position_T* start_position, position_T* end_position, array_T* errors);
328 AST_ERB_CASE_NODE_T* ast_erb_case_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* children, 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, array_T* errors);
329 AST_ERB_CASE_MATCH_NODE_T* ast_erb_case_match_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* children, 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, array_T* errors);
330 AST_ERB_WHILE_NODE_T* ast_erb_while_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* statements, struct AST_ERB_END_NODE_STRUCT* end_node, position_T* start_position, position_T* end_position, array_T* errors);
331 AST_ERB_UNTIL_NODE_T* ast_erb_until_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* statements, struct AST_ERB_END_NODE_STRUCT* end_node, position_T* start_position, position_T* end_position, array_T* errors);
332 AST_ERB_FOR_NODE_T* ast_erb_for_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* statements, struct AST_ERB_END_NODE_STRUCT* end_node, position_T* start_position, position_T* end_position, array_T* errors);
333 AST_ERB_RESCUE_NODE_T* ast_erb_rescue_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* statements, struct AST_ERB_RESCUE_NODE_STRUCT* subsequent, position_T* start_position, position_T* end_position, array_T* errors);
334 AST_ERB_ENSURE_NODE_T* ast_erb_ensure_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* statements, position_T* start_position, position_T* end_position, array_T* errors);
335 AST_ERB_BEGIN_NODE_T* ast_erb_begin_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, 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, array_T* errors);
336 AST_ERB_UNLESS_NODE_T* ast_erb_unless_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, 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, array_T* errors);
337 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, array_T* errors);
338 AST_ERB_IN_NODE_T* ast_erb_in_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* statements, position_T* start_position, position_T* end_position, array_T* errors);
339 
340 const char* ast_node_type_to_string(AST_NODE_T* node);
341 const char* ast_node_human_type(AST_NODE_T* node);
342 
343 #endif
struct AST_NODE_STRUCT AST_NODE_T
struct AST_HTML_DOCTYPE_NODE_STRUCT AST_HTML_DOCTYPE_NODE_T
AST_HTML_CLOSE_TAG_NODE_T * ast_html_close_tag_node_init(token_T *tag_opening, token_T *tag_name, array_T *children, token_T *tag_closing, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:52
AST_ERB_CASE_NODE_T * ast_erb_case_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, array_T *children, 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, array_T *errors)
Definition: ast_nodes.c:264
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_LITERAL_NODE_T * ast_literal_node_init(const char *content, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:28
struct AST_HTML_TEXT_NODE_STRUCT AST_HTML_TEXT_NODE_T
struct AST_HTML_ATTRIBUTE_NAME_NODE_STRUCT AST_HTML_ATTRIBUTE_NAME_NODE_T
struct AST_ERB_CASE_MATCH_NODE_STRUCT AST_ERB_CASE_MATCH_NODE_T
AST_ERB_WHILE_NODE_T * ast_erb_while_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, array_T *statements, struct AST_ERB_END_NODE_STRUCT *end_node, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:296
AST_ERB_BEGIN_NODE_T * ast_erb_begin_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, 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, array_T *errors)
Definition: ast_nodes.c:365
struct AST_ERB_FOR_NODE_STRUCT AST_ERB_FOR_NODE_T
AST_ERB_IF_NODE_T * ast_erb_if_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, array_T *statements, struct AST_NODE_STRUCT *subsequent, struct AST_ERB_END_NODE_STRUCT *end_node, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:222
AST_ERB_RESCUE_NODE_T * ast_erb_rescue_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, array_T *statements, struct AST_ERB_RESCUE_NODE_STRUCT *subsequent, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:338
AST_DOCUMENT_NODE_T * ast_document_node_init(array_T *children, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:18
AST_ERB_WHEN_NODE_T * ast_erb_when_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, array_T *statements, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:251
AST_XML_DECLARATION_NODE_T * ast_xml_declaration_node_init(token_T *tag_opening, array_T *children, token_T *tag_closing, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:148
AST_HTML_DOCTYPE_NODE_T * ast_html_doctype_node_init(token_T *tag_opening, array_T *children, token_T *tag_closing, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:136
struct AST_WHITESPACE_NODE_STRUCT AST_WHITESPACE_NODE_T
struct AST_ERB_BLOCK_NODE_STRUCT AST_ERB_BLOCK_NODE_T
AST_HTML_ATTRIBUTE_VALUE_NODE_T * ast_html_attribute_value_node_init(token_T *open_quote, array_T *children, token_T *close_quote, bool quoted, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:79
struct AST_ERB_IF_NODE_STRUCT AST_ERB_IF_NODE_T
struct AST_ERB_WHILE_NODE_STRUCT AST_ERB_WHILE_NODE_T
struct AST_ERB_END_NODE_STRUCT AST_ERB_END_NODE_T
AST_ERB_UNTIL_NODE_T * ast_erb_until_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, array_T *statements, struct AST_ERB_END_NODE_STRUCT *end_node, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:310
AST_HTML_ELEMENT_NODE_T * ast_html_element_node_init(struct AST_HTML_OPEN_TAG_NODE_STRUCT *open_tag, token_T *tag_name, array_T *body, struct AST_HTML_CLOSE_TAG_NODE_STRUCT *close_tag, bool is_void, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:65
struct AST_ERB_YIELD_NODE_STRUCT AST_ERB_YIELD_NODE_T
AST_HTML_TEXT_NODE_T * ast_html_text_node_init(const char *content, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:114
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:17
@ AST_ERB_UNTIL_NODE
Definition: ast_nodes.h:41
@ AST_ERB_IN_NODE
Definition: ast_nodes.h:48
@ AST_ERB_END_NODE
Definition: ast_nodes.h:33
@ AST_ERB_BLOCK_NODE
Definition: ast_nodes.h:36
@ AST_HTML_COMMENT_NODE
Definition: ast_nodes.h:27
@ AST_HTML_ATTRIBUTE_VALUE_NODE
Definition: ast_nodes.h:23
@ AST_CDATA_NODE
Definition: ast_nodes.h:30
@ AST_HTML_ELEMENT_NODE
Definition: ast_nodes.h:22
@ AST_ERB_WHEN_NODE
Definition: ast_nodes.h:37
@ AST_ERB_BEGIN_NODE
Definition: ast_nodes.h:45
@ AST_ERB_WHILE_NODE
Definition: ast_nodes.h:40
@ AST_DOCUMENT_NODE
Definition: ast_nodes.h:18
@ AST_ERB_IF_NODE
Definition: ast_nodes.h:35
@ AST_ERB_FOR_NODE
Definition: ast_nodes.h:42
@ AST_HTML_OPEN_TAG_NODE
Definition: ast_nodes.h:20
@ AST_HTML_DOCTYPE_NODE
Definition: ast_nodes.h:28
@ AST_HTML_ATTRIBUTE_NODE
Definition: ast_nodes.h:25
@ AST_HTML_TEXT_NODE
Definition: ast_nodes.h:26
@ AST_ERB_UNLESS_NODE
Definition: ast_nodes.h:46
@ AST_ERB_ENSURE_NODE
Definition: ast_nodes.h:44
@ AST_LITERAL_NODE
Definition: ast_nodes.h:19
@ AST_WHITESPACE_NODE
Definition: ast_nodes.h:31
@ AST_ERB_CASE_NODE
Definition: ast_nodes.h:38
@ AST_ERB_CONTENT_NODE
Definition: ast_nodes.h:32
@ AST_ERB_ELSE_NODE
Definition: ast_nodes.h:34
@ AST_ERB_CASE_MATCH_NODE
Definition: ast_nodes.h:39
@ AST_ERB_RESCUE_NODE
Definition: ast_nodes.h:43
@ AST_ERB_YIELD_NODE
Definition: ast_nodes.h:47
@ AST_XML_DECLARATION_NODE
Definition: ast_nodes.h:29
@ AST_HTML_ATTRIBUTE_NAME_NODE
Definition: ast_nodes.h:24
@ AST_HTML_CLOSE_TAG_NODE
Definition: ast_nodes.h:21
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, array_T *errors)
Definition: ast_nodes.c:102
AST_ERB_FOR_NODE_T * ast_erb_for_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, array_T *statements, struct AST_ERB_END_NODE_STRUCT *end_node, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:324
struct AST_ERB_CASE_NODE_STRUCT AST_ERB_CASE_NODE_T
struct AST_XML_DECLARATION_NODE_STRUCT AST_XML_DECLARATION_NODE_T
AST_CDATA_NODE_T * ast_cdata_node_init(token_T *tag_opening, array_T *children, token_T *tag_closing, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:160
const char * ast_node_type_to_string(AST_NODE_T *node)
Definition: ast_nodes.c:422
AST_HTML_COMMENT_NODE_T * ast_html_comment_node_init(token_T *comment_start, array_T *children, token_T *comment_end, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:124
struct AST_HTML_OPEN_TAG_NODE_STRUCT AST_HTML_OPEN_TAG_NODE_T
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, array_T *errors)
Definition: ast_nodes.c:397
AST_ERB_IN_NODE_T * ast_erb_in_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, array_T *statements, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:409
const char * ast_node_human_type(AST_NODE_T *node)
Definition: ast_nodes.c:460
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, array_T *errors)
Definition: ast_nodes.c:197
struct AST_HTML_CLOSE_TAG_NODE_STRUCT AST_HTML_CLOSE_TAG_NODE_T
AST_ERB_ENSURE_NODE_T * ast_erb_ensure_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, array_T *statements, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:352
struct AST_ERB_CONTENT_NODE_STRUCT AST_ERB_CONTENT_NODE_T
AST_ERB_UNLESS_NODE_T * ast_erb_unless_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, 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, array_T *errors)
Definition: ast_nodes.c:382
AST_ERB_CASE_MATCH_NODE_T * ast_erb_case_match_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, array_T *children, 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, array_T *errors)
Definition: ast_nodes.c:280
struct AST_HTML_ATTRIBUTE_NODE_STRUCT AST_HTML_ATTRIBUTE_NODE_T
AST_HTML_OPEN_TAG_NODE_T * ast_html_open_tag_node_init(token_T *tag_opening, token_T *tag_name, token_T *tag_closing, array_T *children, bool is_void, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:38
AST_ERB_BLOCK_NODE_T * ast_erb_block_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, array_T *body, struct AST_ERB_END_NODE_STRUCT *end_node, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:237
AST_WHITESPACE_NODE_T * ast_whitespace_node_init(token_T *value, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:172
AST_ERB_ELSE_NODE_T * ast_erb_else_node_init(token_T *tag_opening, token_T *content, token_T *tag_closing, array_T *statements, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:209
struct AST_LITERAL_NODE_STRUCT AST_LITERAL_NODE_T
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
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, array_T *errors)
Definition: ast_nodes.c:182
struct AST_ERB_ELSE_NODE_STRUCT AST_ERB_ELSE_NODE_T
struct AST_HTML_ELEMENT_NODE_STRUCT AST_HTML_ELEMENT_NODE_T
AST_HTML_ATTRIBUTE_NAME_NODE_T * ast_html_attribute_name_node_init(array_T *children, position_T *start_position, position_T *end_position, array_T *errors)
Definition: ast_nodes.c:92
Definition: analyzed_ruby.h:8
Definition: array.h:6
Definition: ast_nodes.h:141
token_T * tag_opening
Definition: ast_nodes.h:143
AST_NODE_T base
Definition: ast_nodes.h:142
token_T * tag_closing
Definition: ast_nodes.h:145
array_T * children
Definition: ast_nodes.h:144
Definition: ast_nodes.h:59
array_T * children
Definition: ast_nodes.h:61
AST_NODE_T base
Definition: ast_nodes.h:60
Definition: ast_nodes.h:271
struct AST_ERB_ELSE_NODE_STRUCT * else_clause
Definition: ast_nodes.h:278
token_T * tag_closing
Definition: ast_nodes.h:275
token_T * content
Definition: ast_nodes.h:274
struct AST_ERB_END_NODE_STRUCT * end_node
Definition: ast_nodes.h:280
array_T * statements
Definition: ast_nodes.h:276
AST_NODE_T base
Definition: ast_nodes.h:272
token_T * tag_opening
Definition: ast_nodes.h:273
struct AST_ERB_RESCUE_NODE_STRUCT * rescue_clause
Definition: ast_nodes.h:277
struct AST_ERB_ENSURE_NODE_STRUCT * ensure_clause
Definition: ast_nodes.h:279
Definition: ast_nodes.h:188
AST_NODE_T base
Definition: ast_nodes.h:189
token_T * tag_opening
Definition: ast_nodes.h:190
token_T * tag_closing
Definition: ast_nodes.h:192
array_T * body
Definition: ast_nodes.h:193
token_T * content
Definition: ast_nodes.h:191
struct AST_ERB_END_NODE_STRUCT * end_node
Definition: ast_nodes.h:194
Definition: ast_nodes.h:216
array_T * children
Definition: ast_nodes.h:221
struct AST_ERB_ELSE_NODE_STRUCT * else_clause
Definition: ast_nodes.h:223
token_T * tag_opening
Definition: ast_nodes.h:218
AST_NODE_T base
Definition: ast_nodes.h:217
array_T * conditions
Definition: ast_nodes.h:222
token_T * tag_closing
Definition: ast_nodes.h:220
token_T * content
Definition: ast_nodes.h:219
struct AST_ERB_END_NODE_STRUCT * end_node
Definition: ast_nodes.h:224
Definition: ast_nodes.h:205
struct AST_ERB_END_NODE_STRUCT * end_node
Definition: ast_nodes.h:213
token_T * content
Definition: ast_nodes.h:208
array_T * children
Definition: ast_nodes.h:210
AST_NODE_T base
Definition: ast_nodes.h:206
token_T * tag_closing
Definition: ast_nodes.h:209
array_T * conditions
Definition: ast_nodes.h:211
struct AST_ERB_ELSE_NODE_STRUCT * else_clause
Definition: ast_nodes.h:212
token_T * tag_opening
Definition: ast_nodes.h:207
Definition: ast_nodes.h:153
analyzed_ruby_T * analyzed_ruby
Definition: ast_nodes.h:158
AST_NODE_T base
Definition: ast_nodes.h:154
bool valid
Definition: ast_nodes.h:160
bool parsed
Definition: ast_nodes.h:159
token_T * tag_closing
Definition: ast_nodes.h:157
token_T * tag_opening
Definition: ast_nodes.h:155
token_T * content
Definition: ast_nodes.h:156
Definition: ast_nodes.h:170
token_T * tag_opening
Definition: ast_nodes.h:172
array_T * statements
Definition: ast_nodes.h:175
token_T * tag_closing
Definition: ast_nodes.h:174
AST_NODE_T base
Definition: ast_nodes.h:171
token_T * content
Definition: ast_nodes.h:173
Definition: ast_nodes.h:163
token_T * tag_closing
Definition: ast_nodes.h:167
token_T * tag_opening
Definition: ast_nodes.h:165
AST_NODE_T base
Definition: ast_nodes.h:164
token_T * content
Definition: ast_nodes.h:166
Definition: ast_nodes.h:263
token_T * tag_closing
Definition: ast_nodes.h:267
AST_NODE_T base
Definition: ast_nodes.h:264
token_T * tag_opening
Definition: ast_nodes.h:265
token_T * content
Definition: ast_nodes.h:266
array_T * statements
Definition: ast_nodes.h:268
Definition: ast_nodes.h:245
token_T * tag_opening
Definition: ast_nodes.h:247
token_T * tag_closing
Definition: ast_nodes.h:249
struct AST_ERB_END_NODE_STRUCT * end_node
Definition: ast_nodes.h:251
token_T * content
Definition: ast_nodes.h:248
AST_NODE_T base
Definition: ast_nodes.h:246
array_T * statements
Definition: ast_nodes.h:250
Definition: ast_nodes.h:178
array_T * statements
Definition: ast_nodes.h:183
AST_NODE_T base
Definition: ast_nodes.h:179
token_T * tag_opening
Definition: ast_nodes.h:180
struct AST_NODE_STRUCT * subsequent
Definition: ast_nodes.h:184
token_T * content
Definition: ast_nodes.h:181
token_T * tag_closing
Definition: ast_nodes.h:182
struct AST_ERB_END_NODE_STRUCT * end_node
Definition: ast_nodes.h:185
Definition: ast_nodes.h:300
token_T * tag_opening
Definition: ast_nodes.h:302
token_T * tag_closing
Definition: ast_nodes.h:304
AST_NODE_T base
Definition: ast_nodes.h:301
array_T * statements
Definition: ast_nodes.h:305
token_T * content
Definition: ast_nodes.h:303
Definition: ast_nodes.h:254
token_T * tag_closing
Definition: ast_nodes.h:258
AST_NODE_T base
Definition: ast_nodes.h:255
token_T * tag_opening
Definition: ast_nodes.h:256
token_T * content
Definition: ast_nodes.h:257
struct AST_ERB_RESCUE_NODE_STRUCT * subsequent
Definition: ast_nodes.h:260
array_T * statements
Definition: ast_nodes.h:259
Definition: ast_nodes.h:283
token_T * content
Definition: ast_nodes.h:286
AST_NODE_T base
Definition: ast_nodes.h:284
struct AST_ERB_END_NODE_STRUCT * end_node
Definition: ast_nodes.h:290
array_T * statements
Definition: ast_nodes.h:288
struct AST_ERB_ELSE_NODE_STRUCT * else_clause
Definition: ast_nodes.h:289
token_T * tag_closing
Definition: ast_nodes.h:287
token_T * tag_opening
Definition: ast_nodes.h:285
Definition: ast_nodes.h:236
AST_NODE_T base
Definition: ast_nodes.h:237
token_T * content
Definition: ast_nodes.h:239
array_T * statements
Definition: ast_nodes.h:241
token_T * tag_closing
Definition: ast_nodes.h:240
struct AST_ERB_END_NODE_STRUCT * end_node
Definition: ast_nodes.h:242
token_T * tag_opening
Definition: ast_nodes.h:238
Definition: ast_nodes.h:197
token_T * content
Definition: ast_nodes.h:200
token_T * tag_closing
Definition: ast_nodes.h:201
token_T * tag_opening
Definition: ast_nodes.h:199
array_T * statements
Definition: ast_nodes.h:202
AST_NODE_T base
Definition: ast_nodes.h:198
Definition: ast_nodes.h:227
token_T * content
Definition: ast_nodes.h:230
token_T * tag_opening
Definition: ast_nodes.h:229
struct AST_ERB_END_NODE_STRUCT * end_node
Definition: ast_nodes.h:233
array_T * statements
Definition: ast_nodes.h:232
AST_NODE_T base
Definition: ast_nodes.h:228
token_T * tag_closing
Definition: ast_nodes.h:231
Definition: ast_nodes.h:293
token_T * tag_closing
Definition: ast_nodes.h:297
token_T * content
Definition: ast_nodes.h:296
token_T * tag_opening
Definition: ast_nodes.h:295
AST_NODE_T base
Definition: ast_nodes.h:294
Definition: ast_nodes.h:103
array_T * children
Definition: ast_nodes.h:105
AST_NODE_T base
Definition: ast_nodes.h:104
Definition: ast_nodes.h:108
struct AST_HTML_ATTRIBUTE_NAME_NODE_STRUCT * name
Definition: ast_nodes.h:110
struct AST_HTML_ATTRIBUTE_VALUE_NODE_STRUCT * value
Definition: ast_nodes.h:112
AST_NODE_T base
Definition: ast_nodes.h:109
token_T * equals
Definition: ast_nodes.h:111
Definition: ast_nodes.h:95
token_T * close_quote
Definition: ast_nodes.h:99
array_T * children
Definition: ast_nodes.h:98
bool quoted
Definition: ast_nodes.h:100
AST_NODE_T base
Definition: ast_nodes.h:96
token_T * open_quote
Definition: ast_nodes.h:97
Definition: ast_nodes.h:78
token_T * tag_name
Definition: ast_nodes.h:81
AST_NODE_T base
Definition: ast_nodes.h:79
array_T * children
Definition: ast_nodes.h:82
token_T * tag_opening
Definition: ast_nodes.h:80
token_T * tag_closing
Definition: ast_nodes.h:83
Definition: ast_nodes.h:120
token_T * comment_start
Definition: ast_nodes.h:122
AST_NODE_T base
Definition: ast_nodes.h:121
array_T * children
Definition: ast_nodes.h:123
token_T * comment_end
Definition: ast_nodes.h:124
Definition: ast_nodes.h:127
token_T * tag_opening
Definition: ast_nodes.h:129
AST_NODE_T base
Definition: ast_nodes.h:128
token_T * tag_closing
Definition: ast_nodes.h:131
array_T * children
Definition: ast_nodes.h:130
Definition: ast_nodes.h:86
AST_NODE_T base
Definition: ast_nodes.h:87
array_T * body
Definition: ast_nodes.h:90
bool is_void
Definition: ast_nodes.h:92
token_T * tag_name
Definition: ast_nodes.h:89
struct AST_HTML_CLOSE_TAG_NODE_STRUCT * close_tag
Definition: ast_nodes.h:91
struct AST_HTML_OPEN_TAG_NODE_STRUCT * open_tag
Definition: ast_nodes.h:88
Definition: ast_nodes.h:69
array_T * children
Definition: ast_nodes.h:74
token_T * tag_name
Definition: ast_nodes.h:72
bool is_void
Definition: ast_nodes.h:75
token_T * tag_closing
Definition: ast_nodes.h:73
AST_NODE_T base
Definition: ast_nodes.h:70
token_T * tag_opening
Definition: ast_nodes.h:71
Definition: ast_nodes.h:115
const char * content
Definition: ast_nodes.h:117
AST_NODE_T base
Definition: ast_nodes.h:116
Definition: ast_nodes.h:64
const char * content
Definition: ast_nodes.h:66
AST_NODE_T base
Definition: ast_nodes.h:65
Definition: ast_nodes.h:51
ast_node_type_T type
Definition: ast_nodes.h:52
location_T * location
Definition: ast_nodes.h:53
array_T * errors
Definition: ast_nodes.h:55
Definition: ast_nodes.h:148
AST_NODE_T base
Definition: ast_nodes.h:149
token_T * value
Definition: ast_nodes.h:150
Definition: ast_nodes.h:134
array_T * children
Definition: ast_nodes.h:137
token_T * tag_opening
Definition: ast_nodes.h:136
token_T * tag_closing
Definition: ast_nodes.h:138
AST_NODE_T base
Definition: ast_nodes.h:135
Definition: location.h:8
Definition: position.h:6
Definition: token_struct.h:51