Ruby 4.1.0dev (2026-11-19 revision 1e71e987c206d5d77bf37e883aaa6262747b2458)
ast.h
1/*----------------------------------------------------------------------------*/
2/* This file is generated by the templates/template.rb script and should not */
3/* be modified manually. See */
4/* templates/include/prism/ast.h.erb */
5/* if you are looking to modify the */
6/* template */
7/*----------------------------------------------------------------------------*/
8
11#ifndef PRISM_AST_H
12#define PRISM_AST_H
13
16
17#include "prism/arena.h"
18#include "prism/constant_pool.h"
19#include "prism/integer.h"
20#include "prism/stringy.h"
21
22#include <stddef.h>
23#include <stdint.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
32typedef enum pm_token_type {
34 PM_TOKEN_EOF = 1,
35
37 PM_TOKEN_BRACE_RIGHT,
38
40 PM_TOKEN_COMMA,
41
43 PM_TOKEN_EMBEXPR_END,
44
46 PM_TOKEN_HEREDOC_END,
47
49 PM_TOKEN_KEYWORD_DO,
50
52 PM_TOKEN_KEYWORD_ELSE,
53
55 PM_TOKEN_KEYWORD_ELSIF,
56
58 PM_TOKEN_KEYWORD_END,
59
61 PM_TOKEN_KEYWORD_ENSURE,
62
64 PM_TOKEN_KEYWORD_IN,
65
67 PM_TOKEN_KEYWORD_RESCUE,
68
70 PM_TOKEN_KEYWORD_THEN,
71
73 PM_TOKEN_KEYWORD_WHEN,
74
76 PM_TOKEN_NEWLINE,
77
79 PM_TOKEN_NEWLINE_TERMINATOR,
80
82 PM_TOKEN_PARENTHESIS_RIGHT,
83
85 PM_TOKEN_PIPE,
86
88 PM_TOKEN_SEMICOLON,
89
91 PM_TOKEN_AMPERSAND,
92
94 PM_TOKEN_AMPERSAND_AMPERSAND,
95
97 PM_TOKEN_AMPERSAND_AMPERSAND_EQUAL,
98
100 PM_TOKEN_AMPERSAND_DOT,
101
103 PM_TOKEN_AMPERSAND_EQUAL,
104
106 PM_TOKEN_BACKTICK,
107
109 PM_TOKEN_BACK_REFERENCE,
110
112 PM_TOKEN_BANG,
113
115 PM_TOKEN_BANG_EQUAL,
116
118 PM_TOKEN_BANG_TILDE,
119
121 PM_TOKEN_BRACE_LEFT,
122
124 PM_TOKEN_BRACE_LEFT_ARGUMENT,
125
127 PM_TOKEN_BRACE_LEFT_HASH,
128
130 PM_TOKEN_BRACKET_LEFT,
131
133 PM_TOKEN_BRACKET_LEFT_ARRAY,
134
136 PM_TOKEN_BRACKET_LEFT_RIGHT,
137
139 PM_TOKEN_BRACKET_LEFT_RIGHT_EQUAL,
140
142 PM_TOKEN_BRACKET_RIGHT,
143
145 PM_TOKEN_CARET,
146
148 PM_TOKEN_CARET_EQUAL,
149
151 PM_TOKEN_CHARACTER_LITERAL,
152
154 PM_TOKEN_CLASS_VARIABLE,
155
157 PM_TOKEN_COLON,
158
160 PM_TOKEN_COLON_COLON,
161
163 PM_TOKEN_COMMENT,
164
166 PM_TOKEN_CONSTANT,
167
169 PM_TOKEN_DOT,
170
172 PM_TOKEN_DOT_DOT,
173
175 PM_TOKEN_DOT_DOT_DOT,
176
178 PM_TOKEN_EMBDOC_BEGIN,
179
181 PM_TOKEN_EMBDOC_END,
182
184 PM_TOKEN_EMBDOC_LINE,
185
187 PM_TOKEN_EMBEXPR_BEGIN,
188
190 PM_TOKEN_EMBVAR,
191
193 PM_TOKEN_EQUAL,
194
196 PM_TOKEN_EQUAL_EQUAL,
197
199 PM_TOKEN_EQUAL_EQUAL_EQUAL,
200
202 PM_TOKEN_EQUAL_GREATER,
203
205 PM_TOKEN_EQUAL_TILDE,
206
208 PM_TOKEN_FLOAT,
209
211 PM_TOKEN_FLOAT_IMAGINARY,
212
214 PM_TOKEN_FLOAT_RATIONAL,
215
217 PM_TOKEN_FLOAT_RATIONAL_IMAGINARY,
218
220 PM_TOKEN_GLOBAL_VARIABLE,
221
223 PM_TOKEN_GREATER,
224
226 PM_TOKEN_GREATER_EQUAL,
227
229 PM_TOKEN_GREATER_GREATER,
230
232 PM_TOKEN_GREATER_GREATER_EQUAL,
233
235 PM_TOKEN_HEREDOC_START,
236
238 PM_TOKEN_IDENTIFIER,
239
241 PM_TOKEN_IGNORED_NEWLINE,
242
244 PM_TOKEN_INSTANCE_VARIABLE,
245
247 PM_TOKEN_INTEGER,
248
250 PM_TOKEN_INTEGER_IMAGINARY,
251
253 PM_TOKEN_INTEGER_RATIONAL,
254
256 PM_TOKEN_INTEGER_RATIONAL_IMAGINARY,
257
259 PM_TOKEN_KEYWORD_ALIAS,
260
262 PM_TOKEN_KEYWORD_AND,
263
265 PM_TOKEN_KEYWORD_BEGIN,
266
268 PM_TOKEN_KEYWORD_BEGIN_UPCASE,
269
271 PM_TOKEN_KEYWORD_BREAK,
272
274 PM_TOKEN_KEYWORD_CASE,
275
277 PM_TOKEN_KEYWORD_CLASS,
278
280 PM_TOKEN_KEYWORD_DEF,
281
283 PM_TOKEN_KEYWORD_DEFINED,
284
286 PM_TOKEN_KEYWORD_DO_BLOCK,
287
289 PM_TOKEN_KEYWORD_DO_LAMBDA,
290
292 PM_TOKEN_KEYWORD_DO_LOOP,
293
295 PM_TOKEN_KEYWORD_END_UPCASE,
296
298 PM_TOKEN_KEYWORD_FALSE,
299
301 PM_TOKEN_KEYWORD_FOR,
302
304 PM_TOKEN_KEYWORD_IF,
305
307 PM_TOKEN_KEYWORD_IF_MODIFIER,
308
310 PM_TOKEN_KEYWORD_MODULE,
311
313 PM_TOKEN_KEYWORD_NEXT,
314
316 PM_TOKEN_KEYWORD_NIL,
317
319 PM_TOKEN_KEYWORD_NOT,
320
322 PM_TOKEN_KEYWORD_OR,
323
325 PM_TOKEN_KEYWORD_REDO,
326
328 PM_TOKEN_KEYWORD_RESCUE_MODIFIER,
329
331 PM_TOKEN_KEYWORD_RETRY,
332
334 PM_TOKEN_KEYWORD_RETURN,
335
337 PM_TOKEN_KEYWORD_SELF,
338
340 PM_TOKEN_KEYWORD_SUPER,
341
343 PM_TOKEN_KEYWORD_TRUE,
344
346 PM_TOKEN_KEYWORD_UNDEF,
347
349 PM_TOKEN_KEYWORD_UNLESS,
350
352 PM_TOKEN_KEYWORD_UNLESS_MODIFIER,
353
355 PM_TOKEN_KEYWORD_UNTIL,
356
358 PM_TOKEN_KEYWORD_UNTIL_MODIFIER,
359
361 PM_TOKEN_KEYWORD_WHILE,
362
364 PM_TOKEN_KEYWORD_WHILE_MODIFIER,
365
367 PM_TOKEN_KEYWORD_YIELD,
368
370 PM_TOKEN_KEYWORD___ENCODING__,
371
373 PM_TOKEN_KEYWORD___FILE__,
374
376 PM_TOKEN_KEYWORD___LINE__,
377
379 PM_TOKEN_LABEL,
380
382 PM_TOKEN_LABEL_END,
383
385 PM_TOKEN_LAMBDA_BEGIN,
386
388 PM_TOKEN_LESS,
389
391 PM_TOKEN_LESS_EQUAL,
392
394 PM_TOKEN_LESS_EQUAL_GREATER,
395
397 PM_TOKEN_LESS_LESS,
398
400 PM_TOKEN_LESS_LESS_EQUAL,
401
403 PM_TOKEN_METHOD_NAME,
404
406 PM_TOKEN_MINUS,
407
409 PM_TOKEN_MINUS_EQUAL,
410
412 PM_TOKEN_MINUS_GREATER,
413
415 PM_TOKEN_NUMBERED_REFERENCE,
416
418 PM_TOKEN_PARENTHESIS_LEFT,
419
421 PM_TOKEN_PARENTHESIS_LEFT_GROUPING,
422
424 PM_TOKEN_PARENTHESIS_LEFT_PARENTHESES,
425
427 PM_TOKEN_PERCENT,
428
430 PM_TOKEN_PERCENT_EQUAL,
431
433 PM_TOKEN_PERCENT_LOWER_I,
434
436 PM_TOKEN_PERCENT_LOWER_W,
437
439 PM_TOKEN_PERCENT_LOWER_X,
440
442 PM_TOKEN_PERCENT_UPPER_I,
443
445 PM_TOKEN_PERCENT_UPPER_W,
446
448 PM_TOKEN_PIPE_EQUAL,
449
451 PM_TOKEN_PIPE_PIPE,
452
454 PM_TOKEN_PIPE_PIPE_EQUAL,
455
457 PM_TOKEN_PLUS,
458
460 PM_TOKEN_PLUS_EQUAL,
461
463 PM_TOKEN_QUESTION_MARK,
464
466 PM_TOKEN_REGEXP_BEGIN,
467
469 PM_TOKEN_REGEXP_END,
470
472 PM_TOKEN_SLASH,
473
475 PM_TOKEN_SLASH_EQUAL,
476
478 PM_TOKEN_STAR,
479
481 PM_TOKEN_STAR_EQUAL,
482
484 PM_TOKEN_STAR_STAR,
485
487 PM_TOKEN_STAR_STAR_EQUAL,
488
490 PM_TOKEN_STRING_BEGIN,
491
493 PM_TOKEN_STRING_CONTENT,
494
496 PM_TOKEN_STRING_END,
497
499 PM_TOKEN_SYMBOL_BEGIN,
500
502 PM_TOKEN_TILDE,
503
505 PM_TOKEN_UAMPERSAND,
506
508 PM_TOKEN_UCOLON_COLON,
509
511 PM_TOKEN_UDOT_DOT,
512
514 PM_TOKEN_UDOT_DOT_DOT,
515
517 PM_TOKEN_UMINUS,
518
520 PM_TOKEN_UMINUS_NUM,
521
523 PM_TOKEN_UPLUS,
524
526 PM_TOKEN_USTAR,
527
529 PM_TOKEN_USTAR_STAR,
530
532 PM_TOKEN_WORDS_SEP,
533
535 PM_TOKEN_WORDS_SEP_IMPLICIT,
536
538 PM_TOKEN_XSTRING_BEGIN,
539
541 PM_TOKEN___END__,
542
544 PM_TOKEN_MAXIMUM,
545} pm_token_type_t;
546
551typedef struct {
553 pm_token_type_t type;
554
556 const uint8_t *start;
557
559 const uint8_t *end;
560} pm_token_t;
561
569PRISM_EXPORTED_FUNCTION const char * pm_token_type(pm_token_type_t token_type);
570
579typedef struct {
581 uint32_t start;
582
584 uint32_t length;
586
587struct pm_node;
588
592typedef struct pm_node_list {
598 uint32_t size;
599
601 struct pm_node **nodes;
602} pm_node_list_t;
603
607enum pm_node_type {
609 PM_ALIAS_GLOBAL_VARIABLE_NODE = 1,
610
612 PM_ALIAS_METHOD_NODE = 2,
613
615 PM_ALTERNATION_PATTERN_NODE = 3,
616
618 PM_AND_NODE = 4,
619
621 PM_ARGUMENTS_NODE = 5,
622
624 PM_ARRAY_NODE = 6,
625
627 PM_ARRAY_PATTERN_NODE = 7,
628
630 PM_ASSOC_NODE = 8,
631
633 PM_ASSOC_SPLAT_NODE = 9,
634
636 PM_BACK_REFERENCE_READ_NODE = 10,
637
639 PM_BEGIN_NODE = 11,
640
642 PM_BLOCK_ARGUMENT_NODE = 12,
643
645 PM_BLOCK_LOCAL_VARIABLE_NODE = 13,
646
648 PM_BLOCK_NODE = 14,
649
651 PM_BLOCK_PARAMETER_NODE = 15,
652
654 PM_BLOCK_PARAMETERS_NODE = 16,
655
657 PM_BREAK_NODE = 17,
658
660 PM_CALL_AND_WRITE_NODE = 18,
661
663 PM_CALL_NODE = 19,
664
666 PM_CALL_OPERATOR_WRITE_NODE = 20,
667
669 PM_CALL_OR_WRITE_NODE = 21,
670
672 PM_CALL_TARGET_NODE = 22,
673
675 PM_CAPTURE_PATTERN_NODE = 23,
676
678 PM_CASE_MATCH_NODE = 24,
679
681 PM_CASE_NODE = 25,
682
684 PM_CLASS_NODE = 26,
685
687 PM_CLASS_VARIABLE_AND_WRITE_NODE = 27,
688
690 PM_CLASS_VARIABLE_OPERATOR_WRITE_NODE = 28,
691
693 PM_CLASS_VARIABLE_OR_WRITE_NODE = 29,
694
696 PM_CLASS_VARIABLE_READ_NODE = 30,
697
699 PM_CLASS_VARIABLE_TARGET_NODE = 31,
700
702 PM_CLASS_VARIABLE_WRITE_NODE = 32,
703
705 PM_CONSTANT_AND_WRITE_NODE = 33,
706
708 PM_CONSTANT_OPERATOR_WRITE_NODE = 34,
709
711 PM_CONSTANT_OR_WRITE_NODE = 35,
712
714 PM_CONSTANT_PATH_AND_WRITE_NODE = 36,
715
717 PM_CONSTANT_PATH_NODE = 37,
718
720 PM_CONSTANT_PATH_OPERATOR_WRITE_NODE = 38,
721
723 PM_CONSTANT_PATH_OR_WRITE_NODE = 39,
724
726 PM_CONSTANT_PATH_TARGET_NODE = 40,
727
729 PM_CONSTANT_PATH_WRITE_NODE = 41,
730
732 PM_CONSTANT_READ_NODE = 42,
733
735 PM_CONSTANT_TARGET_NODE = 43,
736
738 PM_CONSTANT_WRITE_NODE = 44,
739
741 PM_DEF_NODE = 45,
742
744 PM_DEFINED_NODE = 46,
745
747 PM_ELSE_NODE = 47,
748
750 PM_EMBEDDED_STATEMENTS_NODE = 48,
751
753 PM_EMBEDDED_VARIABLE_NODE = 49,
754
756 PM_ENSURE_NODE = 50,
757
759 PM_ERROR_RECOVERY_NODE = 51,
760
762 PM_FALSE_NODE = 52,
763
765 PM_FIND_PATTERN_NODE = 53,
766
768 PM_FLIP_FLOP_NODE = 54,
769
771 PM_FLOAT_NODE = 55,
772
774 PM_FOR_NODE = 56,
775
777 PM_FORWARDING_ARGUMENTS_NODE = 57,
778
780 PM_FORWARDING_PARAMETER_NODE = 58,
781
783 PM_FORWARDING_SUPER_NODE = 59,
784
786 PM_GLOBAL_VARIABLE_AND_WRITE_NODE = 60,
787
789 PM_GLOBAL_VARIABLE_OPERATOR_WRITE_NODE = 61,
790
792 PM_GLOBAL_VARIABLE_OR_WRITE_NODE = 62,
793
795 PM_GLOBAL_VARIABLE_READ_NODE = 63,
796
798 PM_GLOBAL_VARIABLE_TARGET_NODE = 64,
799
801 PM_GLOBAL_VARIABLE_WRITE_NODE = 65,
802
804 PM_HASH_NODE = 66,
805
807 PM_HASH_PATTERN_NODE = 67,
808
810 PM_IF_NODE = 68,
811
813 PM_IMAGINARY_NODE = 69,
814
816 PM_IMPLICIT_NODE = 70,
817
819 PM_IMPLICIT_REST_NODE = 71,
820
822 PM_IN_NODE = 72,
823
825 PM_INDEX_AND_WRITE_NODE = 73,
826
828 PM_INDEX_OPERATOR_WRITE_NODE = 74,
829
831 PM_INDEX_OR_WRITE_NODE = 75,
832
834 PM_INDEX_TARGET_NODE = 76,
835
837 PM_INSTANCE_VARIABLE_AND_WRITE_NODE = 77,
838
840 PM_INSTANCE_VARIABLE_OPERATOR_WRITE_NODE = 78,
841
843 PM_INSTANCE_VARIABLE_OR_WRITE_NODE = 79,
844
846 PM_INSTANCE_VARIABLE_READ_NODE = 80,
847
849 PM_INSTANCE_VARIABLE_TARGET_NODE = 81,
850
852 PM_INSTANCE_VARIABLE_WRITE_NODE = 82,
853
855 PM_INTEGER_NODE = 83,
856
858 PM_INTERPOLATED_MATCH_LAST_LINE_NODE = 84,
859
861 PM_INTERPOLATED_REGULAR_EXPRESSION_NODE = 85,
862
864 PM_INTERPOLATED_STRING_NODE = 86,
865
867 PM_INTERPOLATED_SYMBOL_NODE = 87,
868
870 PM_INTERPOLATED_X_STRING_NODE = 88,
871
873 PM_IT_LOCAL_VARIABLE_READ_NODE = 89,
874
876 PM_IT_PARAMETERS_NODE = 90,
877
879 PM_KEYWORD_HASH_NODE = 91,
880
882 PM_KEYWORD_REST_PARAMETER_NODE = 92,
883
885 PM_LAMBDA_NODE = 93,
886
888 PM_LOCAL_VARIABLE_AND_WRITE_NODE = 94,
889
891 PM_LOCAL_VARIABLE_OPERATOR_WRITE_NODE = 95,
892
894 PM_LOCAL_VARIABLE_OR_WRITE_NODE = 96,
895
897 PM_LOCAL_VARIABLE_READ_NODE = 97,
898
900 PM_LOCAL_VARIABLE_TARGET_NODE = 98,
901
903 PM_LOCAL_VARIABLE_WRITE_NODE = 99,
904
906 PM_MATCH_LAST_LINE_NODE = 100,
907
909 PM_MATCH_PREDICATE_NODE = 101,
910
912 PM_MATCH_REQUIRED_NODE = 102,
913
915 PM_MATCH_WRITE_NODE = 103,
916
918 PM_MODULE_NODE = 104,
919
921 PM_MULTI_TARGET_NODE = 105,
922
924 PM_MULTI_WRITE_NODE = 106,
925
927 PM_NEXT_NODE = 107,
928
930 PM_NIL_NODE = 108,
931
933 PM_NO_BLOCK_PARAMETER_NODE = 109,
934
936 PM_NO_KEYWORDS_PARAMETER_NODE = 110,
937
939 PM_NUMBERED_PARAMETERS_NODE = 111,
940
942 PM_NUMBERED_REFERENCE_READ_NODE = 112,
943
945 PM_OPTIONAL_KEYWORD_PARAMETER_NODE = 113,
946
948 PM_OPTIONAL_PARAMETER_NODE = 114,
949
951 PM_OR_NODE = 115,
952
954 PM_PARAMETERS_NODE = 116,
955
957 PM_PARENTHESES_NODE = 117,
958
960 PM_PINNED_EXPRESSION_NODE = 118,
961
963 PM_PINNED_VARIABLE_NODE = 119,
964
966 PM_POST_EXECUTION_NODE = 120,
967
969 PM_PRE_EXECUTION_NODE = 121,
970
972 PM_PROGRAM_NODE = 122,
973
975 PM_RANGE_NODE = 123,
976
978 PM_RATIONAL_NODE = 124,
979
981 PM_REDO_NODE = 125,
982
984 PM_REGULAR_EXPRESSION_NODE = 126,
985
987 PM_REQUIRED_KEYWORD_PARAMETER_NODE = 127,
988
990 PM_REQUIRED_PARAMETER_NODE = 128,
991
993 PM_RESCUE_MODIFIER_NODE = 129,
994
996 PM_RESCUE_NODE = 130,
997
999 PM_REST_PARAMETER_NODE = 131,
1000
1002 PM_RETRY_NODE = 132,
1003
1005 PM_RETURN_NODE = 133,
1006
1008 PM_SELF_NODE = 134,
1009
1011 PM_SHAREABLE_CONSTANT_NODE = 135,
1012
1014 PM_SINGLETON_CLASS_NODE = 136,
1015
1017 PM_SOURCE_ENCODING_NODE = 137,
1018
1020 PM_SOURCE_FILE_NODE = 138,
1021
1023 PM_SOURCE_LINE_NODE = 139,
1024
1026 PM_SPLAT_NODE = 140,
1027
1029 PM_STATEMENTS_NODE = 141,
1030
1032 PM_STRING_NODE = 142,
1033
1035 PM_SUPER_NODE = 143,
1036
1038 PM_SYMBOL_NODE = 144,
1039
1041 PM_TRUE_NODE = 145,
1042
1044 PM_UNDEF_NODE = 146,
1045
1047 PM_UNLESS_NODE = 147,
1048
1050 PM_UNTIL_NODE = 148,
1051
1053 PM_WHEN_NODE = 149,
1054
1056 PM_WHILE_NODE = 150,
1057
1059 PM_X_STRING_NODE = 151,
1060
1062 PM_YIELD_NODE = 152,
1063
1065 PM_SCOPE_NODE
1066};
1067
1072typedef uint16_t pm_node_type_t;
1073
1078typedef uint16_t pm_node_flags_t;
1079
1084static const pm_node_flags_t PM_NODE_FLAG_NEWLINE = 0x1;
1085static const pm_node_flags_t PM_NODE_FLAG_STATIC_LITERAL = 0x2;
1086
1091typedef struct pm_node {
1096 pm_node_type_t type;
1097
1102 pm_node_flags_t flags;
1103
1110 uint32_t node_id;
1111
1117} pm_node_t;
1118
1122#define PM_NODE_UPCAST(node_) ((pm_node_t *) (node_))
1123
1128#define PM_NODE_TYPE(node_) ((enum pm_node_type) (node_)->type)
1129
1133#define PM_NODE_TYPE_P(node_, type_) (PM_NODE_TYPE(node_) == (type_))
1134
1138#define PM_NODE_FLAGS(node_) (PM_NODE_UPCAST(node_)->flags)
1139
1143#define PM_NODE_FLAG_P(node_, flag_) ((PM_NODE_FLAGS(node_) & (flag_)) != 0)
1144
1148#ifdef _MSC_VER
1149#define PM_NODE_ALIGNAS __declspec(align(8))
1150#else
1151#define PM_NODE_ALIGNAS PRISM_ALIGNAS(PRISM_ALIGNOF(void *))
1152#endif
1153
1168 pm_node_t base;
1169
1178 PM_NODE_ALIGNAS struct pm_node *new_name;
1179
1188 PM_NODE_ALIGNAS struct pm_node *old_name;
1189
1199} pm_alias_global_variable_node_t;
1200
1213typedef struct pm_alias_method_node {
1215 pm_node_t base;
1216
1231 PM_NODE_ALIGNAS struct pm_node *new_name;
1232
1247 PM_NODE_ALIGNAS struct pm_node *old_name;
1248
1258} pm_alias_method_node_t;
1259
1274 pm_node_t base;
1275
1284 PM_NODE_ALIGNAS struct pm_node *left;
1285
1294 PM_NODE_ALIGNAS struct pm_node *right;
1295
1305} pm_alternation_pattern_node_t;
1306
1319typedef struct pm_and_node {
1321 pm_node_t base;
1322
1334 PM_NODE_ALIGNAS struct pm_node *left;
1335
1347 PM_NODE_ALIGNAS struct pm_node *right;
1348
1358} pm_and_node_t;
1359
1379typedef struct pm_arguments_node {
1381 pm_node_t base;
1382
1392} pm_arguments_node_t;
1393
1409typedef struct pm_array_node {
1411 pm_node_t base;
1412
1419
1431
1443} pm_array_node_t;
1444
1471 pm_node_t base;
1472
1487 PM_NODE_ALIGNAS struct pm_node *constant;
1488
1498
1507 PM_NODE_ALIGNAS struct pm_node *rest;
1508
1518
1528
1538} pm_array_pattern_node_t;
1539
1552typedef struct pm_assoc_node {
1554 pm_node_t base;
1555
1570 PM_NODE_ALIGNAS struct pm_node *key;
1571
1583 PM_NODE_ALIGNAS struct pm_node *value;
1584
1594} pm_assoc_node_t;
1595
1608typedef struct pm_assoc_splat_node {
1610 pm_node_t base;
1611
1620 PM_NODE_ALIGNAS struct pm_node *value;
1621
1631} pm_assoc_splat_node_t;
1632
1647 pm_node_t base;
1648
1659} pm_back_reference_read_node_t;
1660
1675typedef struct pm_begin_node {
1677 pm_node_t base;
1678
1688
1697 PM_NODE_ALIGNAS struct pm_statements_node *statements;
1698
1707 PM_NODE_ALIGNAS struct pm_rescue_node *rescue_clause;
1708
1717 PM_NODE_ALIGNAS struct pm_else_node *else_clause;
1718
1727 PM_NODE_ALIGNAS struct pm_ensure_node *ensure_clause;
1728
1738} pm_begin_node_t;
1739
1754 pm_node_t base;
1755
1764 PM_NODE_ALIGNAS struct pm_node *expression;
1765
1775} pm_block_argument_node_t;
1776
1794 pm_node_t base;
1795
1805} pm_block_local_variable_node_t;
1806
1819typedef struct pm_block_node {
1821 pm_node_t base;
1822
1832
1845 PM_NODE_ALIGNAS struct pm_node *parameters;
1846
1855 PM_NODE_ALIGNAS struct pm_node *body;
1856
1866
1876} pm_block_node_t;
1877
1896 pm_node_t base;
1897
1908
1918
1929} pm_block_parameter_node_t;
1930
1949 pm_node_t base;
1950
1963 PM_NODE_ALIGNAS struct pm_parameters_node *parameters;
1964
1978
1992
2006} pm_block_parameters_node_t;
2007
2020typedef struct pm_break_node {
2022 pm_node_t base;
2023
2032 PM_NODE_ALIGNAS struct pm_arguments_node *arguments;
2033
2043} pm_break_node_t;
2044
2065 pm_node_t base;
2066
2075 PM_NODE_ALIGNAS struct pm_node *receiver;
2076
2086
2096
2106
2116
2126
2135 PM_NODE_ALIGNAS struct pm_node *value;
2136} pm_call_and_write_node_t;
2137
2171typedef struct pm_call_node {
2173 pm_node_t base;
2174
2189 PM_NODE_ALIGNAS struct pm_node *receiver;
2190
2203
2213
2223
2233
2242 PM_NODE_ALIGNAS struct pm_arguments_node *arguments;
2243
2253
2266
2275 PM_NODE_ALIGNAS struct pm_node *block;
2276} pm_call_node_t;
2277
2380
2401 pm_node_t base;
2402
2411 PM_NODE_ALIGNAS struct pm_node *receiver;
2412
2422
2432
2442
2452
2462
2471 PM_NODE_ALIGNAS struct pm_node *value;
2472} pm_call_or_write_node_t;
2473
2500typedef struct pm_call_target_node {
2502 pm_node_t base;
2503
2512 PM_NODE_ALIGNAS struct pm_node *receiver;
2513
2523
2533
2543} pm_call_target_node_t;
2544
2559 pm_node_t base;
2560
2569 PM_NODE_ALIGNAS struct pm_node *value;
2570
2579 PM_NODE_ALIGNAS struct pm_local_variable_target_node *target;
2580
2590} pm_capture_pattern_node_t;
2591
2606typedef struct pm_case_match_node {
2608 pm_node_t base;
2609
2618 PM_NODE_ALIGNAS struct pm_node *predicate;
2619
2629
2638 PM_NODE_ALIGNAS struct pm_else_node *else_clause;
2639
2649
2659} pm_case_match_node_t;
2660
2675typedef struct pm_case_node {
2677 pm_node_t base;
2678
2687 PM_NODE_ALIGNAS struct pm_node *predicate;
2688
2698
2707 PM_NODE_ALIGNAS struct pm_else_node *else_clause;
2708
2718
2728} pm_case_node_t;
2729
2742typedef struct pm_class_node {
2744 pm_node_t base;
2745
2750
2760
2764 PM_NODE_ALIGNAS struct pm_node *constant_path;
2765
2775
2784 PM_NODE_ALIGNAS struct pm_node *superclass;
2785
2794 PM_NODE_ALIGNAS struct pm_node *body;
2795
2805
2814} pm_class_node_t;
2815
2830 pm_node_t base;
2831
2841
2851
2861
2870 PM_NODE_ALIGNAS struct pm_node *value;
2871} pm_class_variable_and_write_node_t;
2872
2887 pm_node_t base;
2888
2893
2898
2903
2907 PM_NODE_ALIGNAS struct pm_node *value;
2908
2913} pm_class_variable_operator_write_node_t;
2914
2929 pm_node_t base;
2930
2935
2940
2945
2949 PM_NODE_ALIGNAS struct pm_node *value;
2950} pm_class_variable_or_write_node_t;
2951
2966 pm_node_t base;
2967
2978} pm_class_variable_read_node_t;
2979
2994 pm_node_t base;
2995
3000} pm_class_variable_target_node_t;
3001
3016 pm_node_t base;
3017
3028
3038
3050 PM_NODE_ALIGNAS struct pm_node *value;
3051
3061} pm_class_variable_write_node_t;
3062
3077 pm_node_t base;
3078
3083
3088
3093
3097 PM_NODE_ALIGNAS struct pm_node *value;
3098} pm_constant_and_write_node_t;
3099
3114 pm_node_t base;
3115
3120
3125
3130
3134 PM_NODE_ALIGNAS struct pm_node *value;
3135
3140} pm_constant_operator_write_node_t;
3141
3156 pm_node_t base;
3157
3162
3167
3172
3176 PM_NODE_ALIGNAS struct pm_node *value;
3177} pm_constant_or_write_node_t;
3178
3193 pm_node_t base;
3194
3198 PM_NODE_ALIGNAS struct pm_constant_path_node *target;
3199
3204
3208 PM_NODE_ALIGNAS struct pm_node *value;
3209} pm_constant_path_and_write_node_t;
3210
3225 pm_node_t base;
3226
3241 PM_NODE_ALIGNAS struct pm_node *parent;
3242
3249
3262
3275} pm_constant_path_node_t;
3276
3291 pm_node_t base;
3292
3296 PM_NODE_ALIGNAS struct pm_constant_path_node *target;
3297
3302
3306 PM_NODE_ALIGNAS struct pm_node *value;
3307
3312} pm_constant_path_operator_write_node_t;
3313
3328 pm_node_t base;
3329
3333 PM_NODE_ALIGNAS struct pm_constant_path_node *target;
3334
3339
3343 PM_NODE_ALIGNAS struct pm_node *value;
3344} pm_constant_path_or_write_node_t;
3345
3360 pm_node_t base;
3361
3365 PM_NODE_ALIGNAS struct pm_node *parent;
3366
3371
3376
3381} pm_constant_path_target_node_t;
3382
3403 pm_node_t base;
3404
3416 PM_NODE_ALIGNAS struct pm_constant_path_node *target;
3417
3427
3436 PM_NODE_ALIGNAS struct pm_node *value;
3437} pm_constant_path_write_node_t;
3438
3453 pm_node_t base;
3454
3465} pm_constant_read_node_t;
3466
3481 pm_node_t base;
3482
3487} pm_constant_target_node_t;
3488
3503 pm_node_t base;
3504
3515
3525
3537 PM_NODE_ALIGNAS struct pm_node *value;
3538
3548} pm_constant_write_node_t;
3549
3627
3640typedef struct pm_defined_node {
3642 pm_node_t base;
3643
3648
3652 PM_NODE_ALIGNAS struct pm_node *value;
3653
3658
3663} pm_defined_node_t;
3664
3677typedef struct pm_else_node {
3679 pm_node_t base;
3680
3685
3689 PM_NODE_ALIGNAS struct pm_statements_node *statements;
3690
3695} pm_else_node_t;
3696
3711 pm_node_t base;
3712
3717
3721 PM_NODE_ALIGNAS struct pm_statements_node *statements;
3722
3727} pm_embedded_statements_node_t;
3728
3743 pm_node_t base;
3744
3749
3753 PM_NODE_ALIGNAS struct pm_node *variable;
3754} pm_embedded_variable_node_t;
3755
3772typedef struct pm_ensure_node {
3774 pm_node_t base;
3775
3780
3784 PM_NODE_ALIGNAS struct pm_statements_node *statements;
3785
3790} pm_ensure_node_t;
3791
3803 pm_node_t base;
3804
3810 PM_NODE_ALIGNAS struct pm_node *unexpected;
3811} pm_error_recovery_node_t;
3812
3825typedef struct pm_false_node {
3827 pm_node_t base;
3828} pm_false_node_t;
3829
3851typedef struct pm_find_pattern_node {
3853 pm_node_t base;
3854
3863 PM_NODE_ALIGNAS struct pm_node *constant;
3864
3876 PM_NODE_ALIGNAS struct pm_splat_node *left;
3877
3890
3902 PM_NODE_ALIGNAS struct pm_splat_node *right;
3903
3916
3929} pm_find_pattern_node_t;
3930
3946typedef struct pm_flip_flop_node {
3948 pm_node_t base;
3949
3953 PM_NODE_ALIGNAS struct pm_node *left;
3954
3958 PM_NODE_ALIGNAS struct pm_node *right;
3959
3964} pm_flip_flop_node_t;
3965
3978typedef struct pm_float_node {
3980 pm_node_t base;
3981
3987 double value;
3988} pm_float_node_t;
3989
4002typedef struct pm_for_node {
4004 pm_node_t base;
4005
4014 PM_NODE_ALIGNAS struct pm_node *index;
4015
4024 PM_NODE_ALIGNAS struct pm_node *collection;
4025
4036 PM_NODE_ALIGNAS struct pm_statements_node *statements;
4037
4047
4057
4067
4077} pm_for_node_t;
4078
4095 pm_node_t base;
4096} pm_forwarding_arguments_node_t;
4097
4113 pm_node_t base;
4114} pm_forwarding_parameter_node_t;
4115
4135 pm_node_t base;
4136
4147
4153 PM_NODE_ALIGNAS struct pm_block_node *block;
4154} pm_forwarding_super_node_t;
4155
4170 pm_node_t base;
4171
4176
4181
4186
4190 PM_NODE_ALIGNAS struct pm_node *value;
4191} pm_global_variable_and_write_node_t;
4192
4207 pm_node_t base;
4208
4213
4218
4223
4227 PM_NODE_ALIGNAS struct pm_node *value;
4228
4233} pm_global_variable_operator_write_node_t;
4234
4249 pm_node_t base;
4250
4255
4260
4265
4269 PM_NODE_ALIGNAS struct pm_node *value;
4270} pm_global_variable_or_write_node_t;
4271
4286 pm_node_t base;
4287
4298} pm_global_variable_read_node_t;
4299
4314 pm_node_t base;
4315
4320} pm_global_variable_target_node_t;
4321
4336 pm_node_t base;
4337
4348
4358
4370 PM_NODE_ALIGNAS struct pm_node *value;
4371
4381} pm_global_variable_write_node_t;
4382
4395typedef struct pm_hash_node {
4397 pm_node_t base;
4398
4408
4421
4431} pm_hash_node_t;
4432
4454typedef struct pm_hash_pattern_node {
4456 pm_node_t base;
4457
4469 PM_NODE_ALIGNAS struct pm_node *constant;
4470
4480
4495 PM_NODE_ALIGNAS struct pm_node *rest;
4496
4509
4522} pm_hash_pattern_node_t;
4523
4542typedef struct pm_if_node {
4544 pm_node_t base;
4545
4557
4574 PM_NODE_ALIGNAS struct pm_node *predicate;
4575
4588
4601 PM_NODE_ALIGNAS struct pm_statements_node *statements;
4602
4620 PM_NODE_ALIGNAS struct pm_node *subsequent;
4621
4633} pm_if_node_t;
4634
4647typedef struct pm_imaginary_node {
4649 pm_node_t base;
4650
4654 PM_NODE_ALIGNAS struct pm_node *numeric;
4655} pm_imaginary_node_t;
4656
4675typedef struct pm_implicit_node {
4677 pm_node_t base;
4678
4682 PM_NODE_ALIGNAS struct pm_node *value;
4683} pm_implicit_node_t;
4684
4708 pm_node_t base;
4709} pm_implicit_rest_node_t;
4710
4723typedef struct pm_in_node {
4725 pm_node_t base;
4726
4730 PM_NODE_ALIGNAS struct pm_node *pattern;
4731
4735 PM_NODE_ALIGNAS struct pm_statements_node *statements;
4736
4741
4746} pm_in_node_t;
4747
4768 pm_node_t base;
4769
4773 PM_NODE_ALIGNAS struct pm_node *receiver;
4774
4779
4784
4788 PM_NODE_ALIGNAS struct pm_arguments_node *arguments;
4789
4794
4798 PM_NODE_ALIGNAS struct pm_block_argument_node *block;
4799
4804
4808 PM_NODE_ALIGNAS struct pm_node *value;
4809} pm_index_and_write_node_t;
4810
4831 pm_node_t base;
4832
4836 PM_NODE_ALIGNAS struct pm_node *receiver;
4837
4842
4847
4851 PM_NODE_ALIGNAS struct pm_arguments_node *arguments;
4852
4857
4861 PM_NODE_ALIGNAS struct pm_block_argument_node *block;
4862
4867
4872
4876 PM_NODE_ALIGNAS struct pm_node *value;
4877} pm_index_operator_write_node_t;
4878
4899 pm_node_t base;
4900
4904 PM_NODE_ALIGNAS struct pm_node *receiver;
4905
4910
4915
4919 PM_NODE_ALIGNAS struct pm_arguments_node *arguments;
4920
4925
4929 PM_NODE_ALIGNAS struct pm_block_argument_node *block;
4930
4935
4939 PM_NODE_ALIGNAS struct pm_node *value;
4940} pm_index_or_write_node_t;
4941
4968typedef struct pm_index_target_node {
4970 pm_node_t base;
4971
4975 PM_NODE_ALIGNAS struct pm_node *receiver;
4976
4981
4985 PM_NODE_ALIGNAS struct pm_arguments_node *arguments;
4986
4991
4995 PM_NODE_ALIGNAS struct pm_block_argument_node *block;
4996} pm_index_target_node_t;
4997
5012 pm_node_t base;
5013
5018
5023
5028
5032 PM_NODE_ALIGNAS struct pm_node *value;
5033} pm_instance_variable_and_write_node_t;
5034
5049 pm_node_t base;
5050
5055
5060
5065
5069 PM_NODE_ALIGNAS struct pm_node *value;
5070
5075} pm_instance_variable_operator_write_node_t;
5076
5091 pm_node_t base;
5092
5097
5102
5107
5111 PM_NODE_ALIGNAS struct pm_node *value;
5112} pm_instance_variable_or_write_node_t;
5113
5128 pm_node_t base;
5129
5140} pm_instance_variable_read_node_t;
5141
5156 pm_node_t base;
5157
5162} pm_instance_variable_target_node_t;
5163
5178 pm_node_t base;
5179
5190
5200
5212 PM_NODE_ALIGNAS struct pm_node *value;
5213
5223} pm_instance_variable_write_node_t;
5224
5243typedef struct pm_integer_node {
5245 pm_node_t base;
5246
5253} pm_integer_node_t;
5254
5282 pm_node_t base;
5283
5288
5293
5298} pm_interpolated_match_last_line_node_t;
5299
5327 pm_node_t base;
5328
5333
5338
5343} pm_interpolated_regular_expression_node_t;
5344
5363 pm_node_t base;
5364
5369
5374
5379} pm_interpolated_string_node_t;
5380
5395 pm_node_t base;
5396
5401
5406
5411} pm_interpolated_symbol_node_t;
5412
5427 pm_node_t base;
5428
5433
5438
5443} pm_interpolated_x_string_node_t;
5444
5459 pm_node_t base;
5460} pm_it_local_variable_read_node_t;
5461
5476 pm_node_t base;
5477} pm_it_parameters_node_t;
5478
5494typedef struct pm_keyword_hash_node {
5496 pm_node_t base;
5497
5502} pm_keyword_hash_node_t;
5503
5522 pm_node_t base;
5523
5528
5533
5538} pm_keyword_rest_parameter_node_t;
5539
5552typedef struct pm_lambda_node {
5554 pm_node_t base;
5555
5560
5565
5570
5575
5579 PM_NODE_ALIGNAS struct pm_node *parameters;
5580
5584 PM_NODE_ALIGNAS struct pm_node *body;
5585} pm_lambda_node_t;
5586
5601 pm_node_t base;
5602
5607
5612
5616 PM_NODE_ALIGNAS struct pm_node *value;
5617
5622
5626 uint32_t depth;
5627} pm_local_variable_and_write_node_t;
5628
5643 pm_node_t base;
5644
5649
5654
5658 PM_NODE_ALIGNAS struct pm_node *value;
5659
5664
5669
5673 uint32_t depth;
5674} pm_local_variable_operator_write_node_t;
5675
5690 pm_node_t base;
5691
5696
5701
5705 PM_NODE_ALIGNAS struct pm_node *value;
5706
5711
5715 uint32_t depth;
5716} pm_local_variable_or_write_node_t;
5717
5732 pm_node_t base;
5733
5748
5760 uint32_t depth;
5761} pm_local_variable_read_node_t;
5762
5780 pm_node_t base;
5781
5786
5790 uint32_t depth;
5791} pm_local_variable_target_node_t;
5792
5807 pm_node_t base;
5808
5819
5831 uint32_t depth;
5832
5842
5858 PM_NODE_ALIGNAS struct pm_node *value;
5859
5869} pm_local_variable_write_node_t;
5870
5920
5935 pm_node_t base;
5936
5940 PM_NODE_ALIGNAS struct pm_node *value;
5941
5945 PM_NODE_ALIGNAS struct pm_node *pattern;
5946
5951} pm_match_predicate_node_t;
5952
5967 pm_node_t base;
5968
5977 PM_NODE_ALIGNAS struct pm_node *value;
5978
6026 PM_NODE_ALIGNAS struct pm_node *pattern;
6027
6037} pm_match_required_node_t;
6038
6051typedef struct pm_match_write_node {
6053 pm_node_t base;
6054
6058 PM_NODE_ALIGNAS struct pm_call_node *call;
6059
6064} pm_match_write_node_t;
6065
6078typedef struct pm_module_node {
6080 pm_node_t base;
6081
6086
6091
6095 PM_NODE_ALIGNAS struct pm_node *constant_path;
6096
6100 PM_NODE_ALIGNAS struct pm_node *body;
6101
6106
6111} pm_module_node_t;
6112
6130typedef struct pm_multi_target_node {
6132 pm_node_t base;
6133
6148
6167 PM_NODE_ALIGNAS struct pm_node *rest;
6168
6178
6188
6198} pm_multi_target_node_t;
6199
6212typedef struct pm_multi_write_node {
6214 pm_node_t base;
6215
6230
6249 PM_NODE_ALIGNAS struct pm_node *rest;
6250
6260
6270
6280
6290
6299 PM_NODE_ALIGNAS struct pm_node *value;
6300} pm_multi_write_node_t;
6301
6314typedef struct pm_next_node {
6316 pm_node_t base;
6317
6321 PM_NODE_ALIGNAS struct pm_arguments_node *arguments;
6322
6327} pm_next_node_t;
6328
6341typedef struct pm_nil_node {
6343 pm_node_t base;
6344} pm_nil_node_t;
6345
6361 pm_node_t base;
6362
6367
6372} pm_no_block_parameter_node_t;
6373
6389 pm_node_t base;
6390
6395
6400} pm_no_keywords_parameter_node_t;
6401
6416 pm_node_t base;
6417
6421 uint8_t maximum;
6422} pm_numbered_parameters_node_t;
6423
6438 pm_node_t base;
6439
6451 uint32_t number;
6452} pm_numbered_reference_read_node_t;
6453
6472 pm_node_t base;
6473
6478
6483
6487 PM_NODE_ALIGNAS struct pm_node *value;
6488} pm_optional_keyword_parameter_node_t;
6489
6508 pm_node_t base;
6509
6514
6519
6524
6528 PM_NODE_ALIGNAS struct pm_node *value;
6529} pm_optional_parameter_node_t;
6530
6543typedef struct pm_or_node {
6545 pm_node_t base;
6546
6558 PM_NODE_ALIGNAS struct pm_node *left;
6559
6571 PM_NODE_ALIGNAS struct pm_node *right;
6572
6582} pm_or_node_t;
6583
6597typedef struct pm_parameters_node {
6599 pm_node_t base;
6600
6605
6610
6614 PM_NODE_ALIGNAS struct pm_node *rest;
6615
6620
6625
6629 PM_NODE_ALIGNAS struct pm_node *keyword_rest;
6630
6634 PM_NODE_ALIGNAS struct pm_node *block;
6635} pm_parameters_node_t;
6636
6652typedef struct pm_parentheses_node {
6654 pm_node_t base;
6655
6659 PM_NODE_ALIGNAS struct pm_node *body;
6660
6665
6670} pm_parentheses_node_t;
6671
6686 pm_node_t base;
6687
6696 PM_NODE_ALIGNAS struct pm_node *expression;
6697
6707
6717
6727} pm_pinned_expression_node_t;
6728
6743 pm_node_t base;
6744
6753 PM_NODE_ALIGNAS struct pm_node *variable;
6754
6764} pm_pinned_variable_node_t;
6765
6780 pm_node_t base;
6781
6785 PM_NODE_ALIGNAS struct pm_statements_node *statements;
6786
6791
6796
6801} pm_post_execution_node_t;
6802
6817 pm_node_t base;
6818
6822 PM_NODE_ALIGNAS struct pm_statements_node *statements;
6823
6828
6833
6838} pm_pre_execution_node_t;
6839
6849typedef struct pm_program_node {
6851 pm_node_t base;
6852
6857
6861 PM_NODE_ALIGNAS struct pm_statements_node *statements;
6862} pm_program_node_t;
6863
6882typedef struct pm_range_node {
6884 pm_node_t base;
6885
6897 PM_NODE_ALIGNAS struct pm_node *left;
6898
6911 PM_NODE_ALIGNAS struct pm_node *right;
6912
6919} pm_range_node_t;
6920
6939typedef struct pm_rational_node {
6941 pm_node_t base;
6942
6951
6960} pm_rational_node_t;
6961
6974typedef struct pm_redo_node {
6976 pm_node_t base;
6977} pm_redo_node_t;
6978
7028
7047 pm_node_t base;
7048
7053
7058} pm_required_keyword_parameter_node_t;
7059
7078 pm_node_t base;
7079
7084} pm_required_parameter_node_t;
7085
7100 pm_node_t base;
7101
7105 PM_NODE_ALIGNAS struct pm_node *expression;
7106
7111
7115 PM_NODE_ALIGNAS struct pm_node *rescue_expression;
7116} pm_rescue_modifier_node_t;
7117
7135typedef struct pm_rescue_node {
7137 pm_node_t base;
7138
7143
7148
7153
7157 PM_NODE_ALIGNAS struct pm_node *reference;
7158
7163
7167 PM_NODE_ALIGNAS struct pm_statements_node *statements;
7168
7172 PM_NODE_ALIGNAS struct pm_rescue_node *subsequent;
7173} pm_rescue_node_t;
7174
7193 pm_node_t base;
7194
7199
7204
7209} pm_rest_parameter_node_t;
7210
7223typedef struct pm_retry_node {
7225 pm_node_t base;
7226} pm_retry_node_t;
7227
7240typedef struct pm_return_node {
7242 pm_node_t base;
7243
7248
7252 PM_NODE_ALIGNAS struct pm_arguments_node *arguments;
7253} pm_return_node_t;
7254
7267typedef struct pm_self_node {
7269 pm_node_t base;
7270} pm_self_node_t;
7271
7292 pm_node_t base;
7293
7299 PM_NODE_ALIGNAS struct pm_node *write;
7300} pm_shareable_constant_node_t;
7301
7316 pm_node_t base;
7317
7322
7327
7332
7336 PM_NODE_ALIGNAS struct pm_node *expression;
7337
7341 PM_NODE_ALIGNAS struct pm_node *body;
7342
7347} pm_singleton_class_node_t;
7348
7363 pm_node_t base;
7364} pm_source_encoding_node_t;
7365
7384typedef struct pm_source_file_node {
7386 pm_node_t base;
7387
7394} pm_source_file_node_t;
7395
7408typedef struct pm_source_line_node {
7410 pm_node_t base;
7411} pm_source_line_node_t;
7412
7425typedef struct pm_splat_node {
7427 pm_node_t base;
7428
7433
7437 PM_NODE_ALIGNAS struct pm_node *expression;
7438} pm_splat_node_t;
7439
7455typedef struct pm_statements_node {
7457 pm_node_t base;
7458
7463} pm_statements_node_t;
7464
7513
7531typedef struct pm_super_node {
7533 pm_node_t base;
7534
7539
7544
7550 PM_NODE_ALIGNAS struct pm_arguments_node *arguments;
7551
7556
7560 PM_NODE_ALIGNAS struct pm_node *block;
7561} pm_super_node_t;
7562
7607
7620typedef struct pm_true_node {
7622 pm_node_t base;
7623} pm_true_node_t;
7624
7637typedef struct pm_undef_node {
7639 pm_node_t base;
7640
7645
7650} pm_undef_node_t;
7651
7667typedef struct pm_unless_node {
7669 pm_node_t base;
7670
7683
7695 PM_NODE_ALIGNAS struct pm_node *predicate;
7696
7706
7716 PM_NODE_ALIGNAS struct pm_statements_node *statements;
7717
7726 PM_NODE_ALIGNAS struct pm_else_node *else_clause;
7727
7737} pm_unless_node_t;
7738
7757typedef struct pm_until_node {
7759 pm_node_t base;
7760
7765
7770
7775
7779 PM_NODE_ALIGNAS struct pm_node *predicate;
7780
7784 PM_NODE_ALIGNAS struct pm_statements_node *statements;
7785} pm_until_node_t;
7786
7801typedef struct pm_when_node {
7803 pm_node_t base;
7804
7809
7814
7819
7823 PM_NODE_ALIGNAS struct pm_statements_node *statements;
7824} pm_when_node_t;
7825
7844typedef struct pm_while_node {
7846 pm_node_t base;
7847
7852
7857
7862
7866 PM_NODE_ALIGNAS struct pm_node *predicate;
7867
7871 PM_NODE_ALIGNAS struct pm_statements_node *statements;
7872} pm_while_node_t;
7873
7914
7927typedef struct pm_yield_node {
7929 pm_node_t base;
7930
7935
7940
7944 PM_NODE_ALIGNAS struct pm_arguments_node *arguments;
7945
7950} pm_yield_node_t;
7951
7955typedef enum pm_arguments_node_flags {
7957 PM_ARGUMENTS_NODE_FLAGS_CONTAINS_FORWARDING = 4,
7958
7960 PM_ARGUMENTS_NODE_FLAGS_CONTAINS_KEYWORDS = 8,
7961
7963 PM_ARGUMENTS_NODE_FLAGS_CONTAINS_KEYWORD_SPLAT = 16,
7964
7966 PM_ARGUMENTS_NODE_FLAGS_CONTAINS_SPLAT = 32,
7967
7969 PM_ARGUMENTS_NODE_FLAGS_CONTAINS_MULTIPLE_SPLATS = 64,
7970
7971 PM_ARGUMENTS_NODE_FLAGS_LAST,
7972} pm_arguments_node_flags_t;
7973
7977typedef enum pm_array_node_flags {
7979 PM_ARRAY_NODE_FLAGS_CONTAINS_SPLAT = 4,
7980
7981 PM_ARRAY_NODE_FLAGS_LAST,
7982} pm_array_node_flags_t;
7983
7987typedef enum pm_call_node_flags {
7989 PM_CALL_NODE_FLAGS_SAFE_NAVIGATION = 4,
7990
7992 PM_CALL_NODE_FLAGS_VARIABLE_CALL = 8,
7993
7995 PM_CALL_NODE_FLAGS_ATTRIBUTE_WRITE = 16,
7996
7998 PM_CALL_NODE_FLAGS_IGNORE_VISIBILITY = 32,
7999
8000 PM_CALL_NODE_FLAGS_LAST,
8001} pm_call_node_flags_t;
8002
8006typedef enum pm_encoding_flags {
8008 PM_ENCODING_FLAGS_FORCED_UTF8_ENCODING = 4,
8009
8011 PM_ENCODING_FLAGS_FORCED_BINARY_ENCODING = 8,
8012
8013 PM_ENCODING_FLAGS_LAST,
8014} pm_encoding_flags_t;
8015
8019typedef enum pm_integer_base_flags {
8021 PM_INTEGER_BASE_FLAGS_BINARY = 4,
8022
8024 PM_INTEGER_BASE_FLAGS_DECIMAL = 8,
8025
8027 PM_INTEGER_BASE_FLAGS_OCTAL = 16,
8028
8030 PM_INTEGER_BASE_FLAGS_HEXADECIMAL = 32,
8031
8032 PM_INTEGER_BASE_FLAGS_LAST,
8033} pm_integer_base_flags_t;
8034
8038typedef enum pm_interpolated_string_node_flags {
8040 PM_INTERPOLATED_STRING_NODE_FLAGS_FROZEN = 4,
8041
8043 PM_INTERPOLATED_STRING_NODE_FLAGS_MUTABLE = 8,
8044
8045 PM_INTERPOLATED_STRING_NODE_FLAGS_LAST,
8046} pm_interpolated_string_node_flags_t;
8047
8051typedef enum pm_keyword_hash_node_flags {
8053 PM_KEYWORD_HASH_NODE_FLAGS_SYMBOL_KEYS = 4,
8054
8055 PM_KEYWORD_HASH_NODE_FLAGS_LAST,
8056} pm_keyword_hash_node_flags_t;
8057
8061typedef enum pm_loop_flags {
8063 PM_LOOP_FLAGS_BEGIN_MODIFIER = 4,
8064
8065 PM_LOOP_FLAGS_LAST,
8066} pm_loop_flags_t;
8067
8071typedef enum pm_parameter_flags {
8073 PM_PARAMETER_FLAGS_REPEATED_PARAMETER = 4,
8074
8075 PM_PARAMETER_FLAGS_LAST,
8076} pm_parameter_flags_t;
8077
8081typedef enum pm_parentheses_node_flags {
8083 PM_PARENTHESES_NODE_FLAGS_MULTIPLE_STATEMENTS = 4,
8084
8085 PM_PARENTHESES_NODE_FLAGS_LAST,
8086} pm_parentheses_node_flags_t;
8087
8091typedef enum pm_range_flags {
8093 PM_RANGE_FLAGS_EXCLUDE_END = 4,
8094
8095 PM_RANGE_FLAGS_LAST,
8096} pm_range_flags_t;
8097
8101typedef enum pm_regular_expression_flags {
8103 PM_REGULAR_EXPRESSION_FLAGS_IGNORE_CASE = 4,
8104
8106 PM_REGULAR_EXPRESSION_FLAGS_EXTENDED = 8,
8107
8109 PM_REGULAR_EXPRESSION_FLAGS_MULTI_LINE = 16,
8110
8112 PM_REGULAR_EXPRESSION_FLAGS_ONCE = 32,
8113
8115 PM_REGULAR_EXPRESSION_FLAGS_EUC_JP = 64,
8116
8118 PM_REGULAR_EXPRESSION_FLAGS_ASCII_8BIT = 128,
8119
8121 PM_REGULAR_EXPRESSION_FLAGS_WINDOWS_31J = 256,
8122
8124 PM_REGULAR_EXPRESSION_FLAGS_UTF_8 = 512,
8125
8127 PM_REGULAR_EXPRESSION_FLAGS_FORCED_UTF8_ENCODING = 1024,
8128
8130 PM_REGULAR_EXPRESSION_FLAGS_FORCED_BINARY_ENCODING = 2048,
8131
8133 PM_REGULAR_EXPRESSION_FLAGS_FORCED_US_ASCII_ENCODING = 4096,
8134
8135 PM_REGULAR_EXPRESSION_FLAGS_LAST,
8136} pm_regular_expression_flags_t;
8137
8141typedef enum pm_shareable_constant_node_flags {
8143 PM_SHAREABLE_CONSTANT_NODE_FLAGS_LITERAL = 4,
8144
8146 PM_SHAREABLE_CONSTANT_NODE_FLAGS_EXPERIMENTAL_EVERYTHING = 8,
8147
8149 PM_SHAREABLE_CONSTANT_NODE_FLAGS_EXPERIMENTAL_COPY = 16,
8150
8151 PM_SHAREABLE_CONSTANT_NODE_FLAGS_LAST,
8152} pm_shareable_constant_node_flags_t;
8153
8157typedef enum pm_statements_flags {
8159 PM_STATEMENTS_FLAGS_CONTAINS_PRE_EXECUTION = 4,
8160
8161 PM_STATEMENTS_FLAGS_LAST,
8162} pm_statements_flags_t;
8163
8167typedef enum pm_string_flags {
8169 PM_STRING_FLAGS_FORCED_UTF8_ENCODING = 4,
8170
8172 PM_STRING_FLAGS_FORCED_BINARY_ENCODING = 8,
8173
8175 PM_STRING_FLAGS_FROZEN = 16,
8176
8178 PM_STRING_FLAGS_MUTABLE = 32,
8179
8180 PM_STRING_FLAGS_LAST,
8181} pm_string_flags_t;
8182
8186typedef enum pm_symbol_flags {
8188 PM_SYMBOL_FLAGS_FORCED_UTF8_ENCODING = 4,
8189
8191 PM_SYMBOL_FLAGS_FORCED_BINARY_ENCODING = 8,
8192
8194 PM_SYMBOL_FLAGS_FORCED_US_ASCII_ENCODING = 16,
8195
8196 PM_SYMBOL_FLAGS_LAST,
8197} pm_symbol_flags_t;
8198
8211PRISM_EXPORTED_FUNCTION pm_alias_global_variable_node_t * pm_alias_global_variable_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *new_name, struct pm_node *old_name, pm_location_t keyword_loc);
8212
8225PRISM_EXPORTED_FUNCTION pm_alias_method_node_t * pm_alias_method_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *new_name, struct pm_node *old_name, pm_location_t keyword_loc);
8226
8239PRISM_EXPORTED_FUNCTION pm_alternation_pattern_node_t * pm_alternation_pattern_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *left, struct pm_node *right, pm_location_t operator_loc);
8240
8253PRISM_EXPORTED_FUNCTION pm_and_node_t * pm_and_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *left, struct pm_node *right, pm_location_t operator_loc);
8254
8265PRISM_EXPORTED_FUNCTION pm_arguments_node_t * pm_arguments_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_node_list_t arguments);
8266
8279PRISM_EXPORTED_FUNCTION pm_array_node_t * pm_array_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_node_list_t elements, pm_location_t opening_loc, pm_location_t closing_loc);
8280
8296PRISM_EXPORTED_FUNCTION pm_array_pattern_node_t * pm_array_pattern_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *constant, pm_node_list_t requireds, struct pm_node *rest, pm_node_list_t posts, pm_location_t opening_loc, pm_location_t closing_loc);
8297
8310PRISM_EXPORTED_FUNCTION pm_assoc_node_t * pm_assoc_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *key, struct pm_node *value, pm_location_t operator_loc);
8311
8323PRISM_EXPORTED_FUNCTION pm_assoc_splat_node_t * pm_assoc_splat_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *value, pm_location_t operator_loc);
8324
8335PRISM_EXPORTED_FUNCTION pm_back_reference_read_node_t * pm_back_reference_read_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name);
8336
8352PRISM_EXPORTED_FUNCTION pm_begin_node_t * pm_begin_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t begin_keyword_loc, struct pm_statements_node *statements, struct pm_rescue_node *rescue_clause, struct pm_else_node *else_clause, struct pm_ensure_node *ensure_clause, pm_location_t end_keyword_loc);
8353
8365PRISM_EXPORTED_FUNCTION pm_block_argument_node_t * pm_block_argument_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *expression, pm_location_t operator_loc);
8366
8377PRISM_EXPORTED_FUNCTION pm_block_local_variable_node_t * pm_block_local_variable_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name);
8378
8393PRISM_EXPORTED_FUNCTION pm_block_node_t * pm_block_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_list_t locals, struct pm_node *parameters, struct pm_node *body, pm_location_t opening_loc, pm_location_t closing_loc);
8394
8407PRISM_EXPORTED_FUNCTION pm_block_parameter_node_t * pm_block_parameter_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, pm_location_t operator_loc);
8408
8422PRISM_EXPORTED_FUNCTION pm_block_parameters_node_t * pm_block_parameters_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_parameters_node *parameters, pm_node_list_t locals, pm_location_t opening_loc, pm_location_t closing_loc);
8423
8435PRISM_EXPORTED_FUNCTION pm_break_node_t * pm_break_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_arguments_node *arguments, pm_location_t keyword_loc);
8436
8453PRISM_EXPORTED_FUNCTION pm_call_and_write_node_t * pm_call_and_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *receiver, pm_location_t call_operator_loc, pm_location_t message_loc, pm_constant_id_t read_name, pm_constant_id_t write_name, pm_location_t operator_loc, struct pm_node *value);
8454
8473PRISM_EXPORTED_FUNCTION pm_call_node_t * pm_call_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *receiver, pm_location_t call_operator_loc, pm_constant_id_t name, pm_location_t message_loc, pm_location_t opening_loc, struct pm_arguments_node *arguments, pm_location_t closing_loc, pm_location_t equal_loc, struct pm_node *block);
8474
8492PRISM_EXPORTED_FUNCTION pm_call_operator_write_node_t * pm_call_operator_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *receiver, pm_location_t call_operator_loc, pm_location_t message_loc, pm_constant_id_t read_name, pm_constant_id_t write_name, pm_constant_id_t binary_operator, pm_location_t binary_operator_loc, struct pm_node *value);
8493
8510PRISM_EXPORTED_FUNCTION pm_call_or_write_node_t * pm_call_or_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *receiver, pm_location_t call_operator_loc, pm_location_t message_loc, pm_constant_id_t read_name, pm_constant_id_t write_name, pm_location_t operator_loc, struct pm_node *value);
8511
8525PRISM_EXPORTED_FUNCTION pm_call_target_node_t * pm_call_target_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *receiver, pm_location_t call_operator_loc, pm_constant_id_t name, pm_location_t message_loc);
8526
8539PRISM_EXPORTED_FUNCTION pm_capture_pattern_node_t * pm_capture_pattern_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *value, struct pm_local_variable_target_node *target, pm_location_t operator_loc);
8540
8555PRISM_EXPORTED_FUNCTION pm_case_match_node_t * pm_case_match_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *predicate, pm_node_list_t conditions, struct pm_else_node *else_clause, pm_location_t case_keyword_loc, pm_location_t end_keyword_loc);
8556
8571PRISM_EXPORTED_FUNCTION pm_case_node_t * pm_case_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *predicate, pm_node_list_t conditions, struct pm_else_node *else_clause, pm_location_t case_keyword_loc, pm_location_t end_keyword_loc);
8572
8590PRISM_EXPORTED_FUNCTION pm_class_node_t * pm_class_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_list_t locals, pm_location_t class_keyword_loc, struct pm_node *constant_path, pm_location_t inheritance_operator_loc, struct pm_node *superclass, struct pm_node *body, pm_location_t end_keyword_loc, pm_constant_id_t name);
8591
8605PRISM_EXPORTED_FUNCTION pm_class_variable_and_write_node_t * pm_class_variable_and_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, pm_location_t operator_loc, struct pm_node *value);
8606
8621PRISM_EXPORTED_FUNCTION pm_class_variable_operator_write_node_t * pm_class_variable_operator_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, pm_location_t binary_operator_loc, struct pm_node *value, pm_constant_id_t binary_operator);
8622
8636PRISM_EXPORTED_FUNCTION pm_class_variable_or_write_node_t * pm_class_variable_or_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, pm_location_t operator_loc, struct pm_node *value);
8637
8648PRISM_EXPORTED_FUNCTION pm_class_variable_read_node_t * pm_class_variable_read_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name);
8649
8660PRISM_EXPORTED_FUNCTION pm_class_variable_target_node_t * pm_class_variable_target_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name);
8661
8675PRISM_EXPORTED_FUNCTION pm_class_variable_write_node_t * pm_class_variable_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, struct pm_node *value, pm_location_t operator_loc);
8676
8690PRISM_EXPORTED_FUNCTION pm_constant_and_write_node_t * pm_constant_and_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, pm_location_t operator_loc, struct pm_node *value);
8691
8706PRISM_EXPORTED_FUNCTION pm_constant_operator_write_node_t * pm_constant_operator_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, pm_location_t binary_operator_loc, struct pm_node *value, pm_constant_id_t binary_operator);
8707
8721PRISM_EXPORTED_FUNCTION pm_constant_or_write_node_t * pm_constant_or_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, pm_location_t operator_loc, struct pm_node *value);
8722
8735PRISM_EXPORTED_FUNCTION pm_constant_path_and_write_node_t * pm_constant_path_and_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_constant_path_node *target, pm_location_t operator_loc, struct pm_node *value);
8736
8750PRISM_EXPORTED_FUNCTION pm_constant_path_node_t * pm_constant_path_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *parent, pm_constant_id_t name, pm_location_t delimiter_loc, pm_location_t name_loc);
8751
8765PRISM_EXPORTED_FUNCTION pm_constant_path_operator_write_node_t * pm_constant_path_operator_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_constant_path_node *target, pm_location_t binary_operator_loc, struct pm_node *value, pm_constant_id_t binary_operator);
8766
8779PRISM_EXPORTED_FUNCTION pm_constant_path_or_write_node_t * pm_constant_path_or_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_constant_path_node *target, pm_location_t operator_loc, struct pm_node *value);
8780
8794PRISM_EXPORTED_FUNCTION pm_constant_path_target_node_t * pm_constant_path_target_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *parent, pm_constant_id_t name, pm_location_t delimiter_loc, pm_location_t name_loc);
8795
8808PRISM_EXPORTED_FUNCTION pm_constant_path_write_node_t * pm_constant_path_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_constant_path_node *target, pm_location_t operator_loc, struct pm_node *value);
8809
8820PRISM_EXPORTED_FUNCTION pm_constant_read_node_t * pm_constant_read_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name);
8821
8832PRISM_EXPORTED_FUNCTION pm_constant_target_node_t * pm_constant_target_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name);
8833
8847PRISM_EXPORTED_FUNCTION pm_constant_write_node_t * pm_constant_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, struct pm_node *value, pm_location_t operator_loc);
8848
8870PRISM_EXPORTED_FUNCTION pm_def_node_t * pm_def_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, struct pm_node *receiver, struct pm_parameters_node *parameters, struct pm_node *body, pm_constant_id_list_t locals, pm_location_t def_keyword_loc, pm_location_t operator_loc, pm_location_t lparen_loc, pm_location_t rparen_loc, pm_location_t equal_loc, pm_location_t end_keyword_loc);
8871
8885PRISM_EXPORTED_FUNCTION pm_defined_node_t * pm_defined_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t lparen_loc, struct pm_node *value, pm_location_t rparen_loc, pm_location_t keyword_loc);
8886
8899PRISM_EXPORTED_FUNCTION pm_else_node_t * pm_else_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t else_keyword_loc, struct pm_statements_node *statements, pm_location_t end_keyword_loc);
8900
8913PRISM_EXPORTED_FUNCTION pm_embedded_statements_node_t * pm_embedded_statements_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t opening_loc, struct pm_statements_node *statements, pm_location_t closing_loc);
8914
8926PRISM_EXPORTED_FUNCTION pm_embedded_variable_node_t * pm_embedded_variable_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t operator_loc, struct pm_node *variable);
8927
8940PRISM_EXPORTED_FUNCTION pm_ensure_node_t * pm_ensure_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t ensure_keyword_loc, struct pm_statements_node *statements, pm_location_t end_keyword_loc);
8941
8952PRISM_EXPORTED_FUNCTION pm_error_recovery_node_t * pm_error_recovery_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *unexpected);
8953
8963PRISM_EXPORTED_FUNCTION pm_false_node_t * pm_false_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location);
8964
8980PRISM_EXPORTED_FUNCTION pm_find_pattern_node_t * pm_find_pattern_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *constant, struct pm_splat_node *left, pm_node_list_t requireds, struct pm_splat_node *right, pm_location_t opening_loc, pm_location_t closing_loc);
8981
8994PRISM_EXPORTED_FUNCTION pm_flip_flop_node_t * pm_flip_flop_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *left, struct pm_node *right, pm_location_t operator_loc);
8995
9006PRISM_EXPORTED_FUNCTION pm_float_node_t * pm_float_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, double value);
9007
9024PRISM_EXPORTED_FUNCTION pm_for_node_t * pm_for_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *index, struct pm_node *collection, struct pm_statements_node *statements, pm_location_t for_keyword_loc, pm_location_t in_keyword_loc, pm_location_t do_keyword_loc, pm_location_t end_keyword_loc);
9025
9035PRISM_EXPORTED_FUNCTION pm_forwarding_arguments_node_t * pm_forwarding_arguments_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location);
9036
9046PRISM_EXPORTED_FUNCTION pm_forwarding_parameter_node_t * pm_forwarding_parameter_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location);
9047
9059PRISM_EXPORTED_FUNCTION pm_forwarding_super_node_t * pm_forwarding_super_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t keyword_loc, struct pm_block_node *block);
9060
9074PRISM_EXPORTED_FUNCTION pm_global_variable_and_write_node_t * pm_global_variable_and_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, pm_location_t operator_loc, struct pm_node *value);
9075
9090PRISM_EXPORTED_FUNCTION pm_global_variable_operator_write_node_t * pm_global_variable_operator_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, pm_location_t binary_operator_loc, struct pm_node *value, pm_constant_id_t binary_operator);
9091
9105PRISM_EXPORTED_FUNCTION pm_global_variable_or_write_node_t * pm_global_variable_or_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, pm_location_t operator_loc, struct pm_node *value);
9106
9117PRISM_EXPORTED_FUNCTION pm_global_variable_read_node_t * pm_global_variable_read_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name);
9118
9129PRISM_EXPORTED_FUNCTION pm_global_variable_target_node_t * pm_global_variable_target_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name);
9130
9144PRISM_EXPORTED_FUNCTION pm_global_variable_write_node_t * pm_global_variable_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, struct pm_node *value, pm_location_t operator_loc);
9145
9158PRISM_EXPORTED_FUNCTION pm_hash_node_t * pm_hash_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t opening_loc, pm_node_list_t elements, pm_location_t closing_loc);
9159
9174PRISM_EXPORTED_FUNCTION pm_hash_pattern_node_t * pm_hash_pattern_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *constant, pm_node_list_t elements, struct pm_node *rest, pm_location_t opening_loc, pm_location_t closing_loc);
9175
9191PRISM_EXPORTED_FUNCTION pm_if_node_t * pm_if_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t if_keyword_loc, struct pm_node *predicate, pm_location_t then_keyword_loc, struct pm_statements_node *statements, struct pm_node *subsequent, pm_location_t end_keyword_loc);
9192
9203PRISM_EXPORTED_FUNCTION pm_imaginary_node_t * pm_imaginary_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *numeric);
9204
9215PRISM_EXPORTED_FUNCTION pm_implicit_node_t * pm_implicit_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *value);
9216
9226PRISM_EXPORTED_FUNCTION pm_implicit_rest_node_t * pm_implicit_rest_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location);
9227
9241PRISM_EXPORTED_FUNCTION pm_in_node_t * pm_in_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *pattern, struct pm_statements_node *statements, pm_location_t in_keyword_loc, pm_location_t then_keyword_loc);
9242
9260PRISM_EXPORTED_FUNCTION pm_index_and_write_node_t * pm_index_and_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *receiver, pm_location_t call_operator_loc, pm_location_t opening_loc, struct pm_arguments_node *arguments, pm_location_t closing_loc, struct pm_block_argument_node *block, pm_location_t operator_loc, struct pm_node *value);
9261
9280PRISM_EXPORTED_FUNCTION pm_index_operator_write_node_t * pm_index_operator_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *receiver, pm_location_t call_operator_loc, pm_location_t opening_loc, struct pm_arguments_node *arguments, pm_location_t closing_loc, struct pm_block_argument_node *block, pm_constant_id_t binary_operator, pm_location_t binary_operator_loc, struct pm_node *value);
9281
9299PRISM_EXPORTED_FUNCTION pm_index_or_write_node_t * pm_index_or_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *receiver, pm_location_t call_operator_loc, pm_location_t opening_loc, struct pm_arguments_node *arguments, pm_location_t closing_loc, struct pm_block_argument_node *block, pm_location_t operator_loc, struct pm_node *value);
9300
9315PRISM_EXPORTED_FUNCTION pm_index_target_node_t * pm_index_target_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *receiver, pm_location_t opening_loc, struct pm_arguments_node *arguments, pm_location_t closing_loc, struct pm_block_argument_node *block);
9316
9330PRISM_EXPORTED_FUNCTION pm_instance_variable_and_write_node_t * pm_instance_variable_and_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, pm_location_t operator_loc, struct pm_node *value);
9331
9346PRISM_EXPORTED_FUNCTION pm_instance_variable_operator_write_node_t * pm_instance_variable_operator_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, pm_location_t binary_operator_loc, struct pm_node *value, pm_constant_id_t binary_operator);
9347
9361PRISM_EXPORTED_FUNCTION pm_instance_variable_or_write_node_t * pm_instance_variable_or_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, pm_location_t operator_loc, struct pm_node *value);
9362
9373PRISM_EXPORTED_FUNCTION pm_instance_variable_read_node_t * pm_instance_variable_read_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name);
9374
9385PRISM_EXPORTED_FUNCTION pm_instance_variable_target_node_t * pm_instance_variable_target_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name);
9386
9400PRISM_EXPORTED_FUNCTION pm_instance_variable_write_node_t * pm_instance_variable_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, struct pm_node *value, pm_location_t operator_loc);
9401
9412PRISM_EXPORTED_FUNCTION pm_integer_node_t * pm_integer_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_integer_t value);
9413
9426PRISM_EXPORTED_FUNCTION pm_interpolated_match_last_line_node_t * pm_interpolated_match_last_line_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t opening_loc, pm_node_list_t parts, pm_location_t closing_loc);
9427
9440PRISM_EXPORTED_FUNCTION pm_interpolated_regular_expression_node_t * pm_interpolated_regular_expression_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t opening_loc, pm_node_list_t parts, pm_location_t closing_loc);
9441
9454PRISM_EXPORTED_FUNCTION pm_interpolated_string_node_t * pm_interpolated_string_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t opening_loc, pm_node_list_t parts, pm_location_t closing_loc);
9455
9468PRISM_EXPORTED_FUNCTION pm_interpolated_symbol_node_t * pm_interpolated_symbol_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t opening_loc, pm_node_list_t parts, pm_location_t closing_loc);
9469
9482PRISM_EXPORTED_FUNCTION pm_interpolated_x_string_node_t * pm_interpolated_x_string_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t opening_loc, pm_node_list_t parts, pm_location_t closing_loc);
9483
9493PRISM_EXPORTED_FUNCTION pm_it_local_variable_read_node_t * pm_it_local_variable_read_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location);
9494
9504PRISM_EXPORTED_FUNCTION pm_it_parameters_node_t * pm_it_parameters_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location);
9505
9516PRISM_EXPORTED_FUNCTION pm_keyword_hash_node_t * pm_keyword_hash_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_node_list_t elements);
9517
9530PRISM_EXPORTED_FUNCTION pm_keyword_rest_parameter_node_t * pm_keyword_rest_parameter_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, pm_location_t operator_loc);
9531
9547PRISM_EXPORTED_FUNCTION pm_lambda_node_t * pm_lambda_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_list_t locals, pm_location_t operator_loc, pm_location_t opening_loc, pm_location_t closing_loc, struct pm_node *parameters, struct pm_node *body);
9548
9563PRISM_EXPORTED_FUNCTION pm_local_variable_and_write_node_t * pm_local_variable_and_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t name_loc, pm_location_t operator_loc, struct pm_node *value, pm_constant_id_t name, uint32_t depth);
9564
9580PRISM_EXPORTED_FUNCTION pm_local_variable_operator_write_node_t * pm_local_variable_operator_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t name_loc, pm_location_t binary_operator_loc, struct pm_node *value, pm_constant_id_t name, pm_constant_id_t binary_operator, uint32_t depth);
9581
9596PRISM_EXPORTED_FUNCTION pm_local_variable_or_write_node_t * pm_local_variable_or_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t name_loc, pm_location_t operator_loc, struct pm_node *value, pm_constant_id_t name, uint32_t depth);
9597
9609PRISM_EXPORTED_FUNCTION pm_local_variable_read_node_t * pm_local_variable_read_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, uint32_t depth);
9610
9622PRISM_EXPORTED_FUNCTION pm_local_variable_target_node_t * pm_local_variable_target_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, uint32_t depth);
9623
9638PRISM_EXPORTED_FUNCTION pm_local_variable_write_node_t * pm_local_variable_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, uint32_t depth, pm_location_t name_loc, struct pm_node *value, pm_location_t operator_loc);
9639
9653PRISM_EXPORTED_FUNCTION pm_match_last_line_node_t * pm_match_last_line_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t opening_loc, pm_location_t content_loc, pm_location_t closing_loc, pm_string_t unescaped);
9654
9667PRISM_EXPORTED_FUNCTION pm_match_predicate_node_t * pm_match_predicate_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *value, struct pm_node *pattern, pm_location_t keyword_loc);
9668
9681PRISM_EXPORTED_FUNCTION pm_match_required_node_t * pm_match_required_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *value, struct pm_node *pattern, pm_location_t operator_loc);
9682
9694PRISM_EXPORTED_FUNCTION pm_match_write_node_t * pm_match_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_call_node *call, pm_node_list_t targets);
9695
9711PRISM_EXPORTED_FUNCTION pm_module_node_t * pm_module_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_list_t locals, pm_location_t module_keyword_loc, struct pm_node *constant_path, struct pm_node *body, pm_location_t end_keyword_loc, pm_constant_id_t name);
9712
9727PRISM_EXPORTED_FUNCTION pm_multi_target_node_t * pm_multi_target_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_node_list_t lefts, struct pm_node *rest, pm_node_list_t rights, pm_location_t lparen_loc, pm_location_t rparen_loc);
9728
9745PRISM_EXPORTED_FUNCTION pm_multi_write_node_t * pm_multi_write_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_node_list_t lefts, struct pm_node *rest, pm_node_list_t rights, pm_location_t lparen_loc, pm_location_t rparen_loc, pm_location_t operator_loc, struct pm_node *value);
9746
9758PRISM_EXPORTED_FUNCTION pm_next_node_t * pm_next_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_arguments_node *arguments, pm_location_t keyword_loc);
9759
9769PRISM_EXPORTED_FUNCTION pm_nil_node_t * pm_nil_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location);
9770
9782PRISM_EXPORTED_FUNCTION pm_no_block_parameter_node_t * pm_no_block_parameter_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t operator_loc, pm_location_t keyword_loc);
9783
9795PRISM_EXPORTED_FUNCTION pm_no_keywords_parameter_node_t * pm_no_keywords_parameter_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t operator_loc, pm_location_t keyword_loc);
9796
9807PRISM_EXPORTED_FUNCTION pm_numbered_parameters_node_t * pm_numbered_parameters_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, uint8_t maximum);
9808
9819PRISM_EXPORTED_FUNCTION pm_numbered_reference_read_node_t * pm_numbered_reference_read_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, uint32_t number);
9820
9833PRISM_EXPORTED_FUNCTION pm_optional_keyword_parameter_node_t * pm_optional_keyword_parameter_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, struct pm_node *value);
9834
9848PRISM_EXPORTED_FUNCTION pm_optional_parameter_node_t * pm_optional_parameter_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, pm_location_t operator_loc, struct pm_node *value);
9849
9862PRISM_EXPORTED_FUNCTION pm_or_node_t * pm_or_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *left, struct pm_node *right, pm_location_t operator_loc);
9863
9880PRISM_EXPORTED_FUNCTION pm_parameters_node_t * pm_parameters_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_node_list_t requireds, pm_node_list_t optionals, struct pm_node *rest, pm_node_list_t posts, pm_node_list_t keywords, struct pm_node *keyword_rest, struct pm_node *block);
9881
9894PRISM_EXPORTED_FUNCTION pm_parentheses_node_t * pm_parentheses_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *body, pm_location_t opening_loc, pm_location_t closing_loc);
9895
9909PRISM_EXPORTED_FUNCTION pm_pinned_expression_node_t * pm_pinned_expression_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *expression, pm_location_t operator_loc, pm_location_t lparen_loc, pm_location_t rparen_loc);
9910
9922PRISM_EXPORTED_FUNCTION pm_pinned_variable_node_t * pm_pinned_variable_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *variable, pm_location_t operator_loc);
9923
9937PRISM_EXPORTED_FUNCTION pm_post_execution_node_t * pm_post_execution_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_statements_node *statements, pm_location_t keyword_loc, pm_location_t opening_loc, pm_location_t closing_loc);
9938
9952PRISM_EXPORTED_FUNCTION pm_pre_execution_node_t * pm_pre_execution_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_statements_node *statements, pm_location_t keyword_loc, pm_location_t opening_loc, pm_location_t closing_loc);
9953
9965PRISM_EXPORTED_FUNCTION pm_program_node_t * pm_program_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_list_t locals, struct pm_statements_node *statements);
9966
9979PRISM_EXPORTED_FUNCTION pm_range_node_t * pm_range_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *left, struct pm_node *right, pm_location_t operator_loc);
9980
9992PRISM_EXPORTED_FUNCTION pm_rational_node_t * pm_rational_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_integer_t numerator, pm_integer_t denominator);
9993
10003PRISM_EXPORTED_FUNCTION pm_redo_node_t * pm_redo_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location);
10004
10018PRISM_EXPORTED_FUNCTION pm_regular_expression_node_t * pm_regular_expression_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t opening_loc, pm_location_t content_loc, pm_location_t closing_loc, pm_string_t unescaped);
10019
10031PRISM_EXPORTED_FUNCTION pm_required_keyword_parameter_node_t * pm_required_keyword_parameter_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc);
10032
10043PRISM_EXPORTED_FUNCTION pm_required_parameter_node_t * pm_required_parameter_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name);
10044
10057PRISM_EXPORTED_FUNCTION pm_rescue_modifier_node_t * pm_rescue_modifier_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *expression, pm_location_t keyword_loc, struct pm_node *rescue_expression);
10058
10075PRISM_EXPORTED_FUNCTION pm_rescue_node_t * pm_rescue_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t keyword_loc, pm_node_list_t exceptions, pm_location_t operator_loc, struct pm_node *reference, pm_location_t then_keyword_loc, struct pm_statements_node *statements, struct pm_rescue_node *subsequent);
10076
10089PRISM_EXPORTED_FUNCTION pm_rest_parameter_node_t * pm_rest_parameter_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_t name, pm_location_t name_loc, pm_location_t operator_loc);
10090
10100PRISM_EXPORTED_FUNCTION pm_retry_node_t * pm_retry_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location);
10101
10113PRISM_EXPORTED_FUNCTION pm_return_node_t * pm_return_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t keyword_loc, struct pm_arguments_node *arguments);
10114
10124PRISM_EXPORTED_FUNCTION pm_self_node_t * pm_self_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location);
10125
10136PRISM_EXPORTED_FUNCTION pm_shareable_constant_node_t * pm_shareable_constant_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *write);
10137
10153PRISM_EXPORTED_FUNCTION pm_singleton_class_node_t * pm_singleton_class_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_constant_id_list_t locals, pm_location_t class_keyword_loc, pm_location_t operator_loc, struct pm_node *expression, struct pm_node *body, pm_location_t end_keyword_loc);
10154
10164PRISM_EXPORTED_FUNCTION pm_source_encoding_node_t * pm_source_encoding_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location);
10165
10176PRISM_EXPORTED_FUNCTION pm_source_file_node_t * pm_source_file_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_string_t filepath);
10177
10187PRISM_EXPORTED_FUNCTION pm_source_line_node_t * pm_source_line_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location);
10188
10200PRISM_EXPORTED_FUNCTION pm_splat_node_t * pm_splat_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t operator_loc, struct pm_node *expression);
10201
10212PRISM_EXPORTED_FUNCTION pm_statements_node_t * pm_statements_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_node_list_t body);
10213
10227PRISM_EXPORTED_FUNCTION pm_string_node_t * pm_string_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t opening_loc, pm_location_t content_loc, pm_location_t closing_loc, pm_string_t unescaped);
10228
10243PRISM_EXPORTED_FUNCTION pm_super_node_t * pm_super_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t keyword_loc, pm_location_t lparen_loc, struct pm_arguments_node *arguments, pm_location_t rparen_loc, struct pm_node *block);
10244
10258PRISM_EXPORTED_FUNCTION pm_symbol_node_t * pm_symbol_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t opening_loc, pm_location_t content_loc, pm_location_t closing_loc, pm_string_t unescaped);
10259
10269PRISM_EXPORTED_FUNCTION pm_true_node_t * pm_true_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location);
10270
10282PRISM_EXPORTED_FUNCTION pm_undef_node_t * pm_undef_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_node_list_t names, pm_location_t keyword_loc);
10283
10299PRISM_EXPORTED_FUNCTION pm_unless_node_t * pm_unless_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t unless_keyword_loc, struct pm_node *predicate, pm_location_t then_keyword_loc, struct pm_statements_node *statements, struct pm_else_node *else_clause, pm_location_t end_keyword_loc);
10300
10315PRISM_EXPORTED_FUNCTION pm_until_node_t * pm_until_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t until_keyword_loc, pm_location_t do_keyword_loc, pm_location_t end_keyword_loc, struct pm_node *predicate, struct pm_statements_node *statements);
10316
10330PRISM_EXPORTED_FUNCTION pm_when_node_t * pm_when_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t when_keyword_loc, pm_node_list_t conditions, pm_location_t then_keyword_loc, struct pm_statements_node *statements);
10331
10346PRISM_EXPORTED_FUNCTION pm_while_node_t * pm_while_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t while_keyword_loc, pm_location_t do_keyword_loc, pm_location_t end_keyword_loc, struct pm_node *predicate, struct pm_statements_node *statements);
10347
10361PRISM_EXPORTED_FUNCTION pm_x_string_node_t * pm_x_string_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t opening_loc, pm_location_t content_loc, pm_location_t closing_loc, pm_string_t unescaped);
10362
10376PRISM_EXPORTED_FUNCTION pm_yield_node_t * pm_yield_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t keyword_loc, pm_location_t lparen_loc, struct pm_arguments_node *arguments, pm_location_t rparen_loc);
10377
10384#define PRISM_SERIALIZE_ONLY_SEMANTICS_FIELDS 0
10385
10386#ifdef __cplusplus
10387}
10388#endif
10389
10390#endif
A bump allocator for the prism parser.
A data structure that stores a set of strings.
uint32_t pm_constant_id_t
A constant id is a unique identifier for a constant in the constant pool.
#define PRISM_EXPORTED_FUNCTION
By default, we compile with -fvisibility=hidden.
Definition exported.h:20
This module provides functions for working with arbitrary-sized integers.
A view of a sequence of bytes owned by someone else.
AliasGlobalVariableNode.
Definition ast.h:1166
PM_NODE_ALIGNAS struct pm_node * new_name
AliasGlobalVariableNode::new_name.
Definition ast.h:1178
pm_node_t base
The embedded base node.
Definition ast.h:1168
pm_location_t keyword_loc
AliasGlobalVariableNode::keyword_loc.
Definition ast.h:1198
PM_NODE_ALIGNAS struct pm_node * old_name
AliasGlobalVariableNode::old_name.
Definition ast.h:1188
AliasMethodNode.
Definition ast.h:1213
PM_NODE_ALIGNAS struct pm_node * old_name
AliasMethodNode::old_name.
Definition ast.h:1247
pm_node_t base
The embedded base node.
Definition ast.h:1215
pm_location_t keyword_loc
AliasMethodNode::keyword_loc.
Definition ast.h:1257
PM_NODE_ALIGNAS struct pm_node * new_name
AliasMethodNode::new_name.
Definition ast.h:1231
AlternationPatternNode.
Definition ast.h:1272
pm_location_t operator_loc
AlternationPatternNode::operator_loc.
Definition ast.h:1304
PM_NODE_ALIGNAS struct pm_node * left
AlternationPatternNode::left.
Definition ast.h:1284
pm_node_t base
The embedded base node.
Definition ast.h:1274
PM_NODE_ALIGNAS struct pm_node * right
AlternationPatternNode::right.
Definition ast.h:1294
AndNode.
Definition ast.h:1319
PM_NODE_ALIGNAS struct pm_node * left
AndNode::left.
Definition ast.h:1334
PM_NODE_ALIGNAS struct pm_node * right
AndNode::right.
Definition ast.h:1347
pm_location_t operator_loc
AndNode::operator_loc.
Definition ast.h:1357
pm_node_t base
The embedded base node.
Definition ast.h:1321
ArgumentsNode.
Definition ast.h:1379
pm_node_t base
The embedded base node.
Definition ast.h:1381
struct pm_node_list arguments
ArgumentsNode::arguments.
Definition ast.h:1391
ArrayNode.
Definition ast.h:1409
pm_node_t base
The embedded base node.
Definition ast.h:1411
pm_location_t closing_loc
ArrayNode::closing_loc.
Definition ast.h:1442
struct pm_node_list elements
ArrayNode::elements.
Definition ast.h:1418
pm_location_t opening_loc
ArrayNode::opening_loc.
Definition ast.h:1430
ArrayPatternNode.
Definition ast.h:1469
struct pm_node_list requireds
ArrayPatternNode::requireds.
Definition ast.h:1497
PM_NODE_ALIGNAS struct pm_node * rest
ArrayPatternNode::rest.
Definition ast.h:1507
PM_NODE_ALIGNAS struct pm_node * constant
ArrayPatternNode::constant.
Definition ast.h:1487
pm_location_t opening_loc
ArrayPatternNode::opening_loc.
Definition ast.h:1527
pm_node_t base
The embedded base node.
Definition ast.h:1471
pm_location_t closing_loc
ArrayPatternNode::closing_loc.
Definition ast.h:1537
struct pm_node_list posts
ArrayPatternNode::posts.
Definition ast.h:1517
AssocNode.
Definition ast.h:1552
pm_node_t base
The embedded base node.
Definition ast.h:1554
PM_NODE_ALIGNAS struct pm_node * value
AssocNode::value.
Definition ast.h:1583
PM_NODE_ALIGNAS struct pm_node * key
AssocNode::key.
Definition ast.h:1570
pm_location_t operator_loc
AssocNode::operator_loc.
Definition ast.h:1593
AssocSplatNode.
Definition ast.h:1608
pm_node_t base
The embedded base node.
Definition ast.h:1610
pm_location_t operator_loc
AssocSplatNode::operator_loc.
Definition ast.h:1630
PM_NODE_ALIGNAS struct pm_node * value
AssocSplatNode::value.
Definition ast.h:1620
BackReferenceReadNode.
Definition ast.h:1645
pm_constant_id_t name
BackReferenceReadNode::name.
Definition ast.h:1658
pm_node_t base
The embedded base node.
Definition ast.h:1647
BeginNode.
Definition ast.h:1675
PM_NODE_ALIGNAS struct pm_else_node * else_clause
BeginNode::else_clause.
Definition ast.h:1717
PM_NODE_ALIGNAS struct pm_ensure_node * ensure_clause
BeginNode::ensure_clause.
Definition ast.h:1727
PM_NODE_ALIGNAS struct pm_statements_node * statements
BeginNode::statements.
Definition ast.h:1697
PM_NODE_ALIGNAS struct pm_rescue_node * rescue_clause
BeginNode::rescue_clause.
Definition ast.h:1707
pm_node_t base
The embedded base node.
Definition ast.h:1677
pm_location_t end_keyword_loc
BeginNode::end_keyword_loc.
Definition ast.h:1737
pm_location_t begin_keyword_loc
BeginNode::begin_keyword_loc.
Definition ast.h:1687
BlockArgumentNode.
Definition ast.h:1752
PM_NODE_ALIGNAS struct pm_node * expression
BlockArgumentNode::expression.
Definition ast.h:1764
pm_node_t base
The embedded base node.
Definition ast.h:1754
pm_location_t operator_loc
BlockArgumentNode::operator_loc.
Definition ast.h:1774
BlockLocalVariableNode.
Definition ast.h:1792
pm_node_t base
The embedded base node.
Definition ast.h:1794
pm_constant_id_t name
BlockLocalVariableNode::name.
Definition ast.h:1804
BlockNode.
Definition ast.h:1819
pm_node_t base
The embedded base node.
Definition ast.h:1821
pm_location_t closing_loc
BlockNode::closing_loc.
Definition ast.h:1875
PM_NODE_ALIGNAS struct pm_node * parameters
BlockNode::parameters.
Definition ast.h:1845
pm_location_t opening_loc
BlockNode::opening_loc.
Definition ast.h:1865
pm_constant_id_list_t locals
BlockNode::locals.
Definition ast.h:1831
PM_NODE_ALIGNAS struct pm_node * body
BlockNode::body.
Definition ast.h:1855
BlockParameterNode.
Definition ast.h:1894
pm_location_t operator_loc
BlockParameterNode::operator_loc.
Definition ast.h:1928
pm_location_t name_loc
BlockParameterNode::name_loc.
Definition ast.h:1917
pm_constant_id_t name
BlockParameterNode::name.
Definition ast.h:1907
pm_node_t base
The embedded base node.
Definition ast.h:1896
BlockParametersNode.
Definition ast.h:1947
pm_node_t base
The embedded base node.
Definition ast.h:1949
struct pm_node_list locals
BlockParametersNode::locals.
Definition ast.h:1977
PM_NODE_ALIGNAS struct pm_parameters_node * parameters
BlockParametersNode::parameters.
Definition ast.h:1963
pm_location_t closing_loc
BlockParametersNode::closing_loc.
Definition ast.h:2005
pm_location_t opening_loc
BlockParametersNode::opening_loc.
Definition ast.h:1991
BreakNode.
Definition ast.h:2020
pm_location_t keyword_loc
BreakNode::keyword_loc.
Definition ast.h:2042
pm_node_t base
The embedded base node.
Definition ast.h:2022
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
BreakNode::arguments.
Definition ast.h:2032
CallAndWriteNode.
Definition ast.h:2063
pm_location_t operator_loc
CallAndWriteNode::operator_loc.
Definition ast.h:2125
PM_NODE_ALIGNAS struct pm_node * receiver
CallAndWriteNode::receiver.
Definition ast.h:2075
pm_node_t base
The embedded base node.
Definition ast.h:2065
PM_NODE_ALIGNAS struct pm_node * value
CallAndWriteNode::value.
Definition ast.h:2135
pm_location_t call_operator_loc
CallAndWriteNode::call_operator_loc.
Definition ast.h:2085
pm_location_t message_loc
CallAndWriteNode::message_loc.
Definition ast.h:2095
pm_constant_id_t read_name
CallAndWriteNode::read_name.
Definition ast.h:2105
pm_constant_id_t write_name
CallAndWriteNode::write_name.
Definition ast.h:2115
CallNode.
Definition ast.h:2171
pm_location_t opening_loc
CallNode::opening_loc.
Definition ast.h:2232
pm_location_t closing_loc
CallNode::closing_loc.
Definition ast.h:2252
pm_constant_id_t name
CallNode::name.
Definition ast.h:2212
pm_node_t base
The embedded base node.
Definition ast.h:2173
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
CallNode::arguments.
Definition ast.h:2242
pm_location_t equal_loc
CallNode::equal_loc.
Definition ast.h:2265
pm_location_t call_operator_loc
CallNode::call_operator_loc.
Definition ast.h:2202
pm_location_t message_loc
CallNode::message_loc.
Definition ast.h:2222
PM_NODE_ALIGNAS struct pm_node * block
CallNode::block.
Definition ast.h:2275
PM_NODE_ALIGNAS struct pm_node * receiver
CallNode::receiver.
Definition ast.h:2189
CallOperatorWriteNode.
Definition ast.h:2296
pm_constant_id_t read_name
CallOperatorWriteNode::read_name.
Definition ast.h:2338
pm_constant_id_t binary_operator
CallOperatorWriteNode::binary_operator.
Definition ast.h:2358
pm_location_t binary_operator_loc
CallOperatorWriteNode::binary_operator_loc.
Definition ast.h:2368
pm_node_t base
The embedded base node.
Definition ast.h:2298
pm_constant_id_t write_name
CallOperatorWriteNode::write_name.
Definition ast.h:2348
pm_location_t message_loc
CallOperatorWriteNode::message_loc.
Definition ast.h:2328
PM_NODE_ALIGNAS struct pm_node * receiver
CallOperatorWriteNode::receiver.
Definition ast.h:2308
PM_NODE_ALIGNAS struct pm_node * value
CallOperatorWriteNode::value.
Definition ast.h:2378
pm_location_t call_operator_loc
CallOperatorWriteNode::call_operator_loc.
Definition ast.h:2318
CallOrWriteNode.
Definition ast.h:2399
pm_location_t operator_loc
CallOrWriteNode::operator_loc.
Definition ast.h:2461
pm_location_t call_operator_loc
CallOrWriteNode::call_operator_loc.
Definition ast.h:2421
PM_NODE_ALIGNAS struct pm_node * receiver
CallOrWriteNode::receiver.
Definition ast.h:2411
pm_node_t base
The embedded base node.
Definition ast.h:2401
PM_NODE_ALIGNAS struct pm_node * value
CallOrWriteNode::value.
Definition ast.h:2471
pm_constant_id_t write_name
CallOrWriteNode::write_name.
Definition ast.h:2451
pm_constant_id_t read_name
CallOrWriteNode::read_name.
Definition ast.h:2441
pm_location_t message_loc
CallOrWriteNode::message_loc.
Definition ast.h:2431
CallTargetNode.
Definition ast.h:2500
pm_node_t base
The embedded base node.
Definition ast.h:2502
pm_constant_id_t name
CallTargetNode::name.
Definition ast.h:2532
PM_NODE_ALIGNAS struct pm_node * receiver
CallTargetNode::receiver.
Definition ast.h:2512
pm_location_t call_operator_loc
CallTargetNode::call_operator_loc.
Definition ast.h:2522
pm_location_t message_loc
CallTargetNode::message_loc.
Definition ast.h:2542
CapturePatternNode.
Definition ast.h:2557
pm_location_t operator_loc
CapturePatternNode::operator_loc.
Definition ast.h:2589
pm_node_t base
The embedded base node.
Definition ast.h:2559
PM_NODE_ALIGNAS struct pm_node * value
CapturePatternNode::value.
Definition ast.h:2569
PM_NODE_ALIGNAS struct pm_local_variable_target_node * target
CapturePatternNode::target.
Definition ast.h:2579
CaseMatchNode.
Definition ast.h:2606
pm_location_t end_keyword_loc
CaseMatchNode::end_keyword_loc.
Definition ast.h:2658
struct pm_node_list conditions
CaseMatchNode::conditions.
Definition ast.h:2628
pm_node_t base
The embedded base node.
Definition ast.h:2608
pm_location_t case_keyword_loc
CaseMatchNode::case_keyword_loc.
Definition ast.h:2648
PM_NODE_ALIGNAS struct pm_node * predicate
CaseMatchNode::predicate.
Definition ast.h:2618
PM_NODE_ALIGNAS struct pm_else_node * else_clause
CaseMatchNode::else_clause.
Definition ast.h:2638
CaseNode.
Definition ast.h:2675
PM_NODE_ALIGNAS struct pm_else_node * else_clause
CaseNode::else_clause.
Definition ast.h:2707
struct pm_node_list conditions
CaseNode::conditions.
Definition ast.h:2697
PM_NODE_ALIGNAS struct pm_node * predicate
CaseNode::predicate.
Definition ast.h:2687
pm_node_t base
The embedded base node.
Definition ast.h:2677
pm_location_t case_keyword_loc
CaseNode::case_keyword_loc.
Definition ast.h:2717
pm_location_t end_keyword_loc
CaseNode::end_keyword_loc.
Definition ast.h:2727
ClassNode.
Definition ast.h:2742
pm_location_t class_keyword_loc
ClassNode::class_keyword_loc.
Definition ast.h:2759
pm_location_t end_keyword_loc
ClassNode::end_keyword_loc.
Definition ast.h:2804
pm_constant_id_list_t locals
ClassNode::locals.
Definition ast.h:2749
PM_NODE_ALIGNAS struct pm_node * superclass
ClassNode::superclass.
Definition ast.h:2784
pm_location_t inheritance_operator_loc
ClassNode::inheritance_operator_loc.
Definition ast.h:2774
pm_constant_id_t name
ClassNode::name.
Definition ast.h:2813
pm_node_t base
The embedded base node.
Definition ast.h:2744
PM_NODE_ALIGNAS struct pm_node * constant_path
ClassNode::constant_path.
Definition ast.h:2764
PM_NODE_ALIGNAS struct pm_node * body
ClassNode::body.
Definition ast.h:2794
ClassVariableAndWriteNode.
Definition ast.h:2828
PM_NODE_ALIGNAS struct pm_node * value
ClassVariableAndWriteNode::value.
Definition ast.h:2870
pm_constant_id_t name
ClassVariableAndWriteNode::name.
Definition ast.h:2840
pm_location_t operator_loc
ClassVariableAndWriteNode::operator_loc.
Definition ast.h:2860
pm_node_t base
The embedded base node.
Definition ast.h:2830
pm_location_t name_loc
ClassVariableAndWriteNode::name_loc.
Definition ast.h:2850
ClassVariableOperatorWriteNode.
Definition ast.h:2885
pm_node_t base
The embedded base node.
Definition ast.h:2887
pm_constant_id_t name
ClassVariableOperatorWriteNode::name.
Definition ast.h:2892
PM_NODE_ALIGNAS struct pm_node * value
ClassVariableOperatorWriteNode::value.
Definition ast.h:2907
pm_location_t name_loc
ClassVariableOperatorWriteNode::name_loc.
Definition ast.h:2897
pm_constant_id_t binary_operator
ClassVariableOperatorWriteNode::binary_operator.
Definition ast.h:2912
pm_location_t binary_operator_loc
ClassVariableOperatorWriteNode::binary_operator_loc.
Definition ast.h:2902
ClassVariableOrWriteNode.
Definition ast.h:2927
pm_node_t base
The embedded base node.
Definition ast.h:2929
PM_NODE_ALIGNAS struct pm_node * value
ClassVariableOrWriteNode::value.
Definition ast.h:2949
pm_location_t name_loc
ClassVariableOrWriteNode::name_loc.
Definition ast.h:2939
pm_location_t operator_loc
ClassVariableOrWriteNode::operator_loc.
Definition ast.h:2944
pm_constant_id_t name
ClassVariableOrWriteNode::name.
Definition ast.h:2934
ClassVariableReadNode.
Definition ast.h:2964
pm_node_t base
The embedded base node.
Definition ast.h:2966
pm_constant_id_t name
ClassVariableReadNode::name.
Definition ast.h:2977
ClassVariableTargetNode.
Definition ast.h:2992
pm_node_t base
The embedded base node.
Definition ast.h:2994
pm_constant_id_t name
ClassVariableTargetNode::name.
Definition ast.h:2999
ClassVariableWriteNode.
Definition ast.h:3014
pm_location_t name_loc
ClassVariableWriteNode::name_loc.
Definition ast.h:3037
PM_NODE_ALIGNAS struct pm_node * value
ClassVariableWriteNode::value.
Definition ast.h:3050
pm_node_t base
The embedded base node.
Definition ast.h:3016
pm_location_t operator_loc
ClassVariableWriteNode::operator_loc.
Definition ast.h:3060
pm_constant_id_t name
ClassVariableWriteNode::name.
Definition ast.h:3027
ConstantAndWriteNode.
Definition ast.h:3075
pm_location_t operator_loc
ConstantAndWriteNode::operator_loc.
Definition ast.h:3092
PM_NODE_ALIGNAS struct pm_node * value
ConstantAndWriteNode::value.
Definition ast.h:3097
pm_location_t name_loc
ConstantAndWriteNode::name_loc.
Definition ast.h:3087
pm_constant_id_t name
ConstantAndWriteNode::name.
Definition ast.h:3082
pm_node_t base
The embedded base node.
Definition ast.h:3077
A list of constant IDs.
ConstantOperatorWriteNode.
Definition ast.h:3112
pm_constant_id_t name
ConstantOperatorWriteNode::name.
Definition ast.h:3119
pm_location_t name_loc
ConstantOperatorWriteNode::name_loc.
Definition ast.h:3124
pm_constant_id_t binary_operator
ConstantOperatorWriteNode::binary_operator.
Definition ast.h:3139
pm_location_t binary_operator_loc
ConstantOperatorWriteNode::binary_operator_loc.
Definition ast.h:3129
PM_NODE_ALIGNAS struct pm_node * value
ConstantOperatorWriteNode::value.
Definition ast.h:3134
pm_node_t base
The embedded base node.
Definition ast.h:3114
ConstantOrWriteNode.
Definition ast.h:3154
pm_location_t operator_loc
ConstantOrWriteNode::operator_loc.
Definition ast.h:3171
PM_NODE_ALIGNAS struct pm_node * value
ConstantOrWriteNode::value.
Definition ast.h:3176
pm_location_t name_loc
ConstantOrWriteNode::name_loc.
Definition ast.h:3166
pm_constant_id_t name
ConstantOrWriteNode::name.
Definition ast.h:3161
pm_node_t base
The embedded base node.
Definition ast.h:3156
ConstantPathAndWriteNode.
Definition ast.h:3191
PM_NODE_ALIGNAS struct pm_constant_path_node * target
ConstantPathAndWriteNode::target.
Definition ast.h:3198
pm_node_t base
The embedded base node.
Definition ast.h:3193
PM_NODE_ALIGNAS struct pm_node * value
ConstantPathAndWriteNode::value.
Definition ast.h:3208
pm_location_t operator_loc
ConstantPathAndWriteNode::operator_loc.
Definition ast.h:3203
ConstantPathNode.
Definition ast.h:3223
pm_location_t delimiter_loc
ConstantPathNode::delimiter_loc.
Definition ast.h:3261
pm_node_t base
The embedded base node.
Definition ast.h:3225
PM_NODE_ALIGNAS struct pm_node * parent
ConstantPathNode::parent.
Definition ast.h:3241
pm_location_t name_loc
ConstantPathNode::name_loc.
Definition ast.h:3274
pm_constant_id_t name
ConstantPathNode::name.
Definition ast.h:3248
ConstantPathOperatorWriteNode.
Definition ast.h:3289
PM_NODE_ALIGNAS struct pm_constant_path_node * target
ConstantPathOperatorWriteNode::target.
Definition ast.h:3296
pm_constant_id_t binary_operator
ConstantPathOperatorWriteNode::binary_operator.
Definition ast.h:3311
pm_node_t base
The embedded base node.
Definition ast.h:3291
pm_location_t binary_operator_loc
ConstantPathOperatorWriteNode::binary_operator_loc.
Definition ast.h:3301
PM_NODE_ALIGNAS struct pm_node * value
ConstantPathOperatorWriteNode::value.
Definition ast.h:3306
ConstantPathOrWriteNode.
Definition ast.h:3326
pm_location_t operator_loc
ConstantPathOrWriteNode::operator_loc.
Definition ast.h:3338
pm_node_t base
The embedded base node.
Definition ast.h:3328
PM_NODE_ALIGNAS struct pm_node * value
ConstantPathOrWriteNode::value.
Definition ast.h:3343
PM_NODE_ALIGNAS struct pm_constant_path_node * target
ConstantPathOrWriteNode::target.
Definition ast.h:3333
ConstantPathTargetNode.
Definition ast.h:3358
pm_node_t base
The embedded base node.
Definition ast.h:3360
pm_location_t delimiter_loc
ConstantPathTargetNode::delimiter_loc.
Definition ast.h:3375
pm_constant_id_t name
ConstantPathTargetNode::name.
Definition ast.h:3370
PM_NODE_ALIGNAS struct pm_node * parent
ConstantPathTargetNode::parent.
Definition ast.h:3365
pm_location_t name_loc
ConstantPathTargetNode::name_loc.
Definition ast.h:3380
ConstantPathWriteNode.
Definition ast.h:3401
PM_NODE_ALIGNAS struct pm_node * value
ConstantPathWriteNode::value.
Definition ast.h:3436
pm_location_t operator_loc
ConstantPathWriteNode::operator_loc.
Definition ast.h:3426
pm_node_t base
The embedded base node.
Definition ast.h:3403
PM_NODE_ALIGNAS struct pm_constant_path_node * target
ConstantPathWriteNode::target.
Definition ast.h:3416
ConstantReadNode.
Definition ast.h:3451
pm_node_t base
The embedded base node.
Definition ast.h:3453
pm_constant_id_t name
ConstantReadNode::name.
Definition ast.h:3464
ConstantTargetNode.
Definition ast.h:3479
pm_node_t base
The embedded base node.
Definition ast.h:3481
pm_constant_id_t name
ConstantTargetNode::name.
Definition ast.h:3486
ConstantWriteNode.
Definition ast.h:3501
pm_node_t base
The embedded base node.
Definition ast.h:3503
PM_NODE_ALIGNAS struct pm_node * value
ConstantWriteNode::value.
Definition ast.h:3537
pm_constant_id_t name
ConstantWriteNode::name.
Definition ast.h:3514
pm_location_t name_loc
ConstantWriteNode::name_loc.
Definition ast.h:3524
pm_location_t operator_loc
ConstantWriteNode::operator_loc.
Definition ast.h:3547
DefNode.
Definition ast.h:3563
pm_location_t end_keyword_loc
DefNode::end_keyword_loc.
Definition ast.h:3625
pm_constant_id_t name
DefNode::name.
Definition ast.h:3570
pm_location_t name_loc
DefNode::name_loc.
Definition ast.h:3575
pm_location_t rparen_loc
DefNode::rparen_loc.
Definition ast.h:3615
PM_NODE_ALIGNAS struct pm_parameters_node * parameters
DefNode::parameters.
Definition ast.h:3585
pm_location_t equal_loc
DefNode::equal_loc.
Definition ast.h:3620
pm_location_t def_keyword_loc
DefNode::def_keyword_loc.
Definition ast.h:3600
pm_node_t base
The embedded base node.
Definition ast.h:3565
pm_location_t lparen_loc
DefNode::lparen_loc.
Definition ast.h:3610
PM_NODE_ALIGNAS struct pm_node * receiver
DefNode::receiver.
Definition ast.h:3580
PM_NODE_ALIGNAS struct pm_node * body
DefNode::body.
Definition ast.h:3590
pm_location_t operator_loc
DefNode::operator_loc.
Definition ast.h:3605
pm_constant_id_list_t locals
DefNode::locals.
Definition ast.h:3595
DefinedNode.
Definition ast.h:3640
PM_NODE_ALIGNAS struct pm_node * value
DefinedNode::value.
Definition ast.h:3652
pm_location_t lparen_loc
DefinedNode::lparen_loc.
Definition ast.h:3647
pm_node_t base
The embedded base node.
Definition ast.h:3642
pm_location_t rparen_loc
DefinedNode::rparen_loc.
Definition ast.h:3657
pm_location_t keyword_loc
DefinedNode::keyword_loc.
Definition ast.h:3662
ElseNode.
Definition ast.h:3677
pm_location_t else_keyword_loc
ElseNode::else_keyword_loc.
Definition ast.h:3684
pm_node_t base
The embedded base node.
Definition ast.h:3679
PM_NODE_ALIGNAS struct pm_statements_node * statements
ElseNode::statements.
Definition ast.h:3689
pm_location_t end_keyword_loc
ElseNode::end_keyword_loc.
Definition ast.h:3694
EmbeddedStatementsNode.
Definition ast.h:3709
PM_NODE_ALIGNAS struct pm_statements_node * statements
EmbeddedStatementsNode::statements.
Definition ast.h:3721
pm_location_t closing_loc
EmbeddedStatementsNode::closing_loc.
Definition ast.h:3726
pm_node_t base
The embedded base node.
Definition ast.h:3711
pm_location_t opening_loc
EmbeddedStatementsNode::opening_loc.
Definition ast.h:3716
EmbeddedVariableNode.
Definition ast.h:3741
PM_NODE_ALIGNAS struct pm_node * variable
EmbeddedVariableNode::variable.
Definition ast.h:3753
pm_location_t operator_loc
EmbeddedVariableNode::operator_loc.
Definition ast.h:3748
pm_node_t base
The embedded base node.
Definition ast.h:3743
EnsureNode.
Definition ast.h:3772
PM_NODE_ALIGNAS struct pm_statements_node * statements
EnsureNode::statements.
Definition ast.h:3784
pm_node_t base
The embedded base node.
Definition ast.h:3774
pm_location_t ensure_keyword_loc
EnsureNode::ensure_keyword_loc.
Definition ast.h:3779
pm_location_t end_keyword_loc
EnsureNode::end_keyword_loc.
Definition ast.h:3789
ErrorRecoveryNode.
Definition ast.h:3801
PM_NODE_ALIGNAS struct pm_node * unexpected
ErrorRecoveryNode::unexpected.
Definition ast.h:3810
pm_node_t base
The embedded base node.
Definition ast.h:3803
FalseNode.
Definition ast.h:3825
pm_node_t base
The embedded base node.
Definition ast.h:3827
FindPatternNode.
Definition ast.h:3851
PM_NODE_ALIGNAS struct pm_splat_node * left
FindPatternNode::left.
Definition ast.h:3876
PM_NODE_ALIGNAS struct pm_splat_node * right
FindPatternNode::right.
Definition ast.h:3902
pm_location_t opening_loc
FindPatternNode::opening_loc.
Definition ast.h:3915
pm_node_t base
The embedded base node.
Definition ast.h:3853
PM_NODE_ALIGNAS struct pm_node * constant
FindPatternNode::constant.
Definition ast.h:3863
struct pm_node_list requireds
FindPatternNode::requireds.
Definition ast.h:3889
pm_location_t closing_loc
FindPatternNode::closing_loc.
Definition ast.h:3928
FlipFlopNode.
Definition ast.h:3946
PM_NODE_ALIGNAS struct pm_node * left
FlipFlopNode::left.
Definition ast.h:3953
pm_node_t base
The embedded base node.
Definition ast.h:3948
pm_location_t operator_loc
FlipFlopNode::operator_loc.
Definition ast.h:3963
PM_NODE_ALIGNAS struct pm_node * right
FlipFlopNode::right.
Definition ast.h:3958
FloatNode.
Definition ast.h:3978
double value
FloatNode::value.
Definition ast.h:3987
pm_node_t base
The embedded base node.
Definition ast.h:3980
ForNode.
Definition ast.h:4002
PM_NODE_ALIGNAS struct pm_node * index
ForNode::index.
Definition ast.h:4014
PM_NODE_ALIGNAS struct pm_node * collection
ForNode::collection.
Definition ast.h:4024
pm_node_t base
The embedded base node.
Definition ast.h:4004
PM_NODE_ALIGNAS struct pm_statements_node * statements
ForNode::statements.
Definition ast.h:4036
pm_location_t end_keyword_loc
ForNode::end_keyword_loc.
Definition ast.h:4076
pm_location_t for_keyword_loc
ForNode::for_keyword_loc.
Definition ast.h:4046
pm_location_t do_keyword_loc
ForNode::do_keyword_loc.
Definition ast.h:4066
pm_location_t in_keyword_loc
ForNode::in_keyword_loc.
Definition ast.h:4056
ForwardingArgumentsNode.
Definition ast.h:4093
pm_node_t base
The embedded base node.
Definition ast.h:4095
ForwardingParameterNode.
Definition ast.h:4111
pm_node_t base
The embedded base node.
Definition ast.h:4113
ForwardingSuperNode.
Definition ast.h:4133
pm_node_t base
The embedded base node.
Definition ast.h:4135
PM_NODE_ALIGNAS struct pm_block_node * block
ForwardingSuperNode::block.
Definition ast.h:4153
pm_location_t keyword_loc
ForwardingSuperNode::keyword_loc.
Definition ast.h:4146
GlobalVariableAndWriteNode.
Definition ast.h:4168
pm_location_t operator_loc
GlobalVariableAndWriteNode::operator_loc.
Definition ast.h:4185
pm_node_t base
The embedded base node.
Definition ast.h:4170
PM_NODE_ALIGNAS struct pm_node * value
GlobalVariableAndWriteNode::value.
Definition ast.h:4190
pm_location_t name_loc
GlobalVariableAndWriteNode::name_loc.
Definition ast.h:4180
pm_constant_id_t name
GlobalVariableAndWriteNode::name.
Definition ast.h:4175
GlobalVariableOperatorWriteNode.
Definition ast.h:4205
PM_NODE_ALIGNAS struct pm_node * value
GlobalVariableOperatorWriteNode::value.
Definition ast.h:4227
pm_constant_id_t name
GlobalVariableOperatorWriteNode::name.
Definition ast.h:4212
pm_constant_id_t binary_operator
GlobalVariableOperatorWriteNode::binary_operator.
Definition ast.h:4232
pm_location_t name_loc
GlobalVariableOperatorWriteNode::name_loc.
Definition ast.h:4217
pm_node_t base
The embedded base node.
Definition ast.h:4207
pm_location_t binary_operator_loc
GlobalVariableOperatorWriteNode::binary_operator_loc.
Definition ast.h:4222
GlobalVariableOrWriteNode.
Definition ast.h:4247
pm_constant_id_t name
GlobalVariableOrWriteNode::name.
Definition ast.h:4254
pm_location_t name_loc
GlobalVariableOrWriteNode::name_loc.
Definition ast.h:4259
pm_node_t base
The embedded base node.
Definition ast.h:4249
pm_location_t operator_loc
GlobalVariableOrWriteNode::operator_loc.
Definition ast.h:4264
PM_NODE_ALIGNAS struct pm_node * value
GlobalVariableOrWriteNode::value.
Definition ast.h:4269
GlobalVariableReadNode.
Definition ast.h:4284
pm_node_t base
The embedded base node.
Definition ast.h:4286
pm_constant_id_t name
GlobalVariableReadNode::name.
Definition ast.h:4297
GlobalVariableTargetNode.
Definition ast.h:4312
pm_constant_id_t name
GlobalVariableTargetNode::name.
Definition ast.h:4319
pm_node_t base
The embedded base node.
Definition ast.h:4314
GlobalVariableWriteNode.
Definition ast.h:4334
pm_location_t name_loc
GlobalVariableWriteNode::name_loc.
Definition ast.h:4357
pm_location_t operator_loc
GlobalVariableWriteNode::operator_loc.
Definition ast.h:4380
pm_constant_id_t name
GlobalVariableWriteNode::name.
Definition ast.h:4347
pm_node_t base
The embedded base node.
Definition ast.h:4336
PM_NODE_ALIGNAS struct pm_node * value
GlobalVariableWriteNode::value.
Definition ast.h:4370
HashNode.
Definition ast.h:4395
struct pm_node_list elements
HashNode::elements.
Definition ast.h:4420
pm_node_t base
The embedded base node.
Definition ast.h:4397
pm_location_t closing_loc
HashNode::closing_loc.
Definition ast.h:4430
pm_location_t opening_loc
HashNode::opening_loc.
Definition ast.h:4407
HashPatternNode.
Definition ast.h:4454
PM_NODE_ALIGNAS struct pm_node * constant
HashPatternNode::constant.
Definition ast.h:4469
struct pm_node_list elements
HashPatternNode::elements.
Definition ast.h:4479
pm_location_t opening_loc
HashPatternNode::opening_loc.
Definition ast.h:4508
pm_node_t base
The embedded base node.
Definition ast.h:4456
pm_location_t closing_loc
HashPatternNode::closing_loc.
Definition ast.h:4521
PM_NODE_ALIGNAS struct pm_node * rest
HashPatternNode::rest.
Definition ast.h:4495
IfNode.
Definition ast.h:4542
PM_NODE_ALIGNAS struct pm_node * predicate
IfNode::predicate.
Definition ast.h:4574
pm_location_t end_keyword_loc
IfNode::end_keyword_loc.
Definition ast.h:4632
pm_location_t if_keyword_loc
IfNode::if_keyword_loc.
Definition ast.h:4556
PM_NODE_ALIGNAS struct pm_statements_node * statements
IfNode::statements.
Definition ast.h:4601
pm_node_t base
The embedded base node.
Definition ast.h:4544
pm_location_t then_keyword_loc
IfNode::then_keyword_loc.
Definition ast.h:4587
PM_NODE_ALIGNAS struct pm_node * subsequent
IfNode::subsequent.
Definition ast.h:4620
ImaginaryNode.
Definition ast.h:4647
pm_node_t base
The embedded base node.
Definition ast.h:4649
PM_NODE_ALIGNAS struct pm_node * numeric
ImaginaryNode::numeric.
Definition ast.h:4654
ImplicitNode.
Definition ast.h:4675
pm_node_t base
The embedded base node.
Definition ast.h:4677
PM_NODE_ALIGNAS struct pm_node * value
ImplicitNode::value.
Definition ast.h:4682
ImplicitRestNode.
Definition ast.h:4706
pm_node_t base
The embedded base node.
Definition ast.h:4708
InNode.
Definition ast.h:4723
pm_location_t in_keyword_loc
InNode::in_keyword_loc.
Definition ast.h:4740
PM_NODE_ALIGNAS struct pm_node * pattern
InNode::pattern.
Definition ast.h:4730
PM_NODE_ALIGNAS struct pm_statements_node * statements
InNode::statements.
Definition ast.h:4735
pm_location_t then_keyword_loc
InNode::then_keyword_loc.
Definition ast.h:4745
pm_node_t base
The embedded base node.
Definition ast.h:4725
IndexAndWriteNode.
Definition ast.h:4766
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
IndexAndWriteNode::arguments.
Definition ast.h:4788
pm_node_t base
The embedded base node.
Definition ast.h:4768
pm_location_t operator_loc
IndexAndWriteNode::operator_loc.
Definition ast.h:4803
pm_location_t closing_loc
IndexAndWriteNode::closing_loc.
Definition ast.h:4793
pm_location_t opening_loc
IndexAndWriteNode::opening_loc.
Definition ast.h:4783
pm_location_t call_operator_loc
IndexAndWriteNode::call_operator_loc.
Definition ast.h:4778
PM_NODE_ALIGNAS struct pm_block_argument_node * block
IndexAndWriteNode::block.
Definition ast.h:4798
PM_NODE_ALIGNAS struct pm_node * receiver
IndexAndWriteNode::receiver.
Definition ast.h:4773
PM_NODE_ALIGNAS struct pm_node * value
IndexAndWriteNode::value.
Definition ast.h:4808
IndexOperatorWriteNode.
Definition ast.h:4829
PM_NODE_ALIGNAS struct pm_block_argument_node * block
IndexOperatorWriteNode::block.
Definition ast.h:4861
pm_node_t base
The embedded base node.
Definition ast.h:4831
PM_NODE_ALIGNAS struct pm_node * receiver
IndexOperatorWriteNode::receiver.
Definition ast.h:4836
pm_location_t binary_operator_loc
IndexOperatorWriteNode::binary_operator_loc.
Definition ast.h:4871
PM_NODE_ALIGNAS struct pm_node * value
IndexOperatorWriteNode::value.
Definition ast.h:4876
pm_location_t opening_loc
IndexOperatorWriteNode::opening_loc.
Definition ast.h:4846
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
IndexOperatorWriteNode::arguments.
Definition ast.h:4851
pm_location_t call_operator_loc
IndexOperatorWriteNode::call_operator_loc.
Definition ast.h:4841
pm_location_t closing_loc
IndexOperatorWriteNode::closing_loc.
Definition ast.h:4856
pm_constant_id_t binary_operator
IndexOperatorWriteNode::binary_operator.
Definition ast.h:4866
IndexOrWriteNode.
Definition ast.h:4897
pm_location_t closing_loc
IndexOrWriteNode::closing_loc.
Definition ast.h:4924
pm_location_t call_operator_loc
IndexOrWriteNode::call_operator_loc.
Definition ast.h:4909
pm_node_t base
The embedded base node.
Definition ast.h:4899
pm_location_t operator_loc
IndexOrWriteNode::operator_loc.
Definition ast.h:4934
pm_location_t opening_loc
IndexOrWriteNode::opening_loc.
Definition ast.h:4914
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
IndexOrWriteNode::arguments.
Definition ast.h:4919
PM_NODE_ALIGNAS struct pm_node * value
IndexOrWriteNode::value.
Definition ast.h:4939
PM_NODE_ALIGNAS struct pm_node * receiver
IndexOrWriteNode::receiver.
Definition ast.h:4904
PM_NODE_ALIGNAS struct pm_block_argument_node * block
IndexOrWriteNode::block.
Definition ast.h:4929
IndexTargetNode.
Definition ast.h:4968
pm_node_t base
The embedded base node.
Definition ast.h:4970
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
IndexTargetNode::arguments.
Definition ast.h:4985
pm_location_t closing_loc
IndexTargetNode::closing_loc.
Definition ast.h:4990
PM_NODE_ALIGNAS struct pm_block_argument_node * block
IndexTargetNode::block.
Definition ast.h:4995
pm_location_t opening_loc
IndexTargetNode::opening_loc.
Definition ast.h:4980
PM_NODE_ALIGNAS struct pm_node * receiver
IndexTargetNode::receiver.
Definition ast.h:4975
InstanceVariableAndWriteNode.
Definition ast.h:5010
PM_NODE_ALIGNAS struct pm_node * value
InstanceVariableAndWriteNode::value.
Definition ast.h:5032
pm_location_t operator_loc
InstanceVariableAndWriteNode::operator_loc.
Definition ast.h:5027
pm_location_t name_loc
InstanceVariableAndWriteNode::name_loc.
Definition ast.h:5022
pm_node_t base
The embedded base node.
Definition ast.h:5012
pm_constant_id_t name
InstanceVariableAndWriteNode::name.
Definition ast.h:5017
InstanceVariableOperatorWriteNode.
Definition ast.h:5047
pm_constant_id_t binary_operator
InstanceVariableOperatorWriteNode::binary_operator.
Definition ast.h:5074
PM_NODE_ALIGNAS struct pm_node * value
InstanceVariableOperatorWriteNode::value.
Definition ast.h:5069
pm_location_t binary_operator_loc
InstanceVariableOperatorWriteNode::binary_operator_loc.
Definition ast.h:5064
pm_constant_id_t name
InstanceVariableOperatorWriteNode::name.
Definition ast.h:5054
pm_node_t base
The embedded base node.
Definition ast.h:5049
pm_location_t name_loc
InstanceVariableOperatorWriteNode::name_loc.
Definition ast.h:5059
InstanceVariableOrWriteNode.
Definition ast.h:5089
pm_location_t operator_loc
InstanceVariableOrWriteNode::operator_loc.
Definition ast.h:5106
pm_node_t base
The embedded base node.
Definition ast.h:5091
pm_location_t name_loc
InstanceVariableOrWriteNode::name_loc.
Definition ast.h:5101
pm_constant_id_t name
InstanceVariableOrWriteNode::name.
Definition ast.h:5096
PM_NODE_ALIGNAS struct pm_node * value
InstanceVariableOrWriteNode::value.
Definition ast.h:5111
InstanceVariableReadNode.
Definition ast.h:5126
pm_constant_id_t name
InstanceVariableReadNode::name.
Definition ast.h:5139
pm_node_t base
The embedded base node.
Definition ast.h:5128
InstanceVariableTargetNode.
Definition ast.h:5154
pm_constant_id_t name
InstanceVariableTargetNode::name.
Definition ast.h:5161
pm_node_t base
The embedded base node.
Definition ast.h:5156
InstanceVariableWriteNode.
Definition ast.h:5176
pm_location_t operator_loc
InstanceVariableWriteNode::operator_loc.
Definition ast.h:5222
PM_NODE_ALIGNAS struct pm_node * value
InstanceVariableWriteNode::value.
Definition ast.h:5212
pm_constant_id_t name
InstanceVariableWriteNode::name.
Definition ast.h:5189
pm_node_t base
The embedded base node.
Definition ast.h:5178
pm_location_t name_loc
InstanceVariableWriteNode::name_loc.
Definition ast.h:5199
IntegerNode.
Definition ast.h:5243
pm_integer_t value
IntegerNode::value.
Definition ast.h:5252
pm_node_t base
The embedded base node.
Definition ast.h:5245
A structure represents an arbitrary-sized integer.
Definition integer.h:19
InterpolatedMatchLastLineNode.
Definition ast.h:5280
pm_node_t base
The embedded base node.
Definition ast.h:5282
pm_location_t closing_loc
InterpolatedMatchLastLineNode::closing_loc.
Definition ast.h:5297
struct pm_node_list parts
InterpolatedMatchLastLineNode::parts.
Definition ast.h:5292
pm_location_t opening_loc
InterpolatedMatchLastLineNode::opening_loc.
Definition ast.h:5287
InterpolatedRegularExpressionNode.
Definition ast.h:5325
pm_location_t opening_loc
InterpolatedRegularExpressionNode::opening_loc.
Definition ast.h:5332
struct pm_node_list parts
InterpolatedRegularExpressionNode::parts.
Definition ast.h:5337
pm_node_t base
The embedded base node.
Definition ast.h:5327
pm_location_t closing_loc
InterpolatedRegularExpressionNode::closing_loc.
Definition ast.h:5342
InterpolatedStringNode.
Definition ast.h:5361
pm_node_t base
The embedded base node.
Definition ast.h:5363
pm_location_t closing_loc
InterpolatedStringNode::closing_loc.
Definition ast.h:5378
pm_location_t opening_loc
InterpolatedStringNode::opening_loc.
Definition ast.h:5368
struct pm_node_list parts
InterpolatedStringNode::parts.
Definition ast.h:5373
InterpolatedSymbolNode.
Definition ast.h:5393
struct pm_node_list parts
InterpolatedSymbolNode::parts.
Definition ast.h:5405
pm_location_t closing_loc
InterpolatedSymbolNode::closing_loc.
Definition ast.h:5410
pm_location_t opening_loc
InterpolatedSymbolNode::opening_loc.
Definition ast.h:5400
pm_node_t base
The embedded base node.
Definition ast.h:5395
InterpolatedXStringNode.
Definition ast.h:5425
pm_location_t opening_loc
InterpolatedXStringNode::opening_loc.
Definition ast.h:5432
pm_location_t closing_loc
InterpolatedXStringNode::closing_loc.
Definition ast.h:5442
pm_node_t base
The embedded base node.
Definition ast.h:5427
struct pm_node_list parts
InterpolatedXStringNode::parts.
Definition ast.h:5437
ItLocalVariableReadNode.
Definition ast.h:5457
pm_node_t base
The embedded base node.
Definition ast.h:5459
ItParametersNode.
Definition ast.h:5474
pm_node_t base
The embedded base node.
Definition ast.h:5476
KeywordHashNode.
Definition ast.h:5494
pm_node_t base
The embedded base node.
Definition ast.h:5496
struct pm_node_list elements
KeywordHashNode::elements.
Definition ast.h:5501
KeywordRestParameterNode.
Definition ast.h:5520
pm_node_t base
The embedded base node.
Definition ast.h:5522
pm_constant_id_t name
KeywordRestParameterNode::name.
Definition ast.h:5527
pm_location_t operator_loc
KeywordRestParameterNode::operator_loc.
Definition ast.h:5537
pm_location_t name_loc
KeywordRestParameterNode::name_loc.
Definition ast.h:5532
LambdaNode.
Definition ast.h:5552
pm_location_t closing_loc
LambdaNode::closing_loc.
Definition ast.h:5574
pm_node_t base
The embedded base node.
Definition ast.h:5554
pm_location_t opening_loc
LambdaNode::opening_loc.
Definition ast.h:5569
pm_location_t operator_loc
LambdaNode::operator_loc.
Definition ast.h:5564
pm_constant_id_list_t locals
LambdaNode::locals.
Definition ast.h:5559
PM_NODE_ALIGNAS struct pm_node * body
LambdaNode::body.
Definition ast.h:5584
PM_NODE_ALIGNAS struct pm_node * parameters
LambdaNode::parameters.
Definition ast.h:5579
LocalVariableAndWriteNode.
Definition ast.h:5599
pm_constant_id_t name
LocalVariableAndWriteNode::name.
Definition ast.h:5621
pm_node_t base
The embedded base node.
Definition ast.h:5601
uint32_t depth
LocalVariableAndWriteNode::depth.
Definition ast.h:5626
pm_location_t operator_loc
LocalVariableAndWriteNode::operator_loc.
Definition ast.h:5611
PM_NODE_ALIGNAS struct pm_node * value
LocalVariableAndWriteNode::value.
Definition ast.h:5616
pm_location_t name_loc
LocalVariableAndWriteNode::name_loc.
Definition ast.h:5606
LocalVariableOperatorWriteNode.
Definition ast.h:5641
uint32_t depth
LocalVariableOperatorWriteNode::depth.
Definition ast.h:5673
pm_constant_id_t binary_operator
LocalVariableOperatorWriteNode::binary_operator.
Definition ast.h:5668
pm_node_t base
The embedded base node.
Definition ast.h:5643
pm_location_t name_loc
LocalVariableOperatorWriteNode::name_loc.
Definition ast.h:5648
pm_location_t binary_operator_loc
LocalVariableOperatorWriteNode::binary_operator_loc.
Definition ast.h:5653
PM_NODE_ALIGNAS struct pm_node * value
LocalVariableOperatorWriteNode::value.
Definition ast.h:5658
pm_constant_id_t name
LocalVariableOperatorWriteNode::name.
Definition ast.h:5663
LocalVariableOrWriteNode.
Definition ast.h:5688
PM_NODE_ALIGNAS struct pm_node * value
LocalVariableOrWriteNode::value.
Definition ast.h:5705
uint32_t depth
LocalVariableOrWriteNode::depth.
Definition ast.h:5715
pm_location_t operator_loc
LocalVariableOrWriteNode::operator_loc.
Definition ast.h:5700
pm_node_t base
The embedded base node.
Definition ast.h:5690
pm_constant_id_t name
LocalVariableOrWriteNode::name.
Definition ast.h:5710
pm_location_t name_loc
LocalVariableOrWriteNode::name_loc.
Definition ast.h:5695
LocalVariableReadNode.
Definition ast.h:5730
uint32_t depth
LocalVariableReadNode::depth.
Definition ast.h:5760
pm_constant_id_t name
LocalVariableReadNode::name.
Definition ast.h:5747
pm_node_t base
The embedded base node.
Definition ast.h:5732
LocalVariableTargetNode.
Definition ast.h:5778
uint32_t depth
LocalVariableTargetNode::depth.
Definition ast.h:5790
pm_constant_id_t name
LocalVariableTargetNode::name.
Definition ast.h:5785
pm_node_t base
The embedded base node.
Definition ast.h:5780
LocalVariableWriteNode.
Definition ast.h:5805
PM_NODE_ALIGNAS struct pm_node * value
LocalVariableWriteNode::value.
Definition ast.h:5858
pm_location_t operator_loc
LocalVariableWriteNode::operator_loc.
Definition ast.h:5868
pm_location_t name_loc
LocalVariableWriteNode::name_loc.
Definition ast.h:5841
pm_node_t base
The embedded base node.
Definition ast.h:5807
uint32_t depth
LocalVariableWriteNode::depth.
Definition ast.h:5831
pm_constant_id_t name
LocalVariableWriteNode::name.
Definition ast.h:5818
This struct represents a slice in the source code, defined by an offset and a length.
Definition ast.h:579
uint32_t start
The offset of the location from the start of the source.
Definition ast.h:581
uint32_t length
The length of the location.
Definition ast.h:584
MatchLastLineNode.
Definition ast.h:5896
pm_location_t content_loc
MatchLastLineNode::content_loc.
Definition ast.h:5908
pm_location_t opening_loc
MatchLastLineNode::opening_loc.
Definition ast.h:5903
pm_location_t closing_loc
MatchLastLineNode::closing_loc.
Definition ast.h:5913
pm_string_t unescaped
MatchLastLineNode::unescaped.
Definition ast.h:5918
pm_node_t base
The embedded base node.
Definition ast.h:5898
MatchPredicateNode.
Definition ast.h:5933
pm_location_t keyword_loc
MatchPredicateNode::keyword_loc.
Definition ast.h:5950
PM_NODE_ALIGNAS struct pm_node * pattern
MatchPredicateNode::pattern.
Definition ast.h:5945
PM_NODE_ALIGNAS struct pm_node * value
MatchPredicateNode::value.
Definition ast.h:5940
pm_node_t base
The embedded base node.
Definition ast.h:5935
MatchRequiredNode.
Definition ast.h:5965
pm_node_t base
The embedded base node.
Definition ast.h:5967
pm_location_t operator_loc
MatchRequiredNode::operator_loc.
Definition ast.h:6036
PM_NODE_ALIGNAS struct pm_node * pattern
MatchRequiredNode::pattern.
Definition ast.h:6026
PM_NODE_ALIGNAS struct pm_node * value
MatchRequiredNode::value.
Definition ast.h:5977
MatchWriteNode.
Definition ast.h:6051
pm_node_t base
The embedded base node.
Definition ast.h:6053
PM_NODE_ALIGNAS struct pm_call_node * call
MatchWriteNode::call.
Definition ast.h:6058
struct pm_node_list targets
MatchWriteNode::targets.
Definition ast.h:6063
ModuleNode.
Definition ast.h:6078
pm_location_t end_keyword_loc
ModuleNode::end_keyword_loc.
Definition ast.h:6105
PM_NODE_ALIGNAS struct pm_node * constant_path
ModuleNode::constant_path.
Definition ast.h:6095
PM_NODE_ALIGNAS struct pm_node * body
ModuleNode::body.
Definition ast.h:6100
pm_constant_id_list_t locals
ModuleNode::locals.
Definition ast.h:6085
pm_node_t base
The embedded base node.
Definition ast.h:6080
pm_location_t module_keyword_loc
ModuleNode::module_keyword_loc.
Definition ast.h:6090
pm_constant_id_t name
ModuleNode::name.
Definition ast.h:6110
MultiTargetNode.
Definition ast.h:6130
PM_NODE_ALIGNAS struct pm_node * rest
MultiTargetNode::rest.
Definition ast.h:6167
pm_node_t base
The embedded base node.
Definition ast.h:6132
pm_location_t lparen_loc
MultiTargetNode::lparen_loc.
Definition ast.h:6187
struct pm_node_list lefts
MultiTargetNode::lefts.
Definition ast.h:6147
pm_location_t rparen_loc
MultiTargetNode::rparen_loc.
Definition ast.h:6197
struct pm_node_list rights
MultiTargetNode::rights.
Definition ast.h:6177
MultiWriteNode.
Definition ast.h:6212
pm_location_t rparen_loc
MultiWriteNode::rparen_loc.
Definition ast.h:6279
PM_NODE_ALIGNAS struct pm_node * rest
MultiWriteNode::rest.
Definition ast.h:6249
struct pm_node_list rights
MultiWriteNode::rights.
Definition ast.h:6259
pm_location_t operator_loc
MultiWriteNode::operator_loc.
Definition ast.h:6289
PM_NODE_ALIGNAS struct pm_node * value
MultiWriteNode::value.
Definition ast.h:6299
pm_location_t lparen_loc
MultiWriteNode::lparen_loc.
Definition ast.h:6269
struct pm_node_list lefts
MultiWriteNode::lefts.
Definition ast.h:6229
pm_node_t base
The embedded base node.
Definition ast.h:6214
NextNode.
Definition ast.h:6314
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
NextNode::arguments.
Definition ast.h:6321
pm_node_t base
The embedded base node.
Definition ast.h:6316
pm_location_t keyword_loc
NextNode::keyword_loc.
Definition ast.h:6326
NilNode.
Definition ast.h:6341
pm_node_t base
The embedded base node.
Definition ast.h:6343
NoBlockParameterNode.
Definition ast.h:6359
pm_location_t keyword_loc
NoBlockParameterNode::keyword_loc.
Definition ast.h:6371
pm_node_t base
The embedded base node.
Definition ast.h:6361
pm_location_t operator_loc
NoBlockParameterNode::operator_loc.
Definition ast.h:6366
NoKeywordsParameterNode.
Definition ast.h:6387
pm_location_t keyword_loc
NoKeywordsParameterNode::keyword_loc.
Definition ast.h:6399
pm_location_t operator_loc
NoKeywordsParameterNode::operator_loc.
Definition ast.h:6394
pm_node_t base
The embedded base node.
Definition ast.h:6389
A list of nodes in the source, most often used for lists of children.
Definition ast.h:592
uint32_t size
The number of nodes in the list.
Definition ast.h:598
struct pm_node ** nodes
The nodes in the list.
Definition ast.h:601
This is the base structure that represents a node in the syntax tree.
Definition ast.h:1091
pm_node_type_t type
This represents the type of the node.
Definition ast.h:1096
uint32_t node_id
The unique identifier for this node, which is deterministic based on the source.
Definition ast.h:1110
pm_node_flags_t flags
This represents any flags on the node.
Definition ast.h:1102
pm_location_t location
This is the location of the node in the source.
Definition ast.h:1116
NumberedParametersNode.
Definition ast.h:6414
pm_node_t base
The embedded base node.
Definition ast.h:6416
uint8_t maximum
NumberedParametersNode::maximum.
Definition ast.h:6421
NumberedReferenceReadNode.
Definition ast.h:6436
pm_node_t base
The embedded base node.
Definition ast.h:6438
uint32_t number
NumberedReferenceReadNode::number.
Definition ast.h:6451
OptionalKeywordParameterNode.
Definition ast.h:6470
pm_node_t base
The embedded base node.
Definition ast.h:6472
pm_constant_id_t name
OptionalKeywordParameterNode::name.
Definition ast.h:6477
PM_NODE_ALIGNAS struct pm_node * value
OptionalKeywordParameterNode::value.
Definition ast.h:6487
pm_location_t name_loc
OptionalKeywordParameterNode::name_loc.
Definition ast.h:6482
OptionalParameterNode.
Definition ast.h:6506
pm_location_t name_loc
OptionalParameterNode::name_loc.
Definition ast.h:6518
pm_constant_id_t name
OptionalParameterNode::name.
Definition ast.h:6513
pm_node_t base
The embedded base node.
Definition ast.h:6508
pm_location_t operator_loc
OptionalParameterNode::operator_loc.
Definition ast.h:6523
PM_NODE_ALIGNAS struct pm_node * value
OptionalParameterNode::value.
Definition ast.h:6528
OrNode.
Definition ast.h:6543
PM_NODE_ALIGNAS struct pm_node * right
OrNode::right.
Definition ast.h:6571
pm_node_t base
The embedded base node.
Definition ast.h:6545
PM_NODE_ALIGNAS struct pm_node * left
OrNode::left.
Definition ast.h:6558
pm_location_t operator_loc
OrNode::operator_loc.
Definition ast.h:6581
ParametersNode.
Definition ast.h:6597
PM_NODE_ALIGNAS struct pm_node * block
ParametersNode::block.
Definition ast.h:6634
struct pm_node_list requireds
ParametersNode::requireds.
Definition ast.h:6604
struct pm_node_list optionals
ParametersNode::optionals.
Definition ast.h:6609
struct pm_node_list posts
ParametersNode::posts.
Definition ast.h:6619
pm_node_t base
The embedded base node.
Definition ast.h:6599
PM_NODE_ALIGNAS struct pm_node * rest
ParametersNode::rest.
Definition ast.h:6614
struct pm_node_list keywords
ParametersNode::keywords.
Definition ast.h:6624
PM_NODE_ALIGNAS struct pm_node * keyword_rest
ParametersNode::keyword_rest.
Definition ast.h:6629
ParenthesesNode.
Definition ast.h:6652
pm_location_t closing_loc
ParenthesesNode::closing_loc.
Definition ast.h:6669
pm_node_t base
The embedded base node.
Definition ast.h:6654
pm_location_t opening_loc
ParenthesesNode::opening_loc.
Definition ast.h:6664
PM_NODE_ALIGNAS struct pm_node * body
ParenthesesNode::body.
Definition ast.h:6659
PinnedExpressionNode.
Definition ast.h:6684
pm_node_t base
The embedded base node.
Definition ast.h:6686
pm_location_t rparen_loc
PinnedExpressionNode::rparen_loc.
Definition ast.h:6726
pm_location_t lparen_loc
PinnedExpressionNode::lparen_loc.
Definition ast.h:6716
PM_NODE_ALIGNAS struct pm_node * expression
PinnedExpressionNode::expression.
Definition ast.h:6696
pm_location_t operator_loc
PinnedExpressionNode::operator_loc.
Definition ast.h:6706
PinnedVariableNode.
Definition ast.h:6741
pm_node_t base
The embedded base node.
Definition ast.h:6743
PM_NODE_ALIGNAS struct pm_node * variable
PinnedVariableNode::variable.
Definition ast.h:6753
pm_location_t operator_loc
PinnedVariableNode::operator_loc.
Definition ast.h:6763
PostExecutionNode.
Definition ast.h:6778
pm_location_t closing_loc
PostExecutionNode::closing_loc.
Definition ast.h:6800
pm_node_t base
The embedded base node.
Definition ast.h:6780
pm_location_t opening_loc
PostExecutionNode::opening_loc.
Definition ast.h:6795
pm_location_t keyword_loc
PostExecutionNode::keyword_loc.
Definition ast.h:6790
PM_NODE_ALIGNAS struct pm_statements_node * statements
PostExecutionNode::statements.
Definition ast.h:6785
PreExecutionNode.
Definition ast.h:6815
pm_location_t closing_loc
PreExecutionNode::closing_loc.
Definition ast.h:6837
pm_location_t opening_loc
PreExecutionNode::opening_loc.
Definition ast.h:6832
PM_NODE_ALIGNAS struct pm_statements_node * statements
PreExecutionNode::statements.
Definition ast.h:6822
pm_node_t base
The embedded base node.
Definition ast.h:6817
pm_location_t keyword_loc
PreExecutionNode::keyword_loc.
Definition ast.h:6827
ProgramNode.
Definition ast.h:6849
pm_node_t base
The embedded base node.
Definition ast.h:6851
PM_NODE_ALIGNAS struct pm_statements_node * statements
ProgramNode::statements.
Definition ast.h:6861
pm_constant_id_list_t locals
ProgramNode::locals.
Definition ast.h:6856
RangeNode.
Definition ast.h:6882
pm_location_t operator_loc
RangeNode::operator_loc.
Definition ast.h:6918
pm_node_t base
The embedded base node.
Definition ast.h:6884
PM_NODE_ALIGNAS struct pm_node * right
RangeNode::right.
Definition ast.h:6911
PM_NODE_ALIGNAS struct pm_node * left
RangeNode::left.
Definition ast.h:6897
RationalNode.
Definition ast.h:6939
pm_node_t base
The embedded base node.
Definition ast.h:6941
pm_integer_t denominator
RationalNode::denominator.
Definition ast.h:6959
pm_integer_t numerator
RationalNode::numerator.
Definition ast.h:6950
RedoNode.
Definition ast.h:6974
pm_node_t base
The embedded base node.
Definition ast.h:6976
RegularExpressionNode.
Definition ast.h:7004
pm_location_t closing_loc
RegularExpressionNode::closing_loc.
Definition ast.h:7021
pm_node_t base
The embedded base node.
Definition ast.h:7006
pm_string_t unescaped
RegularExpressionNode::unescaped.
Definition ast.h:7026
pm_location_t opening_loc
RegularExpressionNode::opening_loc.
Definition ast.h:7011
pm_location_t content_loc
RegularExpressionNode::content_loc.
Definition ast.h:7016
RequiredKeywordParameterNode.
Definition ast.h:7045
pm_location_t name_loc
RequiredKeywordParameterNode::name_loc.
Definition ast.h:7057
pm_node_t base
The embedded base node.
Definition ast.h:7047
pm_constant_id_t name
RequiredKeywordParameterNode::name.
Definition ast.h:7052
RequiredParameterNode.
Definition ast.h:7076
pm_constant_id_t name
RequiredParameterNode::name.
Definition ast.h:7083
pm_node_t base
The embedded base node.
Definition ast.h:7078
RescueModifierNode.
Definition ast.h:7098
PM_NODE_ALIGNAS struct pm_node * expression
RescueModifierNode::expression.
Definition ast.h:7105
pm_node_t base
The embedded base node.
Definition ast.h:7100
pm_location_t keyword_loc
RescueModifierNode::keyword_loc.
Definition ast.h:7110
PM_NODE_ALIGNAS struct pm_node * rescue_expression
RescueModifierNode::rescue_expression.
Definition ast.h:7115
RescueNode.
Definition ast.h:7135
PM_NODE_ALIGNAS struct pm_statements_node * statements
RescueNode::statements.
Definition ast.h:7167
PM_NODE_ALIGNAS struct pm_rescue_node * subsequent
RescueNode::subsequent.
Definition ast.h:7172
pm_location_t keyword_loc
RescueNode::keyword_loc.
Definition ast.h:7142
PM_NODE_ALIGNAS struct pm_node * reference
RescueNode::reference.
Definition ast.h:7157
pm_location_t then_keyword_loc
RescueNode::then_keyword_loc.
Definition ast.h:7162
pm_location_t operator_loc
RescueNode::operator_loc.
Definition ast.h:7152
struct pm_node_list exceptions
RescueNode::exceptions.
Definition ast.h:7147
pm_node_t base
The embedded base node.
Definition ast.h:7137
RestParameterNode.
Definition ast.h:7191
pm_constant_id_t name
RestParameterNode::name.
Definition ast.h:7198
pm_location_t name_loc
RestParameterNode::name_loc.
Definition ast.h:7203
pm_node_t base
The embedded base node.
Definition ast.h:7193
pm_location_t operator_loc
RestParameterNode::operator_loc.
Definition ast.h:7208
RetryNode.
Definition ast.h:7223
pm_node_t base
The embedded base node.
Definition ast.h:7225
ReturnNode.
Definition ast.h:7240
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
ReturnNode::arguments.
Definition ast.h:7252
pm_location_t keyword_loc
ReturnNode::keyword_loc.
Definition ast.h:7247
pm_node_t base
The embedded base node.
Definition ast.h:7242
SelfNode.
Definition ast.h:7267
pm_node_t base
The embedded base node.
Definition ast.h:7269
ShareableConstantNode.
Definition ast.h:7290
PM_NODE_ALIGNAS struct pm_node * write
ShareableConstantNode::write.
Definition ast.h:7299
pm_node_t base
The embedded base node.
Definition ast.h:7292
SingletonClassNode.
Definition ast.h:7314
PM_NODE_ALIGNAS struct pm_node * body
SingletonClassNode::body.
Definition ast.h:7341
pm_node_t base
The embedded base node.
Definition ast.h:7316
pm_constant_id_list_t locals
SingletonClassNode::locals.
Definition ast.h:7321
pm_location_t operator_loc
SingletonClassNode::operator_loc.
Definition ast.h:7331
PM_NODE_ALIGNAS struct pm_node * expression
SingletonClassNode::expression.
Definition ast.h:7336
pm_location_t end_keyword_loc
SingletonClassNode::end_keyword_loc.
Definition ast.h:7346
pm_location_t class_keyword_loc
SingletonClassNode::class_keyword_loc.
Definition ast.h:7326
SourceEncodingNode.
Definition ast.h:7361
pm_node_t base
The embedded base node.
Definition ast.h:7363
SourceFileNode.
Definition ast.h:7384
pm_string_t filepath
SourceFileNode::filepath.
Definition ast.h:7393
pm_node_t base
The embedded base node.
Definition ast.h:7386
SourceLineNode.
Definition ast.h:7408
pm_node_t base
The embedded base node.
Definition ast.h:7410
SplatNode.
Definition ast.h:7425
pm_node_t base
The embedded base node.
Definition ast.h:7427
PM_NODE_ALIGNAS struct pm_node * expression
SplatNode::expression.
Definition ast.h:7437
pm_location_t operator_loc
SplatNode::operator_loc.
Definition ast.h:7432
StatementsNode.
Definition ast.h:7455
struct pm_node_list body
StatementsNode::body.
Definition ast.h:7462
pm_node_t base
The embedded base node.
Definition ast.h:7457
StringNode.
Definition ast.h:7489
pm_node_t base
The embedded base node.
Definition ast.h:7491
pm_string_t unescaped
StringNode::unescaped.
Definition ast.h:7511
pm_location_t content_loc
StringNode::content_loc.
Definition ast.h:7501
pm_location_t closing_loc
StringNode::closing_loc.
Definition ast.h:7506
pm_location_t opening_loc
StringNode::opening_loc.
Definition ast.h:7496
A view of a sequence of bytes.
Definition stringy.h:23
SuperNode.
Definition ast.h:7531
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
SuperNode::arguments.
Definition ast.h:7550
pm_location_t lparen_loc
SuperNode::lparen_loc.
Definition ast.h:7543
pm_node_t base
The embedded base node.
Definition ast.h:7533
pm_location_t keyword_loc
SuperNode::keyword_loc.
Definition ast.h:7538
pm_location_t rparen_loc
SuperNode::rparen_loc.
Definition ast.h:7555
PM_NODE_ALIGNAS struct pm_node * block
SuperNode::block.
Definition ast.h:7560
SymbolNode.
Definition ast.h:7583
pm_location_t opening_loc
SymbolNode::opening_loc.
Definition ast.h:7590
pm_location_t content_loc
SymbolNode::content_loc.
Definition ast.h:7595
pm_location_t closing_loc
SymbolNode::closing_loc.
Definition ast.h:7600
pm_string_t unescaped
SymbolNode::unescaped.
Definition ast.h:7605
pm_node_t base
The embedded base node.
Definition ast.h:7585
This struct represents a token in the Ruby source.
Definition ast.h:551
const uint8_t * end
A pointer to the end location of the token in the source.
Definition ast.h:559
const uint8_t * start
A pointer to the start location of the token in the source.
Definition ast.h:556
pm_token_type_t type
The type of the token.
Definition ast.h:553
TrueNode.
Definition ast.h:7620
pm_node_t base
The embedded base node.
Definition ast.h:7622
UndefNode.
Definition ast.h:7637
pm_node_t base
The embedded base node.
Definition ast.h:7639
pm_location_t keyword_loc
UndefNode::keyword_loc.
Definition ast.h:7649
struct pm_node_list names
UndefNode::names.
Definition ast.h:7644
UnlessNode.
Definition ast.h:7667
pm_location_t then_keyword_loc
UnlessNode::then_keyword_loc.
Definition ast.h:7705
PM_NODE_ALIGNAS struct pm_node * predicate
UnlessNode::predicate.
Definition ast.h:7695
PM_NODE_ALIGNAS struct pm_statements_node * statements
UnlessNode::statements.
Definition ast.h:7716
pm_location_t end_keyword_loc
UnlessNode::end_keyword_loc.
Definition ast.h:7736
PM_NODE_ALIGNAS struct pm_else_node * else_clause
UnlessNode::else_clause.
Definition ast.h:7726
pm_node_t base
The embedded base node.
Definition ast.h:7669
pm_location_t unless_keyword_loc
UnlessNode::unless_keyword_loc.
Definition ast.h:7682
UntilNode.
Definition ast.h:7757
pm_location_t end_keyword_loc
UntilNode::end_keyword_loc.
Definition ast.h:7774
pm_location_t until_keyword_loc
UntilNode::until_keyword_loc.
Definition ast.h:7764
pm_node_t base
The embedded base node.
Definition ast.h:7759
PM_NODE_ALIGNAS struct pm_statements_node * statements
UntilNode::statements.
Definition ast.h:7784
pm_location_t do_keyword_loc
UntilNode::do_keyword_loc.
Definition ast.h:7769
PM_NODE_ALIGNAS struct pm_node * predicate
UntilNode::predicate.
Definition ast.h:7779
WhenNode.
Definition ast.h:7801
pm_location_t when_keyword_loc
WhenNode::when_keyword_loc.
Definition ast.h:7808
pm_node_t base
The embedded base node.
Definition ast.h:7803
pm_location_t then_keyword_loc
WhenNode::then_keyword_loc.
Definition ast.h:7818
PM_NODE_ALIGNAS struct pm_statements_node * statements
WhenNode::statements.
Definition ast.h:7823
struct pm_node_list conditions
WhenNode::conditions.
Definition ast.h:7813
WhileNode.
Definition ast.h:7844
PM_NODE_ALIGNAS struct pm_statements_node * statements
WhileNode::statements.
Definition ast.h:7871
pm_location_t while_keyword_loc
WhileNode::while_keyword_loc.
Definition ast.h:7851
pm_location_t end_keyword_loc
WhileNode::end_keyword_loc.
Definition ast.h:7861
pm_node_t base
The embedded base node.
Definition ast.h:7846
pm_location_t do_keyword_loc
WhileNode::do_keyword_loc.
Definition ast.h:7856
PM_NODE_ALIGNAS struct pm_node * predicate
WhileNode::predicate.
Definition ast.h:7866
XStringNode.
Definition ast.h:7890
pm_location_t closing_loc
XStringNode::closing_loc.
Definition ast.h:7907
pm_location_t opening_loc
XStringNode::opening_loc.
Definition ast.h:7897
pm_location_t content_loc
XStringNode::content_loc.
Definition ast.h:7902
pm_string_t unescaped
XStringNode::unescaped.
Definition ast.h:7912
pm_node_t base
The embedded base node.
Definition ast.h:7892
YieldNode.
Definition ast.h:7927
pm_location_t keyword_loc
YieldNode::keyword_loc.
Definition ast.h:7934
pm_location_t lparen_loc
YieldNode::lparen_loc.
Definition ast.h:7939
pm_node_t base
The embedded base node.
Definition ast.h:7929
pm_location_t rparen_loc
YieldNode::rparen_loc.
Definition ast.h:7949
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
YieldNode::arguments.
Definition ast.h:7944