Prism Ruby parser
Loading...
Searching...
No Matches
ast.h
Go to the documentation of this file.
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
16#ifndef PRISM_AST_H
17#define PRISM_AST_H
18
19#include "prism/compiler/align.h"
20#include "prism/compiler/exported.h"
21
22#include "prism/arena.h"
23#include "prism/constant_pool.h"
24#include "prism/integer.h"
25#include "prism/stringy.h"
26
27#include <stddef.h>
28#include <stdint.h>
29
33typedef enum pm_token_type {
36
39
42
45
48
51
54
57
60
63
66
69
72
75
78
81
84
87
90
93
96
99
102
105
108
111
114
117
120
123
126
129
132
135
138
141
144
147
150
153
156
159
162
165
168
171
174
177
180
183
186
189
192
195
198
201
204
207
210
213
216
219
222
225
228
231
234
237
240
243
246
249
252
255
258
261
264
267
270
273
276
279
282
285
288
291
294
297
300
303
306
309
312
315
318
321
324
327
330
333
336
339
342
345
348
351
354
357
360
363
366
369
372
375
378
381
384
387
390
393
396
399
402
405
408
411
414
417
420
423
426
429
432
435
438
441
444
447
450
453
456
459
462
465
468
471
474
477
480
483
486
489
492
495
498
501
504
507
510
513
516
519
522
526
531typedef struct {
534
536 const uint8_t *start;
537
539 const uint8_t *end;
540} pm_token_t;
541
549PRISM_EXPORTED_FUNCTION const char * pm_token_type(pm_token_type_t token_type);
550
559typedef struct {
561 uint32_t start;
562
564 uint32_t length;
566
567struct pm_node;
568
572typedef struct pm_node_list {
574 size_t size;
575
577 size_t capacity;
578
580 struct pm_node **nodes;
582
589
592
595
598
601
604
607
610
613
616
619
622
625
628
631
634
637
640
643
646
649
652
655
658
661
664
667
670
673
676
679
682
685
688
691
694
697
700
703
706
709
712
715
718
721
724
727
730
733
736
739
742
745
748
751
754
757
760
763
766
769
772
775
778
781
784
787
790
793
796
799
802
805
808
811
814
817
820
823
826
829
832
835
838
841
844
847
850
853
856
859
862
865
868
871
874
877
880
883
886
889
892
895
898
901
904
907
910
913
916
919
922
925
928
931
934
937
940
943
946
949
952
955
958
961
964
967
970
973
976
979
982
985
988
991
994
997
1000
1003
1006
1009
1012
1015
1018
1021
1024
1027
1030
1033
1036
1039
1042
1046
1051typedef uint16_t pm_node_type_t;
1052
1057typedef uint16_t pm_node_flags_t;
1058
1063static const pm_node_flags_t PM_NODE_FLAG_NEWLINE = 0x1;
1064static const pm_node_flags_t PM_NODE_FLAG_STATIC_LITERAL = 0x2;
1065
1095
1099#define PM_NODE_UPCAST(node_) ((pm_node_t *) (node_))
1100
1105#define PM_NODE_TYPE(node_) ((enum pm_node_type) (node_)->type)
1106
1110#define PM_NODE_TYPE_P(node_, type_) (PM_NODE_TYPE(node_) == (type_))
1111
1115#define PM_NODE_FLAGS(node_) (PM_NODE_UPCAST(node_)->flags)
1116
1120#define PM_NODE_FLAG_P(node_, flag_) ((PM_NODE_FLAGS(node_) & (flag_)) != 0)
1121
1125#ifdef _MSC_VER
1126#define PM_NODE_ALIGNAS __declspec(align(8))
1127#else
1128#define PM_NODE_ALIGNAS PRISM_ALIGNAS(PRISM_ALIGNOF(void *))
1129#endif
1130
1177
1236
1283
1336
1370
1421
1516
1572
1609
1637
1716
1753
1783
1854
1907
1984
2021
2114
2254
2357
2450
2521
2568
2637
2706
2792
2849
2891
2928
2956
2978
3039
3076
3118
3155
3187
3253
3290
3322
3359
3415
3443
3465
3526
3604
3641
3673
3705
3732
3768
3789
3806
3907
3942
3966
4055
4074
4092
4132
4169
4211
4248
4276
4298
4359
4409
4500
4611
4633
4661
4687
4724
4787
4855
4918
4974
5011
5053
5090
5118
5140
5201
5231
5276
5321
5357
5389
5421
5438
5455
5480
5516
5563
5605
5652
5694
5739
5769
5847
5897
5929
6015
6042
6089
6176
6278
6305
6322
6350
6378
6400
6430
6466
6507
6560
6613
6648
6705
6742
6779
6816
6840
6897
6938
6955
7005
7036
7062
7094
7151
7187
7204
7231
7248
7278
7325
7342
7372
7389
7416
7438
7487
7536
7581
7598
7625
7712
7760
7799
7847
7888
7925
7947
7954
7955 PM_ARRAY_NODE_FLAGS_LAST,
7957
7976
7989
8008
8021
8031
8035typedef enum pm_loop_flags {
8038
8039 PM_LOOP_FLAGS_LAST,
8041
8048
8049 PM_PARAMETER_FLAGS_LAST,
8051
8061
8065typedef enum pm_range_flags {
8068
8069 PM_RANGE_FLAGS_LAST,
8071
8111
8127
8146
8162
8175PRISM_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);
8176
8189PRISM_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);
8190
8203PRISM_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);
8204
8217PRISM_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);
8218
8230
8243PRISM_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);
8244
8260PRISM_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);
8261
8274PRISM_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);
8275
8287PRISM_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);
8288
8300
8316PRISM_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);
8317
8329PRISM_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);
8330
8342
8357PRISM_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);
8358
8372
8387
8400
8417PRISM_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);
8418
8437PRISM_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);
8438
8456PRISM_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);
8457
8474PRISM_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);
8475
8489PRISM_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);
8490
8504
8519PRISM_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);
8520
8535PRISM_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);
8536
8554PRISM_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);
8555
8570
8586
8601
8613
8625
8640
8655
8671
8686
8700
8715
8730
8744
8759
8773
8785
8797
8812
8834PRISM_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);
8835
8849PRISM_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);
8850
8863PRISM_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);
8864
8878
8891
8904PRISM_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);
8905
8917
8928
8944PRISM_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);
8945
8958PRISM_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);
8959
8970PRISM_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);
8971
8988PRISM_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);
8989
9000
9011
9024
9039
9055
9070
9082
9094
9109
9122PRISM_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);
9123
9138PRISM_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);
9139
9155PRISM_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);
9156
9168
9180
9191
9205PRISM_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_loc, pm_location_t then_loc);
9206
9224PRISM_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);
9225
9244PRISM_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);
9245
9263PRISM_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);
9264
9279PRISM_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);
9280
9295
9311
9326
9338
9350
9365
9377
9391
9405
9419
9433
9447
9458
9469
9481
9495
9511PRISM_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);
9512
9528
9544PRISM_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);
9545
9561
9574
9587
9602PRISM_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);
9603
9618
9631PRISM_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 operator_loc);
9632
9645PRISM_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);
9646
9659
9675PRISM_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);
9676
9692
9709PRISM_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);
9710
9723
9734
9747
9760
9772
9784
9798
9813
9826PRISM_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);
9827
9844PRISM_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);
9845
9858PRISM_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);
9859
9873PRISM_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);
9874
9887
9901PRISM_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);
9902
9916PRISM_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);
9917
9930
9943PRISM_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);
9944
9957
9968
9983
9996
10008
10021PRISM_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);
10022
10039PRISM_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);
10040
10054
10065
10078
10089
10101
10117PRISM_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);
10118
10129
10141
10152
10164PRISM_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);
10165
10177
10191PRISM_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);
10192
10207PRISM_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);
10208
10222PRISM_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 value_loc, pm_location_t closing_loc, pm_string_t unescaped);
10223
10234
10247
10263PRISM_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 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);
10264
10279PRISM_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 keyword_loc, pm_location_t do_keyword_loc, pm_location_t closing_loc, struct pm_node *predicate, struct pm_statements_node *statements);
10280
10294PRISM_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 keyword_loc, pm_node_list_t conditions, pm_location_t then_keyword_loc, struct pm_statements_node *statements);
10295
10310PRISM_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 keyword_loc, pm_location_t do_keyword_loc, pm_location_t closing_loc, struct pm_node *predicate, struct pm_statements_node *statements);
10311
10325PRISM_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);
10326
10341
10348#define PRISM_SERIALIZE_ONLY_SEMANTICS_FIELDS 0
10349
10350#endif
A bump allocator for the prism parser.
struct pm_arena_t pm_arena_t
An opaque pointer to an arena that is used for allocations.
Definition arena.h:18
struct pm_block_parameter_node pm_block_parameter_node_t
BlockParameterNode.
struct pm_call_target_node pm_call_target_node_t
CallTargetNode.
struct pm_else_node pm_else_node_t
ElseNode.
PRISM_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)
Allocate and initialize a new ConstantPathOrWriteNode node.
PRISM_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)
Allocate and initialize a new ForNode node.
struct pm_assoc_node pm_assoc_node_t
AssocNode.
PRISM_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)
Allocate and initialize a new CallOrWriteNode node.
PRISM_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)
Allocate and initialize a new ConstantWriteNode node.
PRISM_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)
Allocate and initialize a new RestParameterNode node.
PRISM_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)
Allocate and initialize a new ClassVariableOperatorWriteNode node.
struct pm_undef_node pm_undef_node_t
UndefNode.
PRISM_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)
Allocate and initialize a new NextNode node.
struct pm_class_variable_and_write_node pm_class_variable_and_write_node_t
ClassVariableAndWriteNode.
PRISM_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)
Allocate and initialize a new OrNode node.
PRISM_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)
Allocate and initialize a new RationalNode node.
PRISM_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)
Allocate and initialize a new ParenthesesNode node.
PRISM_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)
Allocate and initialize a new XStringNode node.
PRISM_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)
Allocate and initialize a new LambdaNode node.
struct pm_index_and_write_node pm_index_and_write_node_t
IndexAndWriteNode.
PRISM_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)
Allocate and initialize a new ImplicitNode node.
struct pm_index_target_node pm_index_target_node_t
IndexTargetNode.
struct pm_local_variable_target_node pm_local_variable_target_node_t
LocalVariableTargetNode.
struct pm_constant_path_or_write_node pm_constant_path_or_write_node_t
ConstantPathOrWriteNode.
PRISM_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)
Allocate and initialize a new InterpolatedMatchLastLineNode node.
PRISM_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 keyword_loc, pm_location_t do_keyword_loc, pm_location_t closing_loc, struct pm_node *predicate, struct pm_statements_node *statements)
Allocate and initialize a new UntilNode node.
struct pm_embedded_statements_node pm_embedded_statements_node_t
EmbeddedStatementsNode.
struct pm_block_node pm_block_node_t
BlockNode.
struct pm_hash_pattern_node pm_hash_pattern_node_t
HashPatternNode.
struct pm_optional_parameter_node pm_optional_parameter_node_t
OptionalParameterNode.
struct pm_x_string_node pm_x_string_node_t
XStringNode.
struct pm_forwarding_super_node pm_forwarding_super_node_t
ForwardingSuperNode.
PRISM_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)
Allocate and initialize a new RequiredKeywordParameterNode node.
#define PM_NODE_ALIGNAS
The alignment required for a child node within a parent node.
Definition ast.h:1128
struct pm_self_node pm_self_node_t
SelfNode.
struct pm_numbered_reference_read_node pm_numbered_reference_read_node_t
NumberedReferenceReadNode.
struct pm_embedded_variable_node pm_embedded_variable_node_t
EmbeddedVariableNode.
PRISM_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)
Allocate and initialize a new AliasGlobalVariableNode node.
struct pm_class_variable_write_node pm_class_variable_write_node_t
ClassVariableWriteNode.
struct pm_interpolated_string_node pm_interpolated_string_node_t
InterpolatedStringNode.
PRISM_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)
Allocate and initialize a new StringNode node.
struct pm_class_variable_or_write_node pm_class_variable_or_write_node_t
ClassVariableOrWriteNode.
PRISM_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)
Allocate and initialize a new ForwardingSuperNode node.
struct pm_optional_keyword_parameter_node pm_optional_keyword_parameter_node_t
OptionalKeywordParameterNode.
struct pm_call_or_write_node pm_call_or_write_node_t
CallOrWriteNode.
struct pm_call_node pm_call_node_t
CallNode.
struct pm_class_variable_read_node pm_class_variable_read_node_t
ClassVariableReadNode.
struct pm_match_required_node pm_match_required_node_t
MatchRequiredNode.
PRISM_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)
Allocate and initialize a new ArrayNode node.
struct pm_shareable_constant_node pm_shareable_constant_node_t
ShareableConstantNode.
struct pm_constant_and_write_node pm_constant_and_write_node_t
ConstantAndWriteNode.
PRISM_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)
Allocate and initialize a new NumberedReferenceReadNode node.
PRISM_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)
Allocate and initialize a new ConstantOperatorWriteNode node.
PRISM_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)
Allocate and initialize a new RangeNode node.
pm_interpolated_string_node_flags
Flags for interpolated string nodes that indicated mutability if they are also marked as literals.
Definition ast.h:8012
@ PM_INTERPOLATED_STRING_NODE_FLAGS_MUTABLE
mutable by virtue of a frozen_string_literal: false comment or --disable-frozen-string-literal; only ...
Definition ast.h:8017
@ PM_INTERPOLATED_STRING_NODE_FLAGS_FROZEN
frozen by virtue of a frozen_string_literal: true comment or --enable-frozen-string-literal; only for...
Definition ast.h:8014
struct pm_constant_path_operator_write_node pm_constant_path_operator_write_node_t
ConstantPathOperatorWriteNode.
struct pm_implicit_rest_node pm_implicit_rest_node_t
ImplicitRestNode.
PRISM_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)
Allocate and initialize a new KeywordRestParameterNode node.
PRISM_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)
Allocate and initialize a new LocalVariableWriteNode node.
pm_range_flags
Flags for range and flip-flop nodes.
Definition ast.h:8065
@ PM_RANGE_FLAGS_EXCLUDE_END
... operator
Definition ast.h:8067
PRISM_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)
Allocate and initialize a new SourceLineNode node.
PRISM_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)
Allocate and initialize a new RescueModifierNode node.
struct pm_local_variable_or_write_node pm_local_variable_or_write_node_t
LocalVariableOrWriteNode.
struct pm_local_variable_read_node pm_local_variable_read_node_t
LocalVariableReadNode.
PRISM_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)
Allocate and initialize a new PostExecutionNode node.
struct pm_global_variable_and_write_node pm_global_variable_and_write_node_t
GlobalVariableAndWriteNode.
struct pm_arguments_node pm_arguments_node_t
ArgumentsNode.
pm_node_type
This enum represents every type of node in the Ruby syntax tree.
Definition ast.h:586
@ PM_DEFINED_NODE
DefinedNode.
Definition ast.h:723
@ PM_PRE_EXECUTION_NODE
PreExecutionNode.
Definition ast.h:948
@ PM_RETRY_NODE
RetryNode.
Definition ast.h:981
@ PM_REDO_NODE
RedoNode.
Definition ast.h:960
@ PM_CONSTANT_PATH_WRITE_NODE
ConstantPathWriteNode.
Definition ast.h:708
@ PM_INDEX_AND_WRITE_NODE
IndexAndWriteNode.
Definition ast.h:804
@ PM_SOURCE_LINE_NODE
SourceLineNode.
Definition ast.h:1002
@ PM_UNLESS_NODE
UnlessNode.
Definition ast.h:1026
@ PM_EMBEDDED_VARIABLE_NODE
EmbeddedVariableNode.
Definition ast.h:732
@ PM_GLOBAL_VARIABLE_OPERATOR_WRITE_NODE
GlobalVariableOperatorWriteNode.
Definition ast.h:768
@ PM_CALL_NODE
CallNode.
Definition ast.h:642
@ PM_NIL_NODE
NilNode.
Definition ast.h:909
@ PM_GLOBAL_VARIABLE_READ_NODE
GlobalVariableReadNode.
Definition ast.h:774
@ PM_RATIONAL_NODE
RationalNode.
Definition ast.h:957
@ PM_YIELD_NODE
YieldNode.
Definition ast.h:1041
@ PM_LOCAL_VARIABLE_AND_WRITE_NODE
LocalVariableAndWriteNode.
Definition ast.h:867
@ PM_CONSTANT_AND_WRITE_NODE
ConstantAndWriteNode.
Definition ast.h:684
@ PM_CLASS_NODE
ClassNode.
Definition ast.h:663
@ PM_FIND_PATTERN_NODE
FindPatternNode.
Definition ast.h:744
@ PM_CALL_OPERATOR_WRITE_NODE
CallOperatorWriteNode.
Definition ast.h:645
@ PM_MATCH_WRITE_NODE
MatchWriteNode.
Definition ast.h:894
@ PM_ARRAY_NODE
ArrayNode.
Definition ast.h:603
@ PM_CONSTANT_PATH_TARGET_NODE
ConstantPathTargetNode.
Definition ast.h:705
@ PM_PROGRAM_NODE
ProgramNode.
Definition ast.h:951
@ PM_OR_NODE
OrNode.
Definition ast.h:930
@ PM_MULTI_WRITE_NODE
MultiWriteNode.
Definition ast.h:903
@ PM_IF_NODE
IfNode.
Definition ast.h:789
@ PM_IMPLICIT_NODE
ImplicitNode.
Definition ast.h:795
@ PM_ARGUMENTS_NODE
ArgumentsNode.
Definition ast.h:600
@ PM_FORWARDING_SUPER_NODE
ForwardingSuperNode.
Definition ast.h:762
@ PM_WHILE_NODE
WhileNode.
Definition ast.h:1035
@ PM_INTERPOLATED_STRING_NODE
InterpolatedStringNode.
Definition ast.h:843
@ PM_FALSE_NODE
FalseNode.
Definition ast.h:741
@ PM_FORWARDING_PARAMETER_NODE
ForwardingParameterNode.
Definition ast.h:759
@ PM_BLOCK_LOCAL_VARIABLE_NODE
BlockLocalVariableNode.
Definition ast.h:624
@ PM_HASH_NODE
HashNode.
Definition ast.h:783
@ PM_UNTIL_NODE
UntilNode.
Definition ast.h:1029
@ PM_MATCH_PREDICATE_NODE
MatchPredicateNode.
Definition ast.h:888
@ PM_X_STRING_NODE
XStringNode.
Definition ast.h:1038
@ PM_LOCAL_VARIABLE_OPERATOR_WRITE_NODE
LocalVariableOperatorWriteNode.
Definition ast.h:870
@ PM_LOCAL_VARIABLE_OR_WRITE_NODE
LocalVariableOrWriteNode.
Definition ast.h:873
@ PM_INSTANCE_VARIABLE_AND_WRITE_NODE
InstanceVariableAndWriteNode.
Definition ast.h:816
@ PM_GLOBAL_VARIABLE_TARGET_NODE
GlobalVariableTargetNode.
Definition ast.h:777
@ PM_AND_NODE
AndNode.
Definition ast.h:597
@ PM_CONSTANT_TARGET_NODE
ConstantTargetNode.
Definition ast.h:714
@ PM_IT_LOCAL_VARIABLE_READ_NODE
ItLocalVariableReadNode.
Definition ast.h:852
@ PM_CONSTANT_PATH_AND_WRITE_NODE
ConstantPathAndWriteNode.
Definition ast.h:693
@ PM_IN_NODE
InNode.
Definition ast.h:801
@ PM_BLOCK_PARAMETER_NODE
BlockParameterNode.
Definition ast.h:630
@ PM_CAPTURE_PATTERN_NODE
CapturePatternNode.
Definition ast.h:654
@ PM_SOURCE_FILE_NODE
SourceFileNode.
Definition ast.h:999
@ PM_NO_KEYWORDS_PARAMETER_NODE
NoKeywordsParameterNode.
Definition ast.h:915
@ PM_CONSTANT_PATH_OPERATOR_WRITE_NODE
ConstantPathOperatorWriteNode.
Definition ast.h:699
@ PM_MULTI_TARGET_NODE
MultiTargetNode.
Definition ast.h:900
@ PM_SPLAT_NODE
SplatNode.
Definition ast.h:1005
@ PM_LAMBDA_NODE
LambdaNode.
Definition ast.h:864
@ PM_CLASS_VARIABLE_READ_NODE
ClassVariableReadNode.
Definition ast.h:675
@ PM_REQUIRED_KEYWORD_PARAMETER_NODE
RequiredKeywordParameterNode.
Definition ast.h:966
@ PM_CALL_TARGET_NODE
CallTargetNode.
Definition ast.h:651
@ PM_ELSE_NODE
ElseNode.
Definition ast.h:726
@ PM_INTERPOLATED_MATCH_LAST_LINE_NODE
InterpolatedMatchLastLineNode.
Definition ast.h:837
@ PM_WHEN_NODE
WhenNode.
Definition ast.h:1032
@ PM_NUMBERED_PARAMETERS_NODE
NumberedParametersNode.
Definition ast.h:918
@ PM_SYMBOL_NODE
SymbolNode.
Definition ast.h:1017
@ PM_RESCUE_MODIFIER_NODE
RescueModifierNode.
Definition ast.h:972
@ PM_ALIAS_METHOD_NODE
AliasMethodNode.
Definition ast.h:591
@ PM_MATCH_REQUIRED_NODE
MatchRequiredNode.
Definition ast.h:891
@ PM_FORWARDING_ARGUMENTS_NODE
ForwardingArgumentsNode.
Definition ast.h:756
@ PM_BACK_REFERENCE_READ_NODE
BackReferenceReadNode.
Definition ast.h:615
@ PM_SCOPE_NODE
A special kind of node used for compilation.
Definition ast.h:1044
@ PM_BLOCK_ARGUMENT_NODE
BlockArgumentNode.
Definition ast.h:621
@ PM_SELF_NODE
SelfNode.
Definition ast.h:987
@ PM_IMPLICIT_REST_NODE
ImplicitRestNode.
Definition ast.h:798
@ PM_TRUE_NODE
TrueNode.
Definition ast.h:1020
@ PM_ASSOC_SPLAT_NODE
AssocSplatNode.
Definition ast.h:612
@ PM_CLASS_VARIABLE_AND_WRITE_NODE
ClassVariableAndWriteNode.
Definition ast.h:666
@ PM_RANGE_NODE
RangeNode.
Definition ast.h:954
@ PM_INSTANCE_VARIABLE_OPERATOR_WRITE_NODE
InstanceVariableOperatorWriteNode.
Definition ast.h:819
@ PM_LOCAL_VARIABLE_READ_NODE
LocalVariableReadNode.
Definition ast.h:876
@ PM_SHAREABLE_CONSTANT_NODE
ShareableConstantNode.
Definition ast.h:990
@ PM_NEXT_NODE
NextNode.
Definition ast.h:906
@ PM_INSTANCE_VARIABLE_OR_WRITE_NODE
InstanceVariableOrWriteNode.
Definition ast.h:822
@ PM_REGULAR_EXPRESSION_NODE
RegularExpressionNode.
Definition ast.h:963
@ PM_CLASS_VARIABLE_OR_WRITE_NODE
ClassVariableOrWriteNode.
Definition ast.h:672
@ PM_BLOCK_PARAMETERS_NODE
BlockParametersNode.
Definition ast.h:633
@ PM_CONSTANT_WRITE_NODE
ConstantWriteNode.
Definition ast.h:717
@ PM_HASH_PATTERN_NODE
HashPatternNode.
Definition ast.h:786
@ PM_INDEX_OPERATOR_WRITE_NODE
IndexOperatorWriteNode.
Definition ast.h:807
@ PM_UNDEF_NODE
UndefNode.
Definition ast.h:1023
@ PM_ALTERNATION_PATTERN_NODE
AlternationPatternNode.
Definition ast.h:594
@ PM_ENSURE_NODE
EnsureNode.
Definition ast.h:735
@ PM_LOCAL_VARIABLE_WRITE_NODE
LocalVariableWriteNode.
Definition ast.h:882
@ PM_SINGLETON_CLASS_NODE
SingletonClassNode.
Definition ast.h:993
@ PM_KEYWORD_HASH_NODE
KeywordHashNode.
Definition ast.h:858
@ PM_PARENTHESES_NODE
ParenthesesNode.
Definition ast.h:936
@ PM_FOR_NODE
ForNode.
Definition ast.h:753
@ PM_CLASS_VARIABLE_WRITE_NODE
ClassVariableWriteNode.
Definition ast.h:681
@ PM_POST_EXECUTION_NODE
PostExecutionNode.
Definition ast.h:945
@ PM_CONSTANT_OPERATOR_WRITE_NODE
ConstantOperatorWriteNode.
Definition ast.h:687
@ PM_RETURN_NODE
ReturnNode.
Definition ast.h:984
@ PM_MODULE_NODE
ModuleNode.
Definition ast.h:897
@ PM_ARRAY_PATTERN_NODE
ArrayPatternNode.
Definition ast.h:606
@ PM_SUPER_NODE
SuperNode.
Definition ast.h:1014
@ PM_MATCH_LAST_LINE_NODE
MatchLastLineNode.
Definition ast.h:885
@ PM_CONSTANT_PATH_NODE
ConstantPathNode.
Definition ast.h:696
@ PM_INTERPOLATED_SYMBOL_NODE
InterpolatedSymbolNode.
Definition ast.h:846
@ PM_CALL_AND_WRITE_NODE
CallAndWriteNode.
Definition ast.h:639
@ PM_OPTIONAL_KEYWORD_PARAMETER_NODE
OptionalKeywordParameterNode.
Definition ast.h:924
@ PM_CLASS_VARIABLE_TARGET_NODE
ClassVariableTargetNode.
Definition ast.h:678
@ PM_CASE_MATCH_NODE
CaseMatchNode.
Definition ast.h:657
@ PM_BREAK_NODE
BreakNode.
Definition ast.h:636
@ PM_CALL_OR_WRITE_NODE
CallOrWriteNode.
Definition ast.h:648
@ PM_IMAGINARY_NODE
ImaginaryNode.
Definition ast.h:792
@ PM_DEF_NODE
DefNode.
Definition ast.h:720
@ PM_CONSTANT_READ_NODE
ConstantReadNode.
Definition ast.h:711
@ PM_GLOBAL_VARIABLE_WRITE_NODE
GlobalVariableWriteNode.
Definition ast.h:780
@ PM_SOURCE_ENCODING_NODE
SourceEncodingNode.
Definition ast.h:996
@ PM_BEGIN_NODE
BeginNode.
Definition ast.h:618
@ PM_INTERPOLATED_X_STRING_NODE
InterpolatedXStringNode.
Definition ast.h:849
@ PM_INSTANCE_VARIABLE_READ_NODE
InstanceVariableReadNode.
Definition ast.h:825
@ PM_FLIP_FLOP_NODE
FlipFlopNode.
Definition ast.h:747
@ PM_PINNED_VARIABLE_NODE
PinnedVariableNode.
Definition ast.h:942
@ PM_REQUIRED_PARAMETER_NODE
RequiredParameterNode.
Definition ast.h:969
@ PM_INSTANCE_VARIABLE_WRITE_NODE
InstanceVariableWriteNode.
Definition ast.h:831
@ PM_INSTANCE_VARIABLE_TARGET_NODE
InstanceVariableTargetNode.
Definition ast.h:828
@ PM_GLOBAL_VARIABLE_AND_WRITE_NODE
GlobalVariableAndWriteNode.
Definition ast.h:765
@ PM_CASE_NODE
CaseNode.
Definition ast.h:660
@ PM_RESCUE_NODE
RescueNode.
Definition ast.h:975
@ PM_FLOAT_NODE
FloatNode.
Definition ast.h:750
@ PM_ASSOC_NODE
AssocNode.
Definition ast.h:609
@ PM_IT_PARAMETERS_NODE
ItParametersNode.
Definition ast.h:855
@ PM_INTEGER_NODE
IntegerNode.
Definition ast.h:834
@ PM_LOCAL_VARIABLE_TARGET_NODE
LocalVariableTargetNode.
Definition ast.h:879
@ PM_STRING_NODE
StringNode.
Definition ast.h:1011
@ PM_INDEX_OR_WRITE_NODE
IndexOrWriteNode.
Definition ast.h:810
@ PM_ALIAS_GLOBAL_VARIABLE_NODE
AliasGlobalVariableNode.
Definition ast.h:588
@ PM_PARAMETERS_NODE
ParametersNode.
Definition ast.h:933
@ PM_NUMBERED_REFERENCE_READ_NODE
NumberedReferenceReadNode.
Definition ast.h:921
@ PM_CONSTANT_PATH_OR_WRITE_NODE
ConstantPathOrWriteNode.
Definition ast.h:702
@ PM_GLOBAL_VARIABLE_OR_WRITE_NODE
GlobalVariableOrWriteNode.
Definition ast.h:771
@ PM_CONSTANT_OR_WRITE_NODE
ConstantOrWriteNode.
Definition ast.h:690
@ PM_STATEMENTS_NODE
StatementsNode.
Definition ast.h:1008
@ PM_ERROR_RECOVERY_NODE
ErrorRecoveryNode.
Definition ast.h:738
@ PM_OPTIONAL_PARAMETER_NODE
OptionalParameterNode.
Definition ast.h:927
@ PM_PINNED_EXPRESSION_NODE
PinnedExpressionNode.
Definition ast.h:939
@ PM_BLOCK_NODE
BlockNode.
Definition ast.h:627
@ PM_CLASS_VARIABLE_OPERATOR_WRITE_NODE
ClassVariableOperatorWriteNode.
Definition ast.h:669
@ PM_REST_PARAMETER_NODE
RestParameterNode.
Definition ast.h:978
@ PM_EMBEDDED_STATEMENTS_NODE
EmbeddedStatementsNode.
Definition ast.h:729
@ PM_INTERPOLATED_REGULAR_EXPRESSION_NODE
InterpolatedRegularExpressionNode.
Definition ast.h:840
@ PM_INDEX_TARGET_NODE
IndexTargetNode.
Definition ast.h:813
@ PM_KEYWORD_REST_PARAMETER_NODE
KeywordRestParameterNode.
Definition ast.h:861
@ PM_NO_BLOCK_PARAMETER_NODE
NoBlockParameterNode.
Definition ast.h:912
struct pm_nil_node pm_nil_node_t
NilNode.
struct pm_begin_node pm_begin_node_t
BeginNode.
PRISM_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)
Allocate and initialize a new EnsureNode node.
PRISM_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)
Allocate and initialize a new HashNode node.
PRISM_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)
Allocate and initialize a new GlobalVariableAndWriteNode node.
PRISM_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)
Allocate and initialize a new InstanceVariableTargetNode node.
struct pm_statements_node pm_statements_node_t
StatementsNode.
struct pm_instance_variable_write_node pm_instance_variable_write_node_t
InstanceVariableWriteNode.
struct pm_false_node pm_false_node_t
FalseNode.
struct pm_keyword_hash_node pm_keyword_hash_node_t
KeywordHashNode.
PRISM_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)
Allocate and initialize a new ClassVariableAndWriteNode node.
struct pm_return_node pm_return_node_t
ReturnNode.
pm_symbol_flags
Flags for symbol nodes.
Definition ast.h:8150
@ PM_SYMBOL_FLAGS_FORCED_UTF8_ENCODING
internal bytes forced the encoding to UTF-8
Definition ast.h:8152
@ PM_SYMBOL_FLAGS_FORCED_US_ASCII_ENCODING
internal bytes forced the encoding to US-ASCII
Definition ast.h:8158
@ PM_SYMBOL_FLAGS_FORCED_BINARY_ENCODING
internal bytes forced the encoding to binary
Definition ast.h:8155
struct pm_it_parameters_node pm_it_parameters_node_t
ItParametersNode.
PRISM_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)
Allocate and initialize a new HashPatternNode node.
struct pm_constant_path_node pm_constant_path_node_t
ConstantPathNode.
struct pm_local_variable_write_node pm_local_variable_write_node_t
LocalVariableWriteNode.
PRISM_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)
Allocate and initialize a new ConstantPathNode node.
PRISM_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)
Allocate and initialize a new ItParametersNode node.
pm_string_flags
Flags for string nodes.
Definition ast.h:8131
@ PM_STRING_FLAGS_FROZEN
frozen by virtue of a frozen_string_literal: true comment or --enable-frozen-string-literal
Definition ast.h:8139
@ PM_STRING_FLAGS_FORCED_BINARY_ENCODING
internal bytes forced the encoding to binary
Definition ast.h:8136
@ PM_STRING_FLAGS_MUTABLE
mutable by virtue of a frozen_string_literal: false comment or --disable-frozen-string-literal
Definition ast.h:8142
@ PM_STRING_FLAGS_FORCED_UTF8_ENCODING
internal bytes forced the encoding to UTF-8
Definition ast.h:8133
struct pm_implicit_node pm_implicit_node_t
ImplicitNode.
PRISM_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)
Allocate and initialize a new RequiredParameterNode node.
PRISM_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)
Allocate and initialize a new OptionalKeywordParameterNode node.
struct pm_yield_node pm_yield_node_t
YieldNode.
pm_arguments_node_flags
Flags for arguments nodes.
Definition ast.h:7929
@ PM_ARGUMENTS_NODE_FLAGS_CONTAINS_SPLAT
if the arguments contain a splat
Definition ast.h:7940
@ PM_ARGUMENTS_NODE_FLAGS_CONTAINS_FORWARDING
if the arguments contain forwarding
Definition ast.h:7931
@ PM_ARGUMENTS_NODE_FLAGS_CONTAINS_KEYWORDS
if the arguments contain keywords
Definition ast.h:7934
@ PM_ARGUMENTS_NODE_FLAGS_CONTAINS_KEYWORD_SPLAT
if the arguments contain a keyword splat
Definition ast.h:7937
@ PM_ARGUMENTS_NODE_FLAGS_CONTAINS_MULTIPLE_SPLATS
if the arguments contain multiple splats
Definition ast.h:7943
PRISM_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)
Allocate and initialize a new InstanceVariableOrWriteNode node.
enum pm_symbol_flags pm_symbol_flags_t
Flags for symbol nodes.
PRISM_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)
Allocate and initialize a new SuperNode node.
PRISM_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)
Allocate and initialize a new CaseNode node.
enum pm_encoding_flags pm_encoding_flags_t
Flags for nodes that have unescaped content.
struct pm_local_variable_and_write_node pm_local_variable_and_write_node_t
LocalVariableAndWriteNode.
struct pm_parameters_node pm_parameters_node_t
ParametersNode.
enum pm_integer_base_flags pm_integer_base_flags_t
Flags for integer nodes that correspond to the base of the integer.
struct pm_lambda_node pm_lambda_node_t
LambdaNode.
struct pm_module_node pm_module_node_t
ModuleNode.
PRISM_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)
Allocate and initialize a new NumberedParametersNode node.
struct pm_case_node pm_case_node_t
CaseNode.
PRISM_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)
Allocate and initialize a new InterpolatedRegularExpressionNode node.
struct pm_in_node pm_in_node_t
InNode.
struct pm_if_node pm_if_node_t
IfNode.
struct pm_constant_path_write_node pm_constant_path_write_node_t
ConstantPathWriteNode.
PRISM_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)
Allocate and initialize a new PinnedVariableNode node.
struct pm_pre_execution_node pm_pre_execution_node_t
PreExecutionNode.
struct pm_rescue_modifier_node pm_rescue_modifier_node_t
RescueModifierNode.
struct pm_splat_node pm_splat_node_t
SplatNode.
struct pm_match_write_node pm_match_write_node_t
MatchWriteNode.
enum pm_call_node_flags pm_call_node_flags_t
Flags for call nodes.
struct pm_multi_write_node pm_multi_write_node_t
MultiWriteNode.
struct pm_local_variable_operator_write_node pm_local_variable_operator_write_node_t
LocalVariableOperatorWriteNode.
PRISM_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)
Allocate and initialize a new FindPatternNode node.
PRISM_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 keyword_loc, pm_node_list_t conditions, pm_location_t then_keyword_loc, struct pm_statements_node *statements)
Allocate and initialize a new WhenNode node.
struct pm_block_argument_node pm_block_argument_node_t
BlockArgumentNode.
PRISM_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)
Allocate and initialize a new IndexOperatorWriteNode node.
PRISM_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)
Allocate and initialize a new GlobalVariableOrWriteNode node.
enum pm_shareable_constant_node_flags pm_shareable_constant_node_flags_t
Flags for shareable constant nodes.
struct pm_interpolated_x_string_node pm_interpolated_x_string_node_t
InterpolatedXStringNode.
struct pm_constant_write_node pm_constant_write_node_t
ConstantWriteNode.
PRISM_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)
Allocate and initialize a new ForwardingArgumentsNode node.
PRISM_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)
Allocate and initialize a new SelfNode node.
PRISM_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)
Allocate and initialize a new GlobalVariableWriteNode node.
PRISM_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)
Allocate and initialize a new ParametersNode node.
PRISM_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)
Allocate and initialize a new SingletonClassNode node.
struct pm_error_recovery_node pm_error_recovery_node_t
ErrorRecoveryNode.
PRISM_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)
Allocate and initialize a new IfNode node.
PRISM_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_loc, pm_location_t then_loc)
Allocate and initialize a new InNode node.
PRISM_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)
Allocate and initialize a new KeywordHashNode node.
struct pm_flip_flop_node pm_flip_flop_node_t
FlipFlopNode.
struct pm_required_keyword_parameter_node pm_required_keyword_parameter_node_t
RequiredKeywordParameterNode.
PRISM_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)
Allocate and initialize a new GlobalVariableTargetNode node.
PRISM_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)
Allocate and initialize a new MatchLastLineNode node.
PRISM_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)
Allocate and initialize a new AlternationPatternNode node.
PRISM_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)
Allocate and initialize a new PinnedExpressionNode node.
struct pm_no_keywords_parameter_node pm_no_keywords_parameter_node_t
NoKeywordsParameterNode.
struct pm_alias_global_variable_node pm_alias_global_variable_node_t
AliasGlobalVariableNode.
struct pm_post_execution_node pm_post_execution_node_t
PostExecutionNode.
PRISM_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)
Allocate and initialize a new EmbeddedStatementsNode node.
pm_array_node_flags
Flags for array nodes.
Definition ast.h:7951
@ PM_ARRAY_NODE_FLAGS_CONTAINS_SPLAT
if array contains splat nodes
Definition ast.h:7953
PRISM_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)
Allocate and initialize a new LocalVariableAndWriteNode node.
enum pm_string_flags pm_string_flags_t
Flags for string nodes.
struct pm_alias_method_node pm_alias_method_node_t
AliasMethodNode.
struct pm_keyword_rest_parameter_node pm_keyword_rest_parameter_node_t
KeywordRestParameterNode.
PRISM_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)
Allocate and initialize a new PreExecutionNode node.
PRISM_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)
Allocate and initialize a new AliasMethodNode node.
PRISM_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)
Allocate and initialize a new InstanceVariableReadNode node.
struct pm_global_variable_read_node pm_global_variable_read_node_t
GlobalVariableReadNode.
PRISM_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)
Allocate and initialize a new BlockParameterNode node.
PRISM_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 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)
Allocate and initialize a new UnlessNode node.
PRISM_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)
Allocate and initialize a new ElseNode node.
struct pm_back_reference_read_node pm_back_reference_read_node_t
BackReferenceReadNode.
enum pm_regular_expression_flags pm_regular_expression_flags_t
Flags for regular expression and match last line nodes.
PRISM_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)
Allocate and initialize a new IndexOrWriteNode node.
PRISM_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)
Allocate and initialize a new ItLocalVariableReadNode node.
PRISM_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)
Allocate and initialize a new RedoNode node.
struct pm_match_last_line_node pm_match_last_line_node_t
MatchLastLineNode.
enum pm_parentheses_node_flags pm_parentheses_node_flags_t
Flags for parentheses nodes.
struct pm_hash_node pm_hash_node_t
HashNode.
PRISM_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)
Allocate and initialize a new FalseNode node.
PRISM_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)
Allocate and initialize a new CaseMatchNode node.
struct pm_block_local_variable_node pm_block_local_variable_node_t
BlockLocalVariableNode.
PRISM_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)
Allocate and initialize a new BlockLocalVariableNode node.
struct pm_multi_target_node pm_multi_target_node_t
MultiTargetNode.
pm_integer_base_flags
Flags for integer nodes that correspond to the base of the integer.
Definition ast.h:7993
@ PM_INTEGER_BASE_FLAGS_HEXADECIMAL
0x prefix
Definition ast.h:8004
@ PM_INTEGER_BASE_FLAGS_OCTAL
0o or 0 prefix
Definition ast.h:8001
@ PM_INTEGER_BASE_FLAGS_DECIMAL
0d or no prefix
Definition ast.h:7998
@ PM_INTEGER_BASE_FLAGS_BINARY
0b prefix
Definition ast.h:7995
enum pm_interpolated_string_node_flags pm_interpolated_string_node_flags_t
Flags for interpolated string nodes that indicated mutability if they are also marked as literals.
struct pm_rational_node pm_rational_node_t
RationalNode.
PRISM_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)
Allocate and initialize a new ArrayPatternNode node.
struct pm_class_node pm_class_node_t
ClassNode.
PRISM_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)
Allocate and initialize a new FlipFlopNode node.
PRISM_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)
Allocate and initialize a new LocalVariableOrWriteNode node.
struct pm_pinned_expression_node pm_pinned_expression_node_t
PinnedExpressionNode.
PRISM_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)
Allocate and initialize a new EmbeddedVariableNode node.
PRISM_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)
Allocate and initialize a new ConstantReadNode node.
PRISM_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 value_loc, pm_location_t closing_loc, pm_string_t unescaped)
Allocate and initialize a new SymbolNode node.
PRISM_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)
Allocate and initialize a new LocalVariableReadNode node.
struct pm_constant_operator_write_node pm_constant_operator_write_node_t
ConstantOperatorWriteNode.
PRISM_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)
Allocate and initialize a new ClassVariableReadNode node.
enum pm_loop_flags pm_loop_flags_t
Flags for while and until loop nodes.
struct pm_ensure_node pm_ensure_node_t
EnsureNode.
struct pm_index_or_write_node pm_index_or_write_node_t
IndexOrWriteNode.
struct pm_forwarding_parameter_node pm_forwarding_parameter_node_t
ForwardingParameterNode.
PRISM_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)
Allocate and initialize a new ConstantPathAndWriteNode node.
PRISM_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)
Allocate and initialize a new LocalVariableOperatorWriteNode node.
struct pm_constant_or_write_node pm_constant_or_write_node_t
ConstantOrWriteNode.
struct pm_index_operator_write_node pm_index_operator_write_node_t
IndexOperatorWriteNode.
PRISM_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)
Allocate and initialize a new ConstantPathOperatorWriteNode node.
struct pm_when_node pm_when_node_t
WhenNode.
enum pm_token_type pm_token_type_t
This enum represents every type of token in the Ruby source.
struct pm_super_node pm_super_node_t
SuperNode.
struct pm_range_node pm_range_node_t
RangeNode.
struct pm_and_node pm_and_node_t
AndNode.
PRISM_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)
Allocate and initialize a new BlockParametersNode node.
enum pm_arguments_node_flags pm_arguments_node_flags_t
Flags for arguments nodes.
PRISM_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)
Allocate and initialize a new ClassVariableTargetNode node.
struct pm_constant_path_and_write_node pm_constant_path_and_write_node_t
ConstantPathAndWriteNode.
pm_parentheses_node_flags
Flags for parentheses nodes.
Definition ast.h:8055
@ PM_PARENTHESES_NODE_FLAGS_MULTIPLE_STATEMENTS
parentheses that contain multiple potentially void statements
Definition ast.h:8057
PRISM_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)
Allocate and initialize a new IntegerNode node.
PRISM_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)
Allocate and initialize a new ClassNode node.
PRISM_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)
Allocate and initialize a new CallAndWriteNode node.
struct pm_rest_parameter_node pm_rest_parameter_node_t
RestParameterNode.
PRISM_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)
Allocate and initialize a new ConstantOrWriteNode node.
PRISM_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)
Allocate and initialize a new CallNode node.
PRISM_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)
Allocate and initialize a new IndexTargetNode node.
PRISM_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)
Allocate and initialize a new AssocNode node.
PRISM_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)
Allocate and initialize a new DefinedNode node.
struct pm_assoc_splat_node pm_assoc_splat_node_t
AssocSplatNode.
PRISM_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)
Allocate and initialize a new InstanceVariableOperatorWriteNode node.
pm_call_node_flags
Flags for call nodes.
Definition ast.h:7961
@ PM_CALL_NODE_FLAGS_IGNORE_VISIBILITY
a call that ignores method visibility
Definition ast.h:7972
@ PM_CALL_NODE_FLAGS_SAFE_NAVIGATION
&.
Definition ast.h:7963
@ PM_CALL_NODE_FLAGS_ATTRIBUTE_WRITE
a call that is an attribute write, so the value being written should be returned
Definition ast.h:7969
@ PM_CALL_NODE_FLAGS_VARIABLE_CALL
a call that could have been a local variable
Definition ast.h:7966
struct pm_constant_read_node pm_constant_read_node_t
ConstantReadNode.
struct pm_match_predicate_node pm_match_predicate_node_t
MatchPredicateNode.
struct pm_or_node pm_or_node_t
OrNode.
struct pm_case_match_node pm_case_match_node_t
CaseMatchNode.
PRISM_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)
Allocate and initialize a new DefNode node.
PRISM_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)
Allocate and initialize a new NoBlockParameterNode node.
struct pm_call_and_write_node pm_call_and_write_node_t
CallAndWriteNode.
pm_shareable_constant_node_flags
Flags for shareable constant nodes.
Definition ast.h:8115
@ PM_SHAREABLE_CONSTANT_NODE_FLAGS_EXPERIMENTAL_EVERYTHING
constant writes that should be modified with shareable constant value experimental everything
Definition ast.h:8120
@ PM_SHAREABLE_CONSTANT_NODE_FLAGS_LITERAL
constant writes that should be modified with shareable constant value literal
Definition ast.h:8117
@ PM_SHAREABLE_CONSTANT_NODE_FLAGS_EXPERIMENTAL_COPY
constant writes that should be modified with shareable constant value experimental copy
Definition ast.h:8123
struct pm_until_node pm_until_node_t
UntilNode.
struct pm_retry_node pm_retry_node_t
RetryNode.
PRISM_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)
Allocate and initialize a new ClassVariableOrWriteNode node.
uint16_t pm_node_type_t
This is the type of node embedded in the node struct.
Definition ast.h:1051
struct pm_imaginary_node pm_imaginary_node_t
ImaginaryNode.
struct pm_array_pattern_node pm_array_pattern_node_t
ArrayPatternNode.
pm_keyword_hash_node_flags
Flags for keyword hash nodes.
Definition ast.h:8025
@ PM_KEYWORD_HASH_NODE_FLAGS_SYMBOL_KEYS
a keyword hash which only has AssocNode elements all with symbol keys, which means the elements can b...
Definition ast.h:8027
enum pm_keyword_hash_node_flags pm_keyword_hash_node_flags_t
Flags for keyword hash nodes.
PRISM_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)
Allocate and initialize a new RescueNode node.
struct pm_redo_node pm_redo_node_t
RedoNode.
struct pm_source_encoding_node pm_source_encoding_node_t
SourceEncodingNode.
struct pm_true_node pm_true_node_t
TrueNode.
struct pm_break_node pm_break_node_t
BreakNode.
struct pm_integer_node pm_integer_node_t
IntegerNode.
struct pm_constant_path_target_node pm_constant_path_target_node_t
ConstantPathTargetNode.
struct pm_call_operator_write_node pm_call_operator_write_node_t
CallOperatorWriteNode.
struct pm_for_node pm_for_node_t
ForNode.
enum pm_range_flags pm_range_flags_t
Flags for range and flip-flop nodes.
PRISM_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)
Allocate and initialize a new SourceEncodingNode node.
struct pm_global_variable_target_node pm_global_variable_target_node_t
GlobalVariableTargetNode.
struct pm_node_list pm_node_list_t
A list of nodes in the source, most often used for lists of children.
PRISM_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)
Allocate and initialize a new ImplicitRestNode node.
struct pm_required_parameter_node pm_required_parameter_node_t
RequiredParameterNode.
struct pm_symbol_node pm_symbol_node_t
SymbolNode.
struct pm_block_parameters_node pm_block_parameters_node_t
BlockParametersNode.
PRISM_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)
Allocate and initialize a new OptionalParameterNode node.
struct pm_alternation_pattern_node pm_alternation_pattern_node_t
AlternationPatternNode.
struct pm_parentheses_node pm_parentheses_node_t
ParenthesesNode.
pm_regular_expression_flags
Flags for regular expression and match last line nodes.
Definition ast.h:8075
@ PM_REGULAR_EXPRESSION_FLAGS_FORCED_BINARY_ENCODING
internal bytes forced the encoding to binary
Definition ast.h:8104
@ PM_REGULAR_EXPRESSION_FLAGS_FORCED_US_ASCII_ENCODING
internal bytes forced the encoding to US-ASCII
Definition ast.h:8107
@ PM_REGULAR_EXPRESSION_FLAGS_EUC_JP
e - forces the EUC-JP encoding
Definition ast.h:8089
@ PM_REGULAR_EXPRESSION_FLAGS_IGNORE_CASE
i - ignores the case of characters when matching
Definition ast.h:8077
@ PM_REGULAR_EXPRESSION_FLAGS_FORCED_UTF8_ENCODING
internal bytes forced the encoding to UTF-8
Definition ast.h:8101
@ PM_REGULAR_EXPRESSION_FLAGS_ASCII_8BIT
n - forces the ASCII-8BIT encoding
Definition ast.h:8092
@ PM_REGULAR_EXPRESSION_FLAGS_MULTI_LINE
m - allows $ to match the end of lines within strings
Definition ast.h:8083
@ PM_REGULAR_EXPRESSION_FLAGS_EXTENDED
x - ignores whitespace and allows comments in regular expressions
Definition ast.h:8080
@ PM_REGULAR_EXPRESSION_FLAGS_ONCE
o - only interpolates values into the regular expression once
Definition ast.h:8086
@ PM_REGULAR_EXPRESSION_FLAGS_WINDOWS_31J
s - forces the Windows-31J encoding
Definition ast.h:8095
@ PM_REGULAR_EXPRESSION_FLAGS_UTF_8
u - forces the UTF-8 encoding
Definition ast.h:8098
PRISM_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)
Allocate and initialize a new ConstantPathTargetNode node.
PRISM_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)
Allocate and initialize a new ImaginaryNode node.
PRISM_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)
Allocate and initialize a new GlobalVariableReadNode node.
struct pm_forwarding_arguments_node pm_forwarding_arguments_node_t
ForwardingArgumentsNode.
PRISM_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)
Allocate and initialize a new MultiWriteNode node.
struct pm_instance_variable_read_node pm_instance_variable_read_node_t
InstanceVariableReadNode.
PRISM_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)
Allocate and initialize a new InstanceVariableWriteNode node.
struct pm_constant_target_node pm_constant_target_node_t
ConstantTargetNode.
PRISM_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)
Allocate and initialize a new AssocSplatNode node.
PRISM_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)
Allocate and initialize a new BeginNode node.
PRISM_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)
Allocate and initialize a new YieldNode node.
PRISM_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)
Allocate and initialize a new UndefNode node.
PRISM_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)
Allocate and initialize a new BlockArgumentNode node.
PRISM_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)
Allocate and initialize a new RetryNode node.
struct pm_node pm_node_t
This is the base structure that represents a node in the syntax tree.
PRISM_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)
Allocate and initialize a new BlockNode node.
struct pm_defined_node pm_defined_node_t
DefinedNode.
PRISM_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)
Allocate and initialize a new LocalVariableTargetNode node.
struct pm_it_local_variable_read_node pm_it_local_variable_read_node_t
ItLocalVariableReadNode.
PRISM_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)
Allocate and initialize a new CapturePatternNode node.
PRISM_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)
Allocate and initialize a new ErrorRecoveryNode node.
struct pm_interpolated_symbol_node pm_interpolated_symbol_node_t
InterpolatedSymbolNode.
PRISM_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)
Allocate and initialize a new NoKeywordsParameterNode node.
PRISM_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)
Allocate and initialize a new CallTargetNode node.
struct pm_class_variable_target_node pm_class_variable_target_node_t
ClassVariableTargetNode.
struct pm_def_node pm_def_node_t
DefNode.
PRISM_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)
Allocate and initialize a new FloatNode node.
struct pm_singleton_class_node pm_singleton_class_node_t
SingletonClassNode.
PRISM_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)
Allocate and initialize a new RegularExpressionNode node.
PRISM_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)
Allocate and initialize a new ConstantAndWriteNode node.
PRISM_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)
Allocate and initialize a new CallOperatorWriteNode node.
PRISM_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)
Allocate and initialize a new BackReferenceReadNode node.
PRISM_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)
Allocate and initialize a new MatchRequiredNode node.
uint16_t pm_node_flags_t
These are the flags embedded in the node struct.
Definition ast.h:1057
PRISM_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)
Allocate and initialize a new ReturnNode node.
PRISM_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)
Allocate and initialize a new ConstantPathWriteNode node.
PRISM_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)
Allocate and initialize a new ForwardingParameterNode node.
struct pm_capture_pattern_node pm_capture_pattern_node_t
CapturePatternNode.
PRISM_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)
Allocate and initialize a new ConstantTargetNode node.
struct pm_source_file_node pm_source_file_node_t
SourceFileNode.
PRISM_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)
Allocate and initialize a new StatementsNode node.
PRISM_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 operator_loc)
Allocate and initialize a new MatchPredicateNode node.
PRISM_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)
Allocate and initialize a new ArgumentsNode node.
PRISM_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)
Allocate and initialize a new InterpolatedSymbolNode node.
struct pm_regular_expression_node pm_regular_expression_node_t
RegularExpressionNode.
PRISM_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)
Allocate and initialize a new GlobalVariableOperatorWriteNode node.
pm_token_type
This enum represents every type of token in the Ruby source.
Definition ast.h:33
@ PM_TOKEN_STAR_STAR
**
Definition ast.h:470
@ PM_TOKEN_DOT_DOT_DOT
the ... range operator or forwarding parameter
Definition ast.h:164
@ PM_TOKEN_MINUS_EQUAL
-=
Definition ast.h:398
@ PM_TOKEN_IGNORED_NEWLINE
an ignored newline
Definition ast.h:233
@ PM_TOKEN_BANG_EQUAL
!=
Definition ast.h:110
@ PM_TOKEN_KEYWORD___FILE__
__FILE__
Definition ast.h:362
@ PM_TOKEN_KEYWORD_WHEN
when
Definition ast.h:71
@ PM_TOKEN_FLOAT
a floating point number
Definition ast.h:197
@ PM_TOKEN_PLUS_EQUAL
+=
Definition ast.h:446
@ PM_TOKEN_DOT_DOT
the .
Definition ast.h:161
@ PM_TOKEN_UDOT_DOT
unary .
Definition ast.h:497
@ PM_TOKEN_AMPERSAND_DOT
&.
Definition ast.h:95
@ PM_TOKEN_NEWLINE
a newline character outside of other tokens
Definition ast.h:74
@ PM_TOKEN_NUMBERED_REFERENCE
a numbered reference to a capture group in the previous regular expression match
Definition ast.h:404
@ PM_TOKEN_KEYWORD_DO_BLOCK
do keyword for a block attached to a command
Definition ast.h:278
@ PM_TOKEN_AMPERSAND
&
Definition ast.h:86
@ PM_TOKEN_KEYWORD_YIELD
yield
Definition ast.h:356
@ PM_TOKEN_KEYWORD_END
end
Definition ast.h:56
@ PM_TOKEN_LAMBDA_BEGIN
{
Definition ast.h:374
@ PM_TOKEN_KEYWORD_UNTIL_MODIFIER
until in the modifier form
Definition ast.h:347
@ PM_TOKEN_EQUAL_EQUAL_EQUAL
===
Definition ast.h:188
@ PM_TOKEN_INTEGER_RATIONAL
an integer with a rational suffix
Definition ast.h:245
@ PM_TOKEN_USTAR
unary *
Definition ast.h:512
@ PM_TOKEN_TILDE
~ or ~@
Definition ast.h:488
@ PM_TOKEN_KEYWORD___ENCODING__
__ENCODING__
Definition ast.h:359
@ PM_TOKEN_REGEXP_END
the end of a regular expression
Definition ast.h:455
@ PM_TOKEN_KEYWORD_UNTIL
until
Definition ast.h:344
@ PM_TOKEN_COMMA
,
Definition ast.h:41
@ PM_TOKEN_MAXIMUM
The maximum token value.
Definition ast.h:524
@ PM_TOKEN_GREATER
>
Definition ast.h:212
@ PM_TOKEN_INTEGER
an integer (any base)
Definition ast.h:239
@ PM_TOKEN_SLASH_EQUAL
/=
Definition ast.h:461
@ PM_TOKEN_UMINUS_NUM
-@ for a number
Definition ast.h:506
@ PM_TOKEN_EMBVAR
#
Definition ast.h:179
@ PM_TOKEN_KEYWORD_UNLESS_MODIFIER
unless in the modifier form
Definition ast.h:341
@ PM_TOKEN_INTEGER_RATIONAL_IMAGINARY
an integer with a rational and imaginary suffix
Definition ast.h:248
@ PM_TOKEN_FLOAT_RATIONAL_IMAGINARY
a floating pointer number with a rational and imaginary suffix
Definition ast.h:206
@ PM_TOKEN_BRACKET_LEFT_RIGHT
[]
Definition ast.h:125
@ PM_TOKEN_AMPERSAND_AMPERSAND_EQUAL
&&=
Definition ast.h:92
@ PM_TOKEN_KEYWORD_CLASS
class
Definition ast.h:269
@ PM_TOKEN_KEYWORD_BEGIN
begin
Definition ast.h:257
@ PM_TOKEN_USTAR_STAR
unary **
Definition ast.h:515
@ PM_TOKEN_GREATER_GREATER_EQUAL
>>=
Definition ast.h:221
@ PM_TOKEN_PERCENT_EQUAL
%=
Definition ast.h:416
@ PM_TOKEN_PERCENT
%
Definition ast.h:413
@ PM_TOKEN_KEYWORD_IN
in
Definition ast.h:62
@ PM_TOKEN_BANG
! or !@
Definition ast.h:107
@ PM_TOKEN_KEYWORD_NOT
not
Definition ast.h:308
@ PM_TOKEN_BRACKET_LEFT_ARRAY
[ for the beginning of an array
Definition ast.h:122
@ PM_TOKEN_HEREDOC_END
the end of a heredoc
Definition ast.h:224
@ PM_TOKEN_HEREDOC_START
the start of a heredoc
Definition ast.h:227
@ PM_TOKEN_KEYWORD_DEFINED
defined?
Definition ast.h:275
@ PM_TOKEN_UCOLON_COLON
unary ::
Definition ast.h:494
@ PM_TOKEN_LABEL_END
the end of a label
Definition ast.h:371
@ PM_TOKEN_EQUAL_GREATER
=>
Definition ast.h:191
@ PM_TOKEN_KEYWORD_UNLESS
unless
Definition ast.h:338
@ PM_TOKEN_KEYWORD_ENSURE
ensure
Definition ast.h:59
@ PM_TOKEN_AMPERSAND_EQUAL
&=
Definition ast.h:98
@ PM_TOKEN_EQUAL_EQUAL
==
Definition ast.h:185
@ PM_TOKEN_UPLUS
+@
Definition ast.h:509
@ PM_TOKEN_FLOAT_IMAGINARY
a floating pointer number with an imaginary suffix
Definition ast.h:200
@ PM_TOKEN_KEYWORD_BEGIN_UPCASE
BEGIN.
Definition ast.h:260
@ PM_TOKEN_LESS_EQUAL_GREATER
<=>
Definition ast.h:383
@ PM_TOKEN_KEYWORD_RESCUE_MODIFIER
rescue in the modifier form
Definition ast.h:317
@ PM_TOKEN_MINUS_GREATER
->
Definition ast.h:401
@ PM_TOKEN_KEYWORD_FALSE
false
Definition ast.h:287
@ PM_TOKEN_PIPE_PIPE_EQUAL
||=
Definition ast.h:440
@ PM_TOKEN_KEYWORD_IF
if
Definition ast.h:293
@ PM_TOKEN_EMBEXPR_BEGIN
#{
Definition ast.h:176
@ PM_TOKEN_PARENTHESIS_LEFT_PARENTHESES
( for a parentheses node
Definition ast.h:410
@ PM_TOKEN_EMBDOC_END
=end
Definition ast.h:170
@ PM_TOKEN_KEYWORD_ELSE
else
Definition ast.h:50
@ PM_TOKEN_BACK_REFERENCE
a back reference
Definition ast.h:104
@ PM_TOKEN_BRACKET_LEFT
[
Definition ast.h:119
@ PM_TOKEN_EOF
final token in the file
Definition ast.h:35
@ PM_TOKEN_PIPE_PIPE
||
Definition ast.h:437
@ PM_TOKEN_KEYWORD_NIL
nil
Definition ast.h:305
@ PM_TOKEN_PERCENT_UPPER_W
%W
Definition ast.h:431
@ PM_TOKEN_KEYWORD_RETURN
return
Definition ast.h:323
@ PM_TOKEN_CLASS_VARIABLE
a class variable
Definition ast.h:143
@ PM_TOKEN_PIPE
|
Definition ast.h:80
@ PM_TOKEN_PARENTHESIS_LEFT
(
Definition ast.h:407
@ PM_TOKEN_BANG_TILDE
!~
Definition ast.h:113
@ PM_TOKEN_DOT
the .
Definition ast.h:158
@ PM_TOKEN_PARENTHESIS_RIGHT
)
Definition ast.h:77
@ PM_TOKEN_KEYWORD_RESCUE
rescue
Definition ast.h:65
@ PM_TOKEN_INSTANCE_VARIABLE
an instance variable
Definition ast.h:236
@ PM_TOKEN_PIPE_EQUAL
|=
Definition ast.h:434
@ PM_TOKEN_BRACKET_LEFT_RIGHT_EQUAL
[]=
Definition ast.h:128
@ PM_TOKEN_UAMPERSAND
unary &
Definition ast.h:491
@ PM_TOKEN_MINUS
-
Definition ast.h:395
@ PM_TOKEN_CONSTANT
a constant
Definition ast.h:155
@ PM_TOKEN_IDENTIFIER
an identifier
Definition ast.h:230
@ PM_TOKEN_EMBDOC_BEGIN
=begin
Definition ast.h:167
@ PM_TOKEN_STAR_EQUAL
*=
Definition ast.h:467
@ PM_TOKEN_KEYWORD_OR
or
Definition ast.h:311
@ PM_TOKEN_KEYWORD_AND
and
Definition ast.h:254
@ PM_TOKEN_LESS
<
Definition ast.h:377
@ PM_TOKEN_KEYWORD_BREAK
break
Definition ast.h:263
@ PM_TOKEN_PERCENT_LOWER_W
%w
Definition ast.h:422
@ PM_TOKEN_SYMBOL_BEGIN
the beginning of a symbol
Definition ast.h:485
@ PM_TOKEN_METHOD_NAME
a method name
Definition ast.h:392
@ PM_TOKEN_KEYWORD_CASE
case
Definition ast.h:266
@ PM_TOKEN_WORDS_SEP
a separator between words in a list
Definition ast.h:518
@ PM_TOKEN_FLOAT_RATIONAL
a floating pointer number with a rational suffix
Definition ast.h:203
@ PM_TOKEN_LESS_LESS_EQUAL
<<=
Definition ast.h:389
@ PM_TOKEN_EMBDOC_LINE
a line inside of embedded documentation
Definition ast.h:173
@ PM_TOKEN_KEYWORD_SUPER
super
Definition ast.h:329
@ PM_TOKEN_KEYWORD_DO
do
Definition ast.h:47
@ PM_TOKEN_KEYWORD_REDO
redo
Definition ast.h:314
@ PM_TOKEN_EQUAL_TILDE
=~
Definition ast.h:194
@ PM_TOKEN_EMBEXPR_END
}
Definition ast.h:44
@ PM_TOKEN_KEYWORD_END_UPCASE
END.
Definition ast.h:284
@ PM_TOKEN_KEYWORD___LINE__
__LINE__
Definition ast.h:365
@ PM_TOKEN_STRING_END
the end of a string
Definition ast.h:482
@ PM_TOKEN_STRING_CONTENT
the contents of a string
Definition ast.h:479
@ PM_TOKEN_BRACE_LEFT
{
Definition ast.h:116
@ PM_TOKEN_COLON_COLON
::
Definition ast.h:149
@ PM_TOKEN_GREATER_GREATER
>>
Definition ast.h:218
@ PM_TOKEN_PERCENT_LOWER_X
%x
Definition ast.h:425
@ PM_TOKEN_KEYWORD_SELF
self
Definition ast.h:326
@ PM_TOKEN_PERCENT_LOWER_I
%i
Definition ast.h:419
@ PM_TOKEN_KEYWORD_ALIAS
alias
Definition ast.h:251
@ PM_TOKEN_GLOBAL_VARIABLE
a global variable
Definition ast.h:209
@ PM_TOKEN_KEYWORD_IF_MODIFIER
if in the modifier form
Definition ast.h:296
@ PM_TOKEN_SLASH
/
Definition ast.h:458
@ PM_TOKEN_KEYWORD_RETRY
retry
Definition ast.h:320
@ PM_TOKEN_COLON
:
Definition ast.h:146
@ PM_TOKEN_KEYWORD_UNDEF
undef
Definition ast.h:335
@ PM_TOKEN_BRACKET_RIGHT
]
Definition ast.h:131
@ PM_TOKEN_KEYWORD_FOR
for
Definition ast.h:290
@ PM_TOKEN_KEYWORD_THEN
then
Definition ast.h:68
@ PM_TOKEN_QUESTION_MARK
?
Definition ast.h:449
@ PM_TOKEN___END__
marker for the point in the file at which the parser should stop
Definition ast.h:521
@ PM_TOKEN_KEYWORD_WHILE
while
Definition ast.h:350
@ PM_TOKEN_EQUAL
=
Definition ast.h:182
@ PM_TOKEN_KEYWORD_DEF
def
Definition ast.h:272
@ PM_TOKEN_UDOT_DOT_DOT
unary ... operator
Definition ast.h:500
@ PM_TOKEN_STAR
Definition ast.h:464
@ PM_TOKEN_KEYWORD_WHILE_MODIFIER
while in the modifier form
Definition ast.h:353
@ PM_TOKEN_KEYWORD_TRUE
true
Definition ast.h:332
@ PM_TOKEN_BRACE_RIGHT
}
Definition ast.h:38
@ PM_TOKEN_SEMICOLON
;
Definition ast.h:83
@ PM_TOKEN_REGEXP_BEGIN
the beginning of a regular expression
Definition ast.h:452
@ PM_TOKEN_CARET
^
Definition ast.h:134
@ PM_TOKEN_PERCENT_UPPER_I
%I
Definition ast.h:428
@ PM_TOKEN_KEYWORD_DO_LOOP
do keyword for a predicate in a while, until, or for loop
Definition ast.h:281
@ PM_TOKEN_KEYWORD_MODULE
module
Definition ast.h:299
@ PM_TOKEN_PLUS
+
Definition ast.h:443
@ PM_TOKEN_KEYWORD_NEXT
next
Definition ast.h:302
@ PM_TOKEN_BACKTICK
`
Definition ast.h:101
@ PM_TOKEN_INTEGER_IMAGINARY
an integer with an imaginary suffix
Definition ast.h:242
@ PM_TOKEN_LABEL
a label
Definition ast.h:368
@ PM_TOKEN_STAR_STAR_EQUAL
**=
Definition ast.h:473
@ PM_TOKEN_CHARACTER_LITERAL
a character literal
Definition ast.h:140
@ PM_TOKEN_AMPERSAND_AMPERSAND
&&
Definition ast.h:89
@ PM_TOKEN_UMINUS
-@
Definition ast.h:503
@ PM_TOKEN_LESS_LESS
<<
Definition ast.h:386
@ PM_TOKEN_GREATER_EQUAL
>=
Definition ast.h:215
@ PM_TOKEN_COMMENT
a comment
Definition ast.h:152
@ PM_TOKEN_CARET_EQUAL
^=
Definition ast.h:137
@ PM_TOKEN_KEYWORD_ELSIF
elsif
Definition ast.h:53
@ PM_TOKEN_STRING_BEGIN
the beginning of a string
Definition ast.h:476
@ PM_TOKEN_LESS_EQUAL
<=
Definition ast.h:380
struct pm_global_variable_or_write_node pm_global_variable_or_write_node_t
GlobalVariableOrWriteNode.
PRISM_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)
Allocate and initialize a new SourceFileNode node.
PRISM_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)
Allocate and initialize a new NilNode node.
enum pm_array_node_flags pm_array_node_flags_t
Flags for array nodes.
struct pm_rescue_node pm_rescue_node_t
RescueNode.
PRISM_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)
Allocate and initialize a new InterpolatedStringNode node.
PRISM_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)
Allocate and initialize a new ClassVariableWriteNode node.
PRISM_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)
Allocate and initialize a new ShareableConstantNode node.
struct pm_array_node pm_array_node_t
ArrayNode.
PRISM_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)
Allocate and initialize a new MultiTargetNode node.
struct pm_while_node pm_while_node_t
WhileNode.
PRISM_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)
Allocate and initialize a new ModuleNode node.
struct pm_global_variable_write_node pm_global_variable_write_node_t
GlobalVariableWriteNode.
struct pm_instance_variable_or_write_node pm_instance_variable_or_write_node_t
InstanceVariableOrWriteNode.
struct pm_source_line_node pm_source_line_node_t
SourceLineNode.
pm_parameter_flags
Flags for parameter nodes.
Definition ast.h:8045
@ PM_PARAMETER_FLAGS_REPEATED_PARAMETER
a parameter name that has been repeated in the method signature
Definition ast.h:8047
struct pm_no_block_parameter_node pm_no_block_parameter_node_t
NoBlockParameterNode.
pm_encoding_flags
Flags for nodes that have unescaped content.
Definition ast.h:7980
@ PM_ENCODING_FLAGS_FORCED_BINARY_ENCODING
internal bytes forced the encoding to binary
Definition ast.h:7985
@ PM_ENCODING_FLAGS_FORCED_UTF8_ENCODING
internal bytes forced the encoding to UTF-8
Definition ast.h:7982
PRISM_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)
Allocate and initialize a new InstanceVariableAndWriteNode node.
PRISM_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)
Allocate and initialize a new IndexAndWriteNode node.
struct pm_interpolated_match_last_line_node pm_interpolated_match_last_line_node_t
InterpolatedMatchLastLineNode.
struct pm_numbered_parameters_node pm_numbered_parameters_node_t
NumberedParametersNode.
struct pm_class_variable_operator_write_node pm_class_variable_operator_write_node_t
ClassVariableOperatorWriteNode.
struct pm_next_node pm_next_node_t
NextNode.
struct pm_unless_node pm_unless_node_t
UnlessNode.
struct pm_interpolated_regular_expression_node pm_interpolated_regular_expression_node_t
InterpolatedRegularExpressionNode.
struct pm_instance_variable_target_node pm_instance_variable_target_node_t
InstanceVariableTargetNode.
enum pm_parameter_flags pm_parameter_flags_t
Flags for parameter nodes.
struct pm_string_node pm_string_node_t
StringNode.
struct pm_float_node pm_float_node_t
FloatNode.
PRISM_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)
Allocate and initialize a new AndNode node.
struct pm_global_variable_operator_write_node pm_global_variable_operator_write_node_t
GlobalVariableOperatorWriteNode.
PRISM_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)
Allocate and initialize a new InterpolatedXStringNode node.
PRISM_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)
Allocate and initialize a new TrueNode node.
PRISM_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)
Allocate and initialize a new MatchWriteNode node.
struct pm_instance_variable_operator_write_node pm_instance_variable_operator_write_node_t
InstanceVariableOperatorWriteNode.
pm_loop_flags
Flags for while and until loop nodes.
Definition ast.h:8035
@ PM_LOOP_FLAGS_BEGIN_MODIFIER
a loop after a begin statement, so the body is executed first before the condition
Definition ast.h:8037
struct pm_pinned_variable_node pm_pinned_variable_node_t
PinnedVariableNode.
PRISM_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)
Allocate and initialize a new ProgramNode node.
PRISM_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 keyword_loc, pm_location_t do_keyword_loc, pm_location_t closing_loc, struct pm_node *predicate, struct pm_statements_node *statements)
Allocate and initialize a new WhileNode node.
struct pm_instance_variable_and_write_node pm_instance_variable_and_write_node_t
InstanceVariableAndWriteNode.
PRISM_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)
Allocate and initialize a new SplatNode node.
struct pm_program_node pm_program_node_t
ProgramNode.
PRISM_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)
Allocate and initialize a new BreakNode node.
struct pm_find_pattern_node pm_find_pattern_node_t
FindPatternNode.
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.
Definition constant_pool.h:25
This module provides functions for working with arbitrary-sized integers.
A generic string type that can have various ownership semantics.
AliasGlobalVariableNode.
Definition ast.h:1143
PM_NODE_ALIGNAS struct pm_node * new_name
AliasGlobalVariableNode::new_name.
Definition ast.h:1155
pm_node_t base
The embedded base node.
Definition ast.h:1145
pm_location_t keyword_loc
AliasGlobalVariableNode::keyword_loc.
Definition ast.h:1175
PM_NODE_ALIGNAS struct pm_node * old_name
AliasGlobalVariableNode::old_name.
Definition ast.h:1165
AliasMethodNode.
Definition ast.h:1190
PM_NODE_ALIGNAS struct pm_node * old_name
AliasMethodNode::old_name.
Definition ast.h:1224
pm_node_t base
The embedded base node.
Definition ast.h:1192
pm_location_t keyword_loc
AliasMethodNode::keyword_loc.
Definition ast.h:1234
PM_NODE_ALIGNAS struct pm_node * new_name
AliasMethodNode::new_name.
Definition ast.h:1208
AlternationPatternNode.
Definition ast.h:1249
pm_location_t operator_loc
AlternationPatternNode::operator_loc.
Definition ast.h:1281
PM_NODE_ALIGNAS struct pm_node * left
AlternationPatternNode::left.
Definition ast.h:1261
pm_node_t base
The embedded base node.
Definition ast.h:1251
PM_NODE_ALIGNAS struct pm_node * right
AlternationPatternNode::right.
Definition ast.h:1271
AndNode.
Definition ast.h:1296
PM_NODE_ALIGNAS struct pm_node * left
AndNode::left.
Definition ast.h:1311
PM_NODE_ALIGNAS struct pm_node * right
AndNode::right.
Definition ast.h:1324
pm_location_t operator_loc
AndNode::operator_loc.
Definition ast.h:1334
pm_node_t base
The embedded base node.
Definition ast.h:1298
ArgumentsNode.
Definition ast.h:1356
pm_node_t base
The embedded base node.
Definition ast.h:1358
struct pm_node_list arguments
ArgumentsNode::arguments.
Definition ast.h:1368
ArrayNode.
Definition ast.h:1386
pm_node_t base
The embedded base node.
Definition ast.h:1388
pm_location_t closing_loc
ArrayNode::closing_loc.
Definition ast.h:1419
struct pm_node_list elements
ArrayNode::elements.
Definition ast.h:1395
pm_location_t opening_loc
ArrayNode::opening_loc.
Definition ast.h:1407
ArrayPatternNode.
Definition ast.h:1446
struct pm_node_list requireds
ArrayPatternNode::requireds.
Definition ast.h:1474
PM_NODE_ALIGNAS struct pm_node * rest
ArrayPatternNode::rest.
Definition ast.h:1484
PM_NODE_ALIGNAS struct pm_node * constant
ArrayPatternNode::constant.
Definition ast.h:1464
pm_location_t opening_loc
ArrayPatternNode::opening_loc.
Definition ast.h:1504
pm_node_t base
The embedded base node.
Definition ast.h:1448
pm_location_t closing_loc
ArrayPatternNode::closing_loc.
Definition ast.h:1514
struct pm_node_list posts
ArrayPatternNode::posts.
Definition ast.h:1494
AssocNode.
Definition ast.h:1529
pm_node_t base
The embedded base node.
Definition ast.h:1531
PM_NODE_ALIGNAS struct pm_node * value
AssocNode::value.
Definition ast.h:1560
PM_NODE_ALIGNAS struct pm_node * key
AssocNode::key.
Definition ast.h:1547
pm_location_t operator_loc
AssocNode::operator_loc.
Definition ast.h:1570
AssocSplatNode.
Definition ast.h:1585
pm_node_t base
The embedded base node.
Definition ast.h:1587
pm_location_t operator_loc
AssocSplatNode::operator_loc.
Definition ast.h:1607
PM_NODE_ALIGNAS struct pm_node * value
AssocSplatNode::value.
Definition ast.h:1597
BackReferenceReadNode.
Definition ast.h:1622
pm_constant_id_t name
BackReferenceReadNode::name.
Definition ast.h:1635
pm_node_t base
The embedded base node.
Definition ast.h:1624
BeginNode.
Definition ast.h:1652
PM_NODE_ALIGNAS struct pm_else_node * else_clause
BeginNode::else_clause.
Definition ast.h:1694
PM_NODE_ALIGNAS struct pm_ensure_node * ensure_clause
BeginNode::ensure_clause.
Definition ast.h:1704
PM_NODE_ALIGNAS struct pm_statements_node * statements
BeginNode::statements.
Definition ast.h:1674
PM_NODE_ALIGNAS struct pm_rescue_node * rescue_clause
BeginNode::rescue_clause.
Definition ast.h:1684
pm_node_t base
The embedded base node.
Definition ast.h:1654
pm_location_t end_keyword_loc
BeginNode::end_keyword_loc.
Definition ast.h:1714
pm_location_t begin_keyword_loc
BeginNode::begin_keyword_loc.
Definition ast.h:1664
BlockArgumentNode.
Definition ast.h:1729
PM_NODE_ALIGNAS struct pm_node * expression
BlockArgumentNode::expression.
Definition ast.h:1741
pm_node_t base
The embedded base node.
Definition ast.h:1731
pm_location_t operator_loc
BlockArgumentNode::operator_loc.
Definition ast.h:1751
BlockLocalVariableNode.
Definition ast.h:1769
pm_node_t base
The embedded base node.
Definition ast.h:1771
pm_constant_id_t name
BlockLocalVariableNode::name.
Definition ast.h:1781
BlockNode.
Definition ast.h:1796
pm_node_t base
The embedded base node.
Definition ast.h:1798
pm_location_t closing_loc
BlockNode::closing_loc.
Definition ast.h:1852
PM_NODE_ALIGNAS struct pm_node * parameters
BlockNode::parameters.
Definition ast.h:1822
pm_location_t opening_loc
BlockNode::opening_loc.
Definition ast.h:1842
pm_constant_id_list_t locals
BlockNode::locals.
Definition ast.h:1808
PM_NODE_ALIGNAS struct pm_node * body
BlockNode::body.
Definition ast.h:1832
BlockParameterNode.
Definition ast.h:1871
pm_location_t operator_loc
BlockParameterNode::operator_loc.
Definition ast.h:1905
pm_location_t name_loc
BlockParameterNode::name_loc.
Definition ast.h:1894
pm_constant_id_t name
BlockParameterNode::name.
Definition ast.h:1884
pm_node_t base
The embedded base node.
Definition ast.h:1873
BlockParametersNode.
Definition ast.h:1924
pm_node_t base
The embedded base node.
Definition ast.h:1926
struct pm_node_list locals
BlockParametersNode::locals.
Definition ast.h:1954
PM_NODE_ALIGNAS struct pm_parameters_node * parameters
BlockParametersNode::parameters.
Definition ast.h:1940
pm_location_t closing_loc
BlockParametersNode::closing_loc.
Definition ast.h:1982
pm_location_t opening_loc
BlockParametersNode::opening_loc.
Definition ast.h:1968
BreakNode.
Definition ast.h:1997
pm_location_t keyword_loc
BreakNode::keyword_loc.
Definition ast.h:2019
pm_node_t base
The embedded base node.
Definition ast.h:1999
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
BreakNode::arguments.
Definition ast.h:2009
CallAndWriteNode.
Definition ast.h:2040
pm_location_t operator_loc
CallAndWriteNode::operator_loc.
Definition ast.h:2102
PM_NODE_ALIGNAS struct pm_node * receiver
CallAndWriteNode::receiver.
Definition ast.h:2052
pm_node_t base
The embedded base node.
Definition ast.h:2042
PM_NODE_ALIGNAS struct pm_node * value
CallAndWriteNode::value.
Definition ast.h:2112
pm_location_t call_operator_loc
CallAndWriteNode::call_operator_loc.
Definition ast.h:2062
pm_location_t message_loc
CallAndWriteNode::message_loc.
Definition ast.h:2072
pm_constant_id_t read_name
CallAndWriteNode::read_name.
Definition ast.h:2082
pm_constant_id_t write_name
CallAndWriteNode::write_name.
Definition ast.h:2092
CallNode.
Definition ast.h:2148
pm_location_t opening_loc
CallNode::opening_loc.
Definition ast.h:2209
pm_location_t closing_loc
CallNode::closing_loc.
Definition ast.h:2229
pm_constant_id_t name
CallNode::name.
Definition ast.h:2189
pm_node_t base
The embedded base node.
Definition ast.h:2150
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
CallNode::arguments.
Definition ast.h:2219
pm_location_t equal_loc
CallNode::equal_loc.
Definition ast.h:2242
pm_location_t call_operator_loc
CallNode::call_operator_loc.
Definition ast.h:2179
pm_location_t message_loc
CallNode::message_loc.
Definition ast.h:2199
PM_NODE_ALIGNAS struct pm_node * block
CallNode::block.
Definition ast.h:2252
PM_NODE_ALIGNAS struct pm_node * receiver
CallNode::receiver.
Definition ast.h:2166
CallOperatorWriteNode.
Definition ast.h:2273
pm_constant_id_t read_name
CallOperatorWriteNode::read_name.
Definition ast.h:2315
pm_constant_id_t binary_operator
CallOperatorWriteNode::binary_operator.
Definition ast.h:2335
pm_location_t binary_operator_loc
CallOperatorWriteNode::binary_operator_loc.
Definition ast.h:2345
pm_node_t base
The embedded base node.
Definition ast.h:2275
pm_constant_id_t write_name
CallOperatorWriteNode::write_name.
Definition ast.h:2325
pm_location_t message_loc
CallOperatorWriteNode::message_loc.
Definition ast.h:2305
PM_NODE_ALIGNAS struct pm_node * receiver
CallOperatorWriteNode::receiver.
Definition ast.h:2285
PM_NODE_ALIGNAS struct pm_node * value
CallOperatorWriteNode::value.
Definition ast.h:2355
pm_location_t call_operator_loc
CallOperatorWriteNode::call_operator_loc.
Definition ast.h:2295
CallOrWriteNode.
Definition ast.h:2376
pm_location_t operator_loc
CallOrWriteNode::operator_loc.
Definition ast.h:2438
pm_location_t call_operator_loc
CallOrWriteNode::call_operator_loc.
Definition ast.h:2398
PM_NODE_ALIGNAS struct pm_node * receiver
CallOrWriteNode::receiver.
Definition ast.h:2388
pm_node_t base
The embedded base node.
Definition ast.h:2378
PM_NODE_ALIGNAS struct pm_node * value
CallOrWriteNode::value.
Definition ast.h:2448
pm_constant_id_t write_name
CallOrWriteNode::write_name.
Definition ast.h:2428
pm_constant_id_t read_name
CallOrWriteNode::read_name.
Definition ast.h:2418
pm_location_t message_loc
CallOrWriteNode::message_loc.
Definition ast.h:2408
CallTargetNode.
Definition ast.h:2477
pm_node_t base
The embedded base node.
Definition ast.h:2479
pm_constant_id_t name
CallTargetNode::name.
Definition ast.h:2509
PM_NODE_ALIGNAS struct pm_node * receiver
CallTargetNode::receiver.
Definition ast.h:2489
pm_location_t call_operator_loc
CallTargetNode::call_operator_loc.
Definition ast.h:2499
pm_location_t message_loc
CallTargetNode::message_loc.
Definition ast.h:2519
CapturePatternNode.
Definition ast.h:2534
pm_location_t operator_loc
CapturePatternNode::operator_loc.
Definition ast.h:2566
pm_node_t base
The embedded base node.
Definition ast.h:2536
PM_NODE_ALIGNAS struct pm_node * value
CapturePatternNode::value.
Definition ast.h:2546
PM_NODE_ALIGNAS struct pm_local_variable_target_node * target
CapturePatternNode::target.
Definition ast.h:2556
CaseMatchNode.
Definition ast.h:2583
pm_location_t end_keyword_loc
CaseMatchNode::end_keyword_loc.
Definition ast.h:2635
struct pm_node_list conditions
CaseMatchNode::conditions.
Definition ast.h:2605
pm_node_t base
The embedded base node.
Definition ast.h:2585
pm_location_t case_keyword_loc
CaseMatchNode::case_keyword_loc.
Definition ast.h:2625
PM_NODE_ALIGNAS struct pm_node * predicate
CaseMatchNode::predicate.
Definition ast.h:2595
PM_NODE_ALIGNAS struct pm_else_node * else_clause
CaseMatchNode::else_clause.
Definition ast.h:2615
CaseNode.
Definition ast.h:2652
PM_NODE_ALIGNAS struct pm_else_node * else_clause
CaseNode::else_clause.
Definition ast.h:2684
struct pm_node_list conditions
CaseNode::conditions.
Definition ast.h:2674
PM_NODE_ALIGNAS struct pm_node * predicate
CaseNode::predicate.
Definition ast.h:2664
pm_node_t base
The embedded base node.
Definition ast.h:2654
pm_location_t case_keyword_loc
CaseNode::case_keyword_loc.
Definition ast.h:2694
pm_location_t end_keyword_loc
CaseNode::end_keyword_loc.
Definition ast.h:2704
ClassNode.
Definition ast.h:2719
pm_location_t class_keyword_loc
ClassNode::class_keyword_loc.
Definition ast.h:2736
pm_location_t end_keyword_loc
ClassNode::end_keyword_loc.
Definition ast.h:2781
pm_constant_id_list_t locals
ClassNode::locals.
Definition ast.h:2726
PM_NODE_ALIGNAS struct pm_node * superclass
ClassNode::superclass.
Definition ast.h:2761
pm_location_t inheritance_operator_loc
ClassNode::inheritance_operator_loc.
Definition ast.h:2751
pm_constant_id_t name
ClassNode::name.
Definition ast.h:2790
pm_node_t base
The embedded base node.
Definition ast.h:2721
PM_NODE_ALIGNAS struct pm_node * constant_path
ClassNode::constant_path.
Definition ast.h:2741
PM_NODE_ALIGNAS struct pm_node * body
ClassNode::body.
Definition ast.h:2771
ClassVariableAndWriteNode.
Definition ast.h:2805
PM_NODE_ALIGNAS struct pm_node * value
ClassVariableAndWriteNode::value.
Definition ast.h:2847
pm_constant_id_t name
ClassVariableAndWriteNode::name.
Definition ast.h:2817
pm_location_t operator_loc
ClassVariableAndWriteNode::operator_loc.
Definition ast.h:2837
pm_node_t base
The embedded base node.
Definition ast.h:2807
pm_location_t name_loc
ClassVariableAndWriteNode::name_loc.
Definition ast.h:2827
ClassVariableOperatorWriteNode.
Definition ast.h:2862
pm_node_t base
The embedded base node.
Definition ast.h:2864
pm_constant_id_t name
ClassVariableOperatorWriteNode::name.
Definition ast.h:2869
PM_NODE_ALIGNAS struct pm_node * value
ClassVariableOperatorWriteNode::value.
Definition ast.h:2884
pm_location_t name_loc
ClassVariableOperatorWriteNode::name_loc.
Definition ast.h:2874
pm_constant_id_t binary_operator
ClassVariableOperatorWriteNode::binary_operator.
Definition ast.h:2889
pm_location_t binary_operator_loc
ClassVariableOperatorWriteNode::binary_operator_loc.
Definition ast.h:2879
ClassVariableOrWriteNode.
Definition ast.h:2904
pm_node_t base
The embedded base node.
Definition ast.h:2906
PM_NODE_ALIGNAS struct pm_node * value
ClassVariableOrWriteNode::value.
Definition ast.h:2926
pm_location_t name_loc
ClassVariableOrWriteNode::name_loc.
Definition ast.h:2916
pm_location_t operator_loc
ClassVariableOrWriteNode::operator_loc.
Definition ast.h:2921
pm_constant_id_t name
ClassVariableOrWriteNode::name.
Definition ast.h:2911
ClassVariableReadNode.
Definition ast.h:2941
pm_node_t base
The embedded base node.
Definition ast.h:2943
pm_constant_id_t name
ClassVariableReadNode::name.
Definition ast.h:2954
ClassVariableTargetNode.
Definition ast.h:2969
pm_node_t base
The embedded base node.
Definition ast.h:2971
pm_constant_id_t name
ClassVariableTargetNode::name.
Definition ast.h:2976
ClassVariableWriteNode.
Definition ast.h:2991
pm_location_t name_loc
ClassVariableWriteNode::name_loc.
Definition ast.h:3014
PM_NODE_ALIGNAS struct pm_node * value
ClassVariableWriteNode::value.
Definition ast.h:3027
pm_node_t base
The embedded base node.
Definition ast.h:2993
pm_location_t operator_loc
ClassVariableWriteNode::operator_loc.
Definition ast.h:3037
pm_constant_id_t name
ClassVariableWriteNode::name.
Definition ast.h:3004
ConstantAndWriteNode.
Definition ast.h:3052
pm_location_t operator_loc
ConstantAndWriteNode::operator_loc.
Definition ast.h:3069
PM_NODE_ALIGNAS struct pm_node * value
ConstantAndWriteNode::value.
Definition ast.h:3074
pm_location_t name_loc
ConstantAndWriteNode::name_loc.
Definition ast.h:3064
pm_constant_id_t name
ConstantAndWriteNode::name.
Definition ast.h:3059
pm_node_t base
The embedded base node.
Definition ast.h:3054
A list of constant IDs.
Definition constant_pool.h:30
ConstantOperatorWriteNode.
Definition ast.h:3089
pm_constant_id_t name
ConstantOperatorWriteNode::name.
Definition ast.h:3096
pm_location_t name_loc
ConstantOperatorWriteNode::name_loc.
Definition ast.h:3101
pm_constant_id_t binary_operator
ConstantOperatorWriteNode::binary_operator.
Definition ast.h:3116
pm_location_t binary_operator_loc
ConstantOperatorWriteNode::binary_operator_loc.
Definition ast.h:3106
PM_NODE_ALIGNAS struct pm_node * value
ConstantOperatorWriteNode::value.
Definition ast.h:3111
pm_node_t base
The embedded base node.
Definition ast.h:3091
ConstantOrWriteNode.
Definition ast.h:3131
pm_location_t operator_loc
ConstantOrWriteNode::operator_loc.
Definition ast.h:3148
PM_NODE_ALIGNAS struct pm_node * value
ConstantOrWriteNode::value.
Definition ast.h:3153
pm_location_t name_loc
ConstantOrWriteNode::name_loc.
Definition ast.h:3143
pm_constant_id_t name
ConstantOrWriteNode::name.
Definition ast.h:3138
pm_node_t base
The embedded base node.
Definition ast.h:3133
ConstantPathAndWriteNode.
Definition ast.h:3168
PM_NODE_ALIGNAS struct pm_constant_path_node * target
ConstantPathAndWriteNode::target.
Definition ast.h:3175
pm_node_t base
The embedded base node.
Definition ast.h:3170
PM_NODE_ALIGNAS struct pm_node * value
ConstantPathAndWriteNode::value.
Definition ast.h:3185
pm_location_t operator_loc
ConstantPathAndWriteNode::operator_loc.
Definition ast.h:3180
ConstantPathNode.
Definition ast.h:3200
pm_location_t delimiter_loc
ConstantPathNode::delimiter_loc.
Definition ast.h:3238
pm_node_t base
The embedded base node.
Definition ast.h:3202
PM_NODE_ALIGNAS struct pm_node * parent
ConstantPathNode::parent.
Definition ast.h:3218
pm_location_t name_loc
ConstantPathNode::name_loc.
Definition ast.h:3251
pm_constant_id_t name
ConstantPathNode::name.
Definition ast.h:3225
ConstantPathOperatorWriteNode.
Definition ast.h:3266
PM_NODE_ALIGNAS struct pm_constant_path_node * target
ConstantPathOperatorWriteNode::target.
Definition ast.h:3273
pm_constant_id_t binary_operator
ConstantPathOperatorWriteNode::binary_operator.
Definition ast.h:3288
pm_node_t base
The embedded base node.
Definition ast.h:3268
pm_location_t binary_operator_loc
ConstantPathOperatorWriteNode::binary_operator_loc.
Definition ast.h:3278
PM_NODE_ALIGNAS struct pm_node * value
ConstantPathOperatorWriteNode::value.
Definition ast.h:3283
ConstantPathOrWriteNode.
Definition ast.h:3303
pm_location_t operator_loc
ConstantPathOrWriteNode::operator_loc.
Definition ast.h:3315
pm_node_t base
The embedded base node.
Definition ast.h:3305
PM_NODE_ALIGNAS struct pm_node * value
ConstantPathOrWriteNode::value.
Definition ast.h:3320
PM_NODE_ALIGNAS struct pm_constant_path_node * target
ConstantPathOrWriteNode::target.
Definition ast.h:3310
ConstantPathTargetNode.
Definition ast.h:3335
pm_node_t base
The embedded base node.
Definition ast.h:3337
pm_location_t delimiter_loc
ConstantPathTargetNode::delimiter_loc.
Definition ast.h:3352
pm_constant_id_t name
ConstantPathTargetNode::name.
Definition ast.h:3347
PM_NODE_ALIGNAS struct pm_node * parent
ConstantPathTargetNode::parent.
Definition ast.h:3342
pm_location_t name_loc
ConstantPathTargetNode::name_loc.
Definition ast.h:3357
ConstantPathWriteNode.
Definition ast.h:3378
PM_NODE_ALIGNAS struct pm_node * value
ConstantPathWriteNode::value.
Definition ast.h:3413
pm_location_t operator_loc
ConstantPathWriteNode::operator_loc.
Definition ast.h:3403
pm_node_t base
The embedded base node.
Definition ast.h:3380
PM_NODE_ALIGNAS struct pm_constant_path_node * target
ConstantPathWriteNode::target.
Definition ast.h:3393
ConstantReadNode.
Definition ast.h:3428
pm_node_t base
The embedded base node.
Definition ast.h:3430
pm_constant_id_t name
ConstantReadNode::name.
Definition ast.h:3441
ConstantTargetNode.
Definition ast.h:3456
pm_node_t base
The embedded base node.
Definition ast.h:3458
pm_constant_id_t name
ConstantTargetNode::name.
Definition ast.h:3463
ConstantWriteNode.
Definition ast.h:3478
pm_node_t base
The embedded base node.
Definition ast.h:3480
PM_NODE_ALIGNAS struct pm_node * value
ConstantWriteNode::value.
Definition ast.h:3514
pm_constant_id_t name
ConstantWriteNode::name.
Definition ast.h:3491
pm_location_t name_loc
ConstantWriteNode::name_loc.
Definition ast.h:3501
pm_location_t operator_loc
ConstantWriteNode::operator_loc.
Definition ast.h:3524
DefNode.
Definition ast.h:3540
pm_location_t end_keyword_loc
DefNode::end_keyword_loc.
Definition ast.h:3602
pm_constant_id_t name
DefNode::name.
Definition ast.h:3547
pm_location_t name_loc
DefNode::name_loc.
Definition ast.h:3552
pm_location_t rparen_loc
DefNode::rparen_loc.
Definition ast.h:3592
PM_NODE_ALIGNAS struct pm_parameters_node * parameters
DefNode::parameters.
Definition ast.h:3562
pm_location_t equal_loc
DefNode::equal_loc.
Definition ast.h:3597
pm_location_t def_keyword_loc
DefNode::def_keyword_loc.
Definition ast.h:3577
pm_node_t base
The embedded base node.
Definition ast.h:3542
pm_location_t lparen_loc
DefNode::lparen_loc.
Definition ast.h:3587
PM_NODE_ALIGNAS struct pm_node * receiver
DefNode::receiver.
Definition ast.h:3557
PM_NODE_ALIGNAS struct pm_node * body
DefNode::body.
Definition ast.h:3567
pm_location_t operator_loc
DefNode::operator_loc.
Definition ast.h:3582
pm_constant_id_list_t locals
DefNode::locals.
Definition ast.h:3572
DefinedNode.
Definition ast.h:3617
PM_NODE_ALIGNAS struct pm_node * value
DefinedNode::value.
Definition ast.h:3629
pm_location_t lparen_loc
DefinedNode::lparen_loc.
Definition ast.h:3624
pm_node_t base
The embedded base node.
Definition ast.h:3619
pm_location_t rparen_loc
DefinedNode::rparen_loc.
Definition ast.h:3634
pm_location_t keyword_loc
DefinedNode::keyword_loc.
Definition ast.h:3639
ElseNode.
Definition ast.h:3654
pm_location_t else_keyword_loc
ElseNode::else_keyword_loc.
Definition ast.h:3661
pm_node_t base
The embedded base node.
Definition ast.h:3656
PM_NODE_ALIGNAS struct pm_statements_node * statements
ElseNode::statements.
Definition ast.h:3666
pm_location_t end_keyword_loc
ElseNode::end_keyword_loc.
Definition ast.h:3671
EmbeddedStatementsNode.
Definition ast.h:3686
PM_NODE_ALIGNAS struct pm_statements_node * statements
EmbeddedStatementsNode::statements.
Definition ast.h:3698
pm_location_t closing_loc
EmbeddedStatementsNode::closing_loc.
Definition ast.h:3703
pm_node_t base
The embedded base node.
Definition ast.h:3688
pm_location_t opening_loc
EmbeddedStatementsNode::opening_loc.
Definition ast.h:3693
EmbeddedVariableNode.
Definition ast.h:3718
PM_NODE_ALIGNAS struct pm_node * variable
EmbeddedVariableNode::variable.
Definition ast.h:3730
pm_location_t operator_loc
EmbeddedVariableNode::operator_loc.
Definition ast.h:3725
pm_node_t base
The embedded base node.
Definition ast.h:3720
EnsureNode.
Definition ast.h:3749
PM_NODE_ALIGNAS struct pm_statements_node * statements
EnsureNode::statements.
Definition ast.h:3761
pm_node_t base
The embedded base node.
Definition ast.h:3751
pm_location_t ensure_keyword_loc
EnsureNode::ensure_keyword_loc.
Definition ast.h:3756
pm_location_t end_keyword_loc
EnsureNode::end_keyword_loc.
Definition ast.h:3766
ErrorRecoveryNode.
Definition ast.h:3778
PM_NODE_ALIGNAS struct pm_node * unexpected
ErrorRecoveryNode::unexpected.
Definition ast.h:3787
pm_node_t base
The embedded base node.
Definition ast.h:3780
FalseNode.
Definition ast.h:3802
pm_node_t base
The embedded base node.
Definition ast.h:3804
FindPatternNode.
Definition ast.h:3828
PM_NODE_ALIGNAS struct pm_splat_node * left
FindPatternNode::left.
Definition ast.h:3853
PM_NODE_ALIGNAS struct pm_splat_node * right
FindPatternNode::right.
Definition ast.h:3879
pm_location_t opening_loc
FindPatternNode::opening_loc.
Definition ast.h:3892
pm_node_t base
The embedded base node.
Definition ast.h:3830
PM_NODE_ALIGNAS struct pm_node * constant
FindPatternNode::constant.
Definition ast.h:3840
struct pm_node_list requireds
FindPatternNode::requireds.
Definition ast.h:3866
pm_location_t closing_loc
FindPatternNode::closing_loc.
Definition ast.h:3905
FlipFlopNode.
Definition ast.h:3923
PM_NODE_ALIGNAS struct pm_node * left
FlipFlopNode::left.
Definition ast.h:3930
pm_node_t base
The embedded base node.
Definition ast.h:3925
pm_location_t operator_loc
FlipFlopNode::operator_loc.
Definition ast.h:3940
PM_NODE_ALIGNAS struct pm_node * right
FlipFlopNode::right.
Definition ast.h:3935
FloatNode.
Definition ast.h:3955
double value
FloatNode::value.
Definition ast.h:3964
pm_node_t base
The embedded base node.
Definition ast.h:3957
ForNode.
Definition ast.h:3979
PM_NODE_ALIGNAS struct pm_node * index
ForNode::index.
Definition ast.h:3991
PM_NODE_ALIGNAS struct pm_node * collection
ForNode::collection.
Definition ast.h:4001
pm_node_t base
The embedded base node.
Definition ast.h:3981
PM_NODE_ALIGNAS struct pm_statements_node * statements
ForNode::statements.
Definition ast.h:4013
pm_location_t end_keyword_loc
ForNode::end_keyword_loc.
Definition ast.h:4053
pm_location_t for_keyword_loc
ForNode::for_keyword_loc.
Definition ast.h:4023
pm_location_t do_keyword_loc
ForNode::do_keyword_loc.
Definition ast.h:4043
pm_location_t in_keyword_loc
ForNode::in_keyword_loc.
Definition ast.h:4033
ForwardingArgumentsNode.
Definition ast.h:4070
pm_node_t base
The embedded base node.
Definition ast.h:4072
ForwardingParameterNode.
Definition ast.h:4088
pm_node_t base
The embedded base node.
Definition ast.h:4090
ForwardingSuperNode.
Definition ast.h:4110
pm_node_t base
The embedded base node.
Definition ast.h:4112
PM_NODE_ALIGNAS struct pm_block_node * block
ForwardingSuperNode::block.
Definition ast.h:4130
pm_location_t keyword_loc
ForwardingSuperNode::keyword_loc.
Definition ast.h:4123
GlobalVariableAndWriteNode.
Definition ast.h:4145
pm_location_t operator_loc
GlobalVariableAndWriteNode::operator_loc.
Definition ast.h:4162
pm_node_t base
The embedded base node.
Definition ast.h:4147
PM_NODE_ALIGNAS struct pm_node * value
GlobalVariableAndWriteNode::value.
Definition ast.h:4167
pm_location_t name_loc
GlobalVariableAndWriteNode::name_loc.
Definition ast.h:4157
pm_constant_id_t name
GlobalVariableAndWriteNode::name.
Definition ast.h:4152
GlobalVariableOperatorWriteNode.
Definition ast.h:4182
PM_NODE_ALIGNAS struct pm_node * value
GlobalVariableOperatorWriteNode::value.
Definition ast.h:4204
pm_constant_id_t name
GlobalVariableOperatorWriteNode::name.
Definition ast.h:4189
pm_constant_id_t binary_operator
GlobalVariableOperatorWriteNode::binary_operator.
Definition ast.h:4209
pm_location_t name_loc
GlobalVariableOperatorWriteNode::name_loc.
Definition ast.h:4194
pm_node_t base
The embedded base node.
Definition ast.h:4184
pm_location_t binary_operator_loc
GlobalVariableOperatorWriteNode::binary_operator_loc.
Definition ast.h:4199
GlobalVariableOrWriteNode.
Definition ast.h:4224
pm_constant_id_t name
GlobalVariableOrWriteNode::name.
Definition ast.h:4231
pm_location_t name_loc
GlobalVariableOrWriteNode::name_loc.
Definition ast.h:4236
pm_node_t base
The embedded base node.
Definition ast.h:4226
pm_location_t operator_loc
GlobalVariableOrWriteNode::operator_loc.
Definition ast.h:4241
PM_NODE_ALIGNAS struct pm_node * value
GlobalVariableOrWriteNode::value.
Definition ast.h:4246
GlobalVariableReadNode.
Definition ast.h:4261
pm_node_t base
The embedded base node.
Definition ast.h:4263
pm_constant_id_t name
GlobalVariableReadNode::name.
Definition ast.h:4274
GlobalVariableTargetNode.
Definition ast.h:4289
pm_constant_id_t name
GlobalVariableTargetNode::name.
Definition ast.h:4296
pm_node_t base
The embedded base node.
Definition ast.h:4291
GlobalVariableWriteNode.
Definition ast.h:4311
pm_location_t name_loc
GlobalVariableWriteNode::name_loc.
Definition ast.h:4334
pm_location_t operator_loc
GlobalVariableWriteNode::operator_loc.
Definition ast.h:4357
pm_constant_id_t name
GlobalVariableWriteNode::name.
Definition ast.h:4324
pm_node_t base
The embedded base node.
Definition ast.h:4313
PM_NODE_ALIGNAS struct pm_node * value
GlobalVariableWriteNode::value.
Definition ast.h:4347
HashNode.
Definition ast.h:4372
struct pm_node_list elements
HashNode::elements.
Definition ast.h:4397
pm_node_t base
The embedded base node.
Definition ast.h:4374
pm_location_t closing_loc
HashNode::closing_loc.
Definition ast.h:4407
pm_location_t opening_loc
HashNode::opening_loc.
Definition ast.h:4384
HashPatternNode.
Definition ast.h:4431
PM_NODE_ALIGNAS struct pm_node * constant
HashPatternNode::constant.
Definition ast.h:4446
struct pm_node_list elements
HashPatternNode::elements.
Definition ast.h:4456
pm_location_t opening_loc
HashPatternNode::opening_loc.
Definition ast.h:4485
pm_node_t base
The embedded base node.
Definition ast.h:4433
pm_location_t closing_loc
HashPatternNode::closing_loc.
Definition ast.h:4498
PM_NODE_ALIGNAS struct pm_node * rest
HashPatternNode::rest.
Definition ast.h:4472
IfNode.
Definition ast.h:4519
PM_NODE_ALIGNAS struct pm_node * predicate
IfNode::predicate.
Definition ast.h:4551
pm_location_t end_keyword_loc
IfNode::end_keyword_loc.
Definition ast.h:4609
pm_location_t if_keyword_loc
IfNode::if_keyword_loc.
Definition ast.h:4533
PM_NODE_ALIGNAS struct pm_statements_node * statements
IfNode::statements.
Definition ast.h:4578
pm_node_t base
The embedded base node.
Definition ast.h:4521
pm_location_t then_keyword_loc
IfNode::then_keyword_loc.
Definition ast.h:4564
PM_NODE_ALIGNAS struct pm_node * subsequent
IfNode::subsequent.
Definition ast.h:4597
ImaginaryNode.
Definition ast.h:4624
pm_node_t base
The embedded base node.
Definition ast.h:4626
PM_NODE_ALIGNAS struct pm_node * numeric
ImaginaryNode::numeric.
Definition ast.h:4631
ImplicitNode.
Definition ast.h:4652
pm_node_t base
The embedded base node.
Definition ast.h:4654
PM_NODE_ALIGNAS struct pm_node * value
ImplicitNode::value.
Definition ast.h:4659
ImplicitRestNode.
Definition ast.h:4683
pm_node_t base
The embedded base node.
Definition ast.h:4685
InNode.
Definition ast.h:4700
PM_NODE_ALIGNAS struct pm_node * pattern
InNode::pattern.
Definition ast.h:4707
PM_NODE_ALIGNAS struct pm_statements_node * statements
InNode::statements.
Definition ast.h:4712
pm_node_t base
The embedded base node.
Definition ast.h:4702
pm_location_t then_loc
InNode::then_loc.
Definition ast.h:4722
pm_location_t in_loc
InNode::in_loc.
Definition ast.h:4717
IndexAndWriteNode.
Definition ast.h:4743
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
IndexAndWriteNode::arguments.
Definition ast.h:4765
pm_node_t base
The embedded base node.
Definition ast.h:4745
pm_location_t operator_loc
IndexAndWriteNode::operator_loc.
Definition ast.h:4780
pm_location_t closing_loc
IndexAndWriteNode::closing_loc.
Definition ast.h:4770
pm_location_t opening_loc
IndexAndWriteNode::opening_loc.
Definition ast.h:4760
pm_location_t call_operator_loc
IndexAndWriteNode::call_operator_loc.
Definition ast.h:4755
PM_NODE_ALIGNAS struct pm_block_argument_node * block
IndexAndWriteNode::block.
Definition ast.h:4775
PM_NODE_ALIGNAS struct pm_node * receiver
IndexAndWriteNode::receiver.
Definition ast.h:4750
PM_NODE_ALIGNAS struct pm_node * value
IndexAndWriteNode::value.
Definition ast.h:4785
IndexOperatorWriteNode.
Definition ast.h:4806
PM_NODE_ALIGNAS struct pm_block_argument_node * block
IndexOperatorWriteNode::block.
Definition ast.h:4838
pm_node_t base
The embedded base node.
Definition ast.h:4808
PM_NODE_ALIGNAS struct pm_node * receiver
IndexOperatorWriteNode::receiver.
Definition ast.h:4813
pm_location_t binary_operator_loc
IndexOperatorWriteNode::binary_operator_loc.
Definition ast.h:4848
PM_NODE_ALIGNAS struct pm_node * value
IndexOperatorWriteNode::value.
Definition ast.h:4853
pm_location_t opening_loc
IndexOperatorWriteNode::opening_loc.
Definition ast.h:4823
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
IndexOperatorWriteNode::arguments.
Definition ast.h:4828
pm_location_t call_operator_loc
IndexOperatorWriteNode::call_operator_loc.
Definition ast.h:4818
pm_location_t closing_loc
IndexOperatorWriteNode::closing_loc.
Definition ast.h:4833
pm_constant_id_t binary_operator
IndexOperatorWriteNode::binary_operator.
Definition ast.h:4843
IndexOrWriteNode.
Definition ast.h:4874
pm_location_t closing_loc
IndexOrWriteNode::closing_loc.
Definition ast.h:4901
pm_location_t call_operator_loc
IndexOrWriteNode::call_operator_loc.
Definition ast.h:4886
pm_node_t base
The embedded base node.
Definition ast.h:4876
pm_location_t operator_loc
IndexOrWriteNode::operator_loc.
Definition ast.h:4911
pm_location_t opening_loc
IndexOrWriteNode::opening_loc.
Definition ast.h:4891
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
IndexOrWriteNode::arguments.
Definition ast.h:4896
PM_NODE_ALIGNAS struct pm_node * value
IndexOrWriteNode::value.
Definition ast.h:4916
PM_NODE_ALIGNAS struct pm_node * receiver
IndexOrWriteNode::receiver.
Definition ast.h:4881
PM_NODE_ALIGNAS struct pm_block_argument_node * block
IndexOrWriteNode::block.
Definition ast.h:4906
IndexTargetNode.
Definition ast.h:4945
pm_node_t base
The embedded base node.
Definition ast.h:4947
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
IndexTargetNode::arguments.
Definition ast.h:4962
pm_location_t closing_loc
IndexTargetNode::closing_loc.
Definition ast.h:4967
PM_NODE_ALIGNAS struct pm_block_argument_node * block
IndexTargetNode::block.
Definition ast.h:4972
pm_location_t opening_loc
IndexTargetNode::opening_loc.
Definition ast.h:4957
PM_NODE_ALIGNAS struct pm_node * receiver
IndexTargetNode::receiver.
Definition ast.h:4952
InstanceVariableAndWriteNode.
Definition ast.h:4987
PM_NODE_ALIGNAS struct pm_node * value
InstanceVariableAndWriteNode::value.
Definition ast.h:5009
pm_location_t operator_loc
InstanceVariableAndWriteNode::operator_loc.
Definition ast.h:5004
pm_location_t name_loc
InstanceVariableAndWriteNode::name_loc.
Definition ast.h:4999
pm_node_t base
The embedded base node.
Definition ast.h:4989
pm_constant_id_t name
InstanceVariableAndWriteNode::name.
Definition ast.h:4994
InstanceVariableOperatorWriteNode.
Definition ast.h:5024
pm_constant_id_t binary_operator
InstanceVariableOperatorWriteNode::binary_operator.
Definition ast.h:5051
PM_NODE_ALIGNAS struct pm_node * value
InstanceVariableOperatorWriteNode::value.
Definition ast.h:5046
pm_location_t binary_operator_loc
InstanceVariableOperatorWriteNode::binary_operator_loc.
Definition ast.h:5041
pm_constant_id_t name
InstanceVariableOperatorWriteNode::name.
Definition ast.h:5031
pm_node_t base
The embedded base node.
Definition ast.h:5026
pm_location_t name_loc
InstanceVariableOperatorWriteNode::name_loc.
Definition ast.h:5036
InstanceVariableOrWriteNode.
Definition ast.h:5066
pm_location_t operator_loc
InstanceVariableOrWriteNode::operator_loc.
Definition ast.h:5083
pm_node_t base
The embedded base node.
Definition ast.h:5068
pm_location_t name_loc
InstanceVariableOrWriteNode::name_loc.
Definition ast.h:5078
pm_constant_id_t name
InstanceVariableOrWriteNode::name.
Definition ast.h:5073
PM_NODE_ALIGNAS struct pm_node * value
InstanceVariableOrWriteNode::value.
Definition ast.h:5088
InstanceVariableReadNode.
Definition ast.h:5103
pm_constant_id_t name
InstanceVariableReadNode::name.
Definition ast.h:5116
pm_node_t base
The embedded base node.
Definition ast.h:5105
InstanceVariableTargetNode.
Definition ast.h:5131
pm_constant_id_t name
InstanceVariableTargetNode::name.
Definition ast.h:5138
pm_node_t base
The embedded base node.
Definition ast.h:5133
InstanceVariableWriteNode.
Definition ast.h:5153
pm_location_t operator_loc
InstanceVariableWriteNode::operator_loc.
Definition ast.h:5199
PM_NODE_ALIGNAS struct pm_node * value
InstanceVariableWriteNode::value.
Definition ast.h:5189
pm_constant_id_t name
InstanceVariableWriteNode::name.
Definition ast.h:5166
pm_node_t base
The embedded base node.
Definition ast.h:5155
pm_location_t name_loc
InstanceVariableWriteNode::name_loc.
Definition ast.h:5176
IntegerNode.
Definition ast.h:5220
pm_integer_t value
IntegerNode::value.
Definition ast.h:5229
pm_node_t base
The embedded base node.
Definition ast.h:5222
A structure represents an arbitrary-sized integer.
Definition integer.h:16
InterpolatedMatchLastLineNode.
Definition ast.h:5257
pm_node_t base
The embedded base node.
Definition ast.h:5259
pm_location_t closing_loc
InterpolatedMatchLastLineNode::closing_loc.
Definition ast.h:5274
struct pm_node_list parts
InterpolatedMatchLastLineNode::parts.
Definition ast.h:5269
pm_location_t opening_loc
InterpolatedMatchLastLineNode::opening_loc.
Definition ast.h:5264
InterpolatedRegularExpressionNode.
Definition ast.h:5302
pm_location_t opening_loc
InterpolatedRegularExpressionNode::opening_loc.
Definition ast.h:5309
struct pm_node_list parts
InterpolatedRegularExpressionNode::parts.
Definition ast.h:5314
pm_node_t base
The embedded base node.
Definition ast.h:5304
pm_location_t closing_loc
InterpolatedRegularExpressionNode::closing_loc.
Definition ast.h:5319
InterpolatedStringNode.
Definition ast.h:5338
pm_node_t base
The embedded base node.
Definition ast.h:5340
pm_location_t closing_loc
InterpolatedStringNode::closing_loc.
Definition ast.h:5355
pm_location_t opening_loc
InterpolatedStringNode::opening_loc.
Definition ast.h:5345
struct pm_node_list parts
InterpolatedStringNode::parts.
Definition ast.h:5350
InterpolatedSymbolNode.
Definition ast.h:5370
struct pm_node_list parts
InterpolatedSymbolNode::parts.
Definition ast.h:5382
pm_location_t closing_loc
InterpolatedSymbolNode::closing_loc.
Definition ast.h:5387
pm_location_t opening_loc
InterpolatedSymbolNode::opening_loc.
Definition ast.h:5377
pm_node_t base
The embedded base node.
Definition ast.h:5372
InterpolatedXStringNode.
Definition ast.h:5402
pm_location_t opening_loc
InterpolatedXStringNode::opening_loc.
Definition ast.h:5409
pm_location_t closing_loc
InterpolatedXStringNode::closing_loc.
Definition ast.h:5419
pm_node_t base
The embedded base node.
Definition ast.h:5404
struct pm_node_list parts
InterpolatedXStringNode::parts.
Definition ast.h:5414
ItLocalVariableReadNode.
Definition ast.h:5434
pm_node_t base
The embedded base node.
Definition ast.h:5436
ItParametersNode.
Definition ast.h:5451
pm_node_t base
The embedded base node.
Definition ast.h:5453
KeywordHashNode.
Definition ast.h:5471
pm_node_t base
The embedded base node.
Definition ast.h:5473
struct pm_node_list elements
KeywordHashNode::elements.
Definition ast.h:5478
KeywordRestParameterNode.
Definition ast.h:5497
pm_node_t base
The embedded base node.
Definition ast.h:5499
pm_constant_id_t name
KeywordRestParameterNode::name.
Definition ast.h:5504
pm_location_t operator_loc
KeywordRestParameterNode::operator_loc.
Definition ast.h:5514
pm_location_t name_loc
KeywordRestParameterNode::name_loc.
Definition ast.h:5509
LambdaNode.
Definition ast.h:5529
pm_location_t closing_loc
LambdaNode::closing_loc.
Definition ast.h:5551
pm_node_t base
The embedded base node.
Definition ast.h:5531
pm_location_t opening_loc
LambdaNode::opening_loc.
Definition ast.h:5546
pm_location_t operator_loc
LambdaNode::operator_loc.
Definition ast.h:5541
pm_constant_id_list_t locals
LambdaNode::locals.
Definition ast.h:5536
PM_NODE_ALIGNAS struct pm_node * body
LambdaNode::body.
Definition ast.h:5561
PM_NODE_ALIGNAS struct pm_node * parameters
LambdaNode::parameters.
Definition ast.h:5556
LocalVariableAndWriteNode.
Definition ast.h:5576
pm_constant_id_t name
LocalVariableAndWriteNode::name.
Definition ast.h:5598
pm_node_t base
The embedded base node.
Definition ast.h:5578
uint32_t depth
LocalVariableAndWriteNode::depth.
Definition ast.h:5603
pm_location_t operator_loc
LocalVariableAndWriteNode::operator_loc.
Definition ast.h:5588
PM_NODE_ALIGNAS struct pm_node * value
LocalVariableAndWriteNode::value.
Definition ast.h:5593
pm_location_t name_loc
LocalVariableAndWriteNode::name_loc.
Definition ast.h:5583
LocalVariableOperatorWriteNode.
Definition ast.h:5618
uint32_t depth
LocalVariableOperatorWriteNode::depth.
Definition ast.h:5650
pm_constant_id_t binary_operator
LocalVariableOperatorWriteNode::binary_operator.
Definition ast.h:5645
pm_node_t base
The embedded base node.
Definition ast.h:5620
pm_location_t name_loc
LocalVariableOperatorWriteNode::name_loc.
Definition ast.h:5625
pm_location_t binary_operator_loc
LocalVariableOperatorWriteNode::binary_operator_loc.
Definition ast.h:5630
PM_NODE_ALIGNAS struct pm_node * value
LocalVariableOperatorWriteNode::value.
Definition ast.h:5635
pm_constant_id_t name
LocalVariableOperatorWriteNode::name.
Definition ast.h:5640
LocalVariableOrWriteNode.
Definition ast.h:5665
PM_NODE_ALIGNAS struct pm_node * value
LocalVariableOrWriteNode::value.
Definition ast.h:5682
uint32_t depth
LocalVariableOrWriteNode::depth.
Definition ast.h:5692
pm_location_t operator_loc
LocalVariableOrWriteNode::operator_loc.
Definition ast.h:5677
pm_node_t base
The embedded base node.
Definition ast.h:5667
pm_constant_id_t name
LocalVariableOrWriteNode::name.
Definition ast.h:5687
pm_location_t name_loc
LocalVariableOrWriteNode::name_loc.
Definition ast.h:5672
LocalVariableReadNode.
Definition ast.h:5707
uint32_t depth
LocalVariableReadNode::depth.
Definition ast.h:5737
pm_constant_id_t name
LocalVariableReadNode::name.
Definition ast.h:5724
pm_node_t base
The embedded base node.
Definition ast.h:5709
LocalVariableTargetNode.
Definition ast.h:5755
uint32_t depth
LocalVariableTargetNode::depth.
Definition ast.h:5767
pm_constant_id_t name
LocalVariableTargetNode::name.
Definition ast.h:5762
pm_node_t base
The embedded base node.
Definition ast.h:5757
LocalVariableWriteNode.
Definition ast.h:5782
PM_NODE_ALIGNAS struct pm_node * value
LocalVariableWriteNode::value.
Definition ast.h:5835
pm_location_t operator_loc
LocalVariableWriteNode::operator_loc.
Definition ast.h:5845
pm_location_t name_loc
LocalVariableWriteNode::name_loc.
Definition ast.h:5818
pm_node_t base
The embedded base node.
Definition ast.h:5784
uint32_t depth
LocalVariableWriteNode::depth.
Definition ast.h:5808
pm_constant_id_t name
LocalVariableWriteNode::name.
Definition ast.h:5795
This struct represents a slice in the source code, defined by an offset and a length.
Definition ast.h:559
uint32_t start
The offset of the location from the start of the source.
Definition ast.h:561
uint32_t length
The length of the location.
Definition ast.h:564
MatchLastLineNode.
Definition ast.h:5873
pm_location_t content_loc
MatchLastLineNode::content_loc.
Definition ast.h:5885
pm_location_t opening_loc
MatchLastLineNode::opening_loc.
Definition ast.h:5880
pm_location_t closing_loc
MatchLastLineNode::closing_loc.
Definition ast.h:5890
pm_string_t unescaped
MatchLastLineNode::unescaped.
Definition ast.h:5895
pm_node_t base
The embedded base node.
Definition ast.h:5875
MatchPredicateNode.
Definition ast.h:5910
pm_location_t operator_loc
MatchPredicateNode::operator_loc.
Definition ast.h:5927
PM_NODE_ALIGNAS struct pm_node * pattern
MatchPredicateNode::pattern.
Definition ast.h:5922
PM_NODE_ALIGNAS struct pm_node * value
MatchPredicateNode::value.
Definition ast.h:5917
pm_node_t base
The embedded base node.
Definition ast.h:5912
MatchRequiredNode.
Definition ast.h:5942
pm_node_t base
The embedded base node.
Definition ast.h:5944
pm_location_t operator_loc
MatchRequiredNode::operator_loc.
Definition ast.h:6013
PM_NODE_ALIGNAS struct pm_node * pattern
MatchRequiredNode::pattern.
Definition ast.h:6003
PM_NODE_ALIGNAS struct pm_node * value
MatchRequiredNode::value.
Definition ast.h:5954
MatchWriteNode.
Definition ast.h:6028
pm_node_t base
The embedded base node.
Definition ast.h:6030
PM_NODE_ALIGNAS struct pm_call_node * call
MatchWriteNode::call.
Definition ast.h:6035
struct pm_node_list targets
MatchWriteNode::targets.
Definition ast.h:6040
ModuleNode.
Definition ast.h:6055
pm_location_t end_keyword_loc
ModuleNode::end_keyword_loc.
Definition ast.h:6082
PM_NODE_ALIGNAS struct pm_node * constant_path
ModuleNode::constant_path.
Definition ast.h:6072
PM_NODE_ALIGNAS struct pm_node * body
ModuleNode::body.
Definition ast.h:6077
pm_constant_id_list_t locals
ModuleNode::locals.
Definition ast.h:6062
pm_node_t base
The embedded base node.
Definition ast.h:6057
pm_location_t module_keyword_loc
ModuleNode::module_keyword_loc.
Definition ast.h:6067
pm_constant_id_t name
ModuleNode::name.
Definition ast.h:6087
MultiTargetNode.
Definition ast.h:6107
PM_NODE_ALIGNAS struct pm_node * rest
MultiTargetNode::rest.
Definition ast.h:6144
pm_node_t base
The embedded base node.
Definition ast.h:6109
pm_location_t lparen_loc
MultiTargetNode::lparen_loc.
Definition ast.h:6164
struct pm_node_list lefts
MultiTargetNode::lefts.
Definition ast.h:6124
pm_location_t rparen_loc
MultiTargetNode::rparen_loc.
Definition ast.h:6174
struct pm_node_list rights
MultiTargetNode::rights.
Definition ast.h:6154
MultiWriteNode.
Definition ast.h:6189
pm_location_t rparen_loc
MultiWriteNode::rparen_loc.
Definition ast.h:6256
PM_NODE_ALIGNAS struct pm_node * rest
MultiWriteNode::rest.
Definition ast.h:6226
struct pm_node_list rights
MultiWriteNode::rights.
Definition ast.h:6236
pm_location_t operator_loc
MultiWriteNode::operator_loc.
Definition ast.h:6266
PM_NODE_ALIGNAS struct pm_node * value
MultiWriteNode::value.
Definition ast.h:6276
pm_location_t lparen_loc
MultiWriteNode::lparen_loc.
Definition ast.h:6246
struct pm_node_list lefts
MultiWriteNode::lefts.
Definition ast.h:6206
pm_node_t base
The embedded base node.
Definition ast.h:6191
NextNode.
Definition ast.h:6291
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
NextNode::arguments.
Definition ast.h:6298
pm_node_t base
The embedded base node.
Definition ast.h:6293
pm_location_t keyword_loc
NextNode::keyword_loc.
Definition ast.h:6303
NilNode.
Definition ast.h:6318
pm_node_t base
The embedded base node.
Definition ast.h:6320
NoBlockParameterNode.
Definition ast.h:6336
pm_location_t keyword_loc
NoBlockParameterNode::keyword_loc.
Definition ast.h:6348
pm_node_t base
The embedded base node.
Definition ast.h:6338
pm_location_t operator_loc
NoBlockParameterNode::operator_loc.
Definition ast.h:6343
NoKeywordsParameterNode.
Definition ast.h:6364
pm_location_t keyword_loc
NoKeywordsParameterNode::keyword_loc.
Definition ast.h:6376
pm_location_t operator_loc
NoKeywordsParameterNode::operator_loc.
Definition ast.h:6371
pm_node_t base
The embedded base node.
Definition ast.h:6366
A list of nodes in the source, most often used for lists of children.
Definition ast.h:572
size_t size
The number of nodes in the list.
Definition ast.h:574
struct pm_node ** nodes
The nodes in the list.
Definition ast.h:580
size_t capacity
The capacity of the list that has been allocated.
Definition ast.h:577
This is the base structure that represents a node in the syntax tree.
Definition ast.h:1070
pm_node_type_t type
This represents the type of the node.
Definition ast.h:1075
uint32_t node_id
The unique identifier for this node, which is deterministic based on the source.
Definition ast.h:1087
pm_node_flags_t flags
This represents any flags on the node.
Definition ast.h:1081
pm_location_t location
This is the location of the node in the source.
Definition ast.h:1093
NumberedParametersNode.
Definition ast.h:6391
pm_node_t base
The embedded base node.
Definition ast.h:6393
uint8_t maximum
NumberedParametersNode::maximum.
Definition ast.h:6398
NumberedReferenceReadNode.
Definition ast.h:6413
pm_node_t base
The embedded base node.
Definition ast.h:6415
uint32_t number
NumberedReferenceReadNode::number.
Definition ast.h:6428
OptionalKeywordParameterNode.
Definition ast.h:6447
pm_node_t base
The embedded base node.
Definition ast.h:6449
pm_constant_id_t name
OptionalKeywordParameterNode::name.
Definition ast.h:6454
PM_NODE_ALIGNAS struct pm_node * value
OptionalKeywordParameterNode::value.
Definition ast.h:6464
pm_location_t name_loc
OptionalKeywordParameterNode::name_loc.
Definition ast.h:6459
OptionalParameterNode.
Definition ast.h:6483
pm_location_t name_loc
OptionalParameterNode::name_loc.
Definition ast.h:6495
pm_constant_id_t name
OptionalParameterNode::name.
Definition ast.h:6490
pm_node_t base
The embedded base node.
Definition ast.h:6485
pm_location_t operator_loc
OptionalParameterNode::operator_loc.
Definition ast.h:6500
PM_NODE_ALIGNAS struct pm_node * value
OptionalParameterNode::value.
Definition ast.h:6505
OrNode.
Definition ast.h:6520
PM_NODE_ALIGNAS struct pm_node * right
OrNode::right.
Definition ast.h:6548
pm_node_t base
The embedded base node.
Definition ast.h:6522
PM_NODE_ALIGNAS struct pm_node * left
OrNode::left.
Definition ast.h:6535
pm_location_t operator_loc
OrNode::operator_loc.
Definition ast.h:6558
ParametersNode.
Definition ast.h:6574
PM_NODE_ALIGNAS struct pm_node * block
ParametersNode::block.
Definition ast.h:6611
struct pm_node_list requireds
ParametersNode::requireds.
Definition ast.h:6581
struct pm_node_list optionals
ParametersNode::optionals.
Definition ast.h:6586
struct pm_node_list posts
ParametersNode::posts.
Definition ast.h:6596
pm_node_t base
The embedded base node.
Definition ast.h:6576
PM_NODE_ALIGNAS struct pm_node * rest
ParametersNode::rest.
Definition ast.h:6591
struct pm_node_list keywords
ParametersNode::keywords.
Definition ast.h:6601
PM_NODE_ALIGNAS struct pm_node * keyword_rest
ParametersNode::keyword_rest.
Definition ast.h:6606
ParenthesesNode.
Definition ast.h:6629
pm_location_t closing_loc
ParenthesesNode::closing_loc.
Definition ast.h:6646
pm_node_t base
The embedded base node.
Definition ast.h:6631
pm_location_t opening_loc
ParenthesesNode::opening_loc.
Definition ast.h:6641
PM_NODE_ALIGNAS struct pm_node * body
ParenthesesNode::body.
Definition ast.h:6636
PinnedExpressionNode.
Definition ast.h:6661
pm_node_t base
The embedded base node.
Definition ast.h:6663
pm_location_t rparen_loc
PinnedExpressionNode::rparen_loc.
Definition ast.h:6703
pm_location_t lparen_loc
PinnedExpressionNode::lparen_loc.
Definition ast.h:6693
PM_NODE_ALIGNAS struct pm_node * expression
PinnedExpressionNode::expression.
Definition ast.h:6673
pm_location_t operator_loc
PinnedExpressionNode::operator_loc.
Definition ast.h:6683
PinnedVariableNode.
Definition ast.h:6718
pm_node_t base
The embedded base node.
Definition ast.h:6720
PM_NODE_ALIGNAS struct pm_node * variable
PinnedVariableNode::variable.
Definition ast.h:6730
pm_location_t operator_loc
PinnedVariableNode::operator_loc.
Definition ast.h:6740
PostExecutionNode.
Definition ast.h:6755
pm_location_t closing_loc
PostExecutionNode::closing_loc.
Definition ast.h:6777
pm_node_t base
The embedded base node.
Definition ast.h:6757
pm_location_t opening_loc
PostExecutionNode::opening_loc.
Definition ast.h:6772
pm_location_t keyword_loc
PostExecutionNode::keyword_loc.
Definition ast.h:6767
PM_NODE_ALIGNAS struct pm_statements_node * statements
PostExecutionNode::statements.
Definition ast.h:6762
PreExecutionNode.
Definition ast.h:6792
pm_location_t closing_loc
PreExecutionNode::closing_loc.
Definition ast.h:6814
pm_location_t opening_loc
PreExecutionNode::opening_loc.
Definition ast.h:6809
PM_NODE_ALIGNAS struct pm_statements_node * statements
PreExecutionNode::statements.
Definition ast.h:6799
pm_node_t base
The embedded base node.
Definition ast.h:6794
pm_location_t keyword_loc
PreExecutionNode::keyword_loc.
Definition ast.h:6804
ProgramNode.
Definition ast.h:6826
pm_node_t base
The embedded base node.
Definition ast.h:6828
PM_NODE_ALIGNAS struct pm_statements_node * statements
ProgramNode::statements.
Definition ast.h:6838
pm_constant_id_list_t locals
ProgramNode::locals.
Definition ast.h:6833
RangeNode.
Definition ast.h:6859
pm_location_t operator_loc
RangeNode::operator_loc.
Definition ast.h:6895
pm_node_t base
The embedded base node.
Definition ast.h:6861
PM_NODE_ALIGNAS struct pm_node * right
RangeNode::right.
Definition ast.h:6888
PM_NODE_ALIGNAS struct pm_node * left
RangeNode::left.
Definition ast.h:6874
RationalNode.
Definition ast.h:6916
pm_node_t base
The embedded base node.
Definition ast.h:6918
pm_integer_t denominator
RationalNode::denominator.
Definition ast.h:6936
pm_integer_t numerator
RationalNode::numerator.
Definition ast.h:6927
RedoNode.
Definition ast.h:6951
pm_node_t base
The embedded base node.
Definition ast.h:6953
RegularExpressionNode.
Definition ast.h:6981
pm_location_t closing_loc
RegularExpressionNode::closing_loc.
Definition ast.h:6998
pm_node_t base
The embedded base node.
Definition ast.h:6983
pm_string_t unescaped
RegularExpressionNode::unescaped.
Definition ast.h:7003
pm_location_t opening_loc
RegularExpressionNode::opening_loc.
Definition ast.h:6988
pm_location_t content_loc
RegularExpressionNode::content_loc.
Definition ast.h:6993
RequiredKeywordParameterNode.
Definition ast.h:7022
pm_location_t name_loc
RequiredKeywordParameterNode::name_loc.
Definition ast.h:7034
pm_node_t base
The embedded base node.
Definition ast.h:7024
pm_constant_id_t name
RequiredKeywordParameterNode::name.
Definition ast.h:7029
RequiredParameterNode.
Definition ast.h:7053
pm_constant_id_t name
RequiredParameterNode::name.
Definition ast.h:7060
pm_node_t base
The embedded base node.
Definition ast.h:7055
RescueModifierNode.
Definition ast.h:7075
PM_NODE_ALIGNAS struct pm_node * expression
RescueModifierNode::expression.
Definition ast.h:7082
pm_node_t base
The embedded base node.
Definition ast.h:7077
pm_location_t keyword_loc
RescueModifierNode::keyword_loc.
Definition ast.h:7087
PM_NODE_ALIGNAS struct pm_node * rescue_expression
RescueModifierNode::rescue_expression.
Definition ast.h:7092
RescueNode.
Definition ast.h:7112
PM_NODE_ALIGNAS struct pm_statements_node * statements
RescueNode::statements.
Definition ast.h:7144
PM_NODE_ALIGNAS struct pm_rescue_node * subsequent
RescueNode::subsequent.
Definition ast.h:7149
pm_location_t keyword_loc
RescueNode::keyword_loc.
Definition ast.h:7119
PM_NODE_ALIGNAS struct pm_node * reference
RescueNode::reference.
Definition ast.h:7134
pm_location_t then_keyword_loc
RescueNode::then_keyword_loc.
Definition ast.h:7139
pm_location_t operator_loc
RescueNode::operator_loc.
Definition ast.h:7129
struct pm_node_list exceptions
RescueNode::exceptions.
Definition ast.h:7124
pm_node_t base
The embedded base node.
Definition ast.h:7114
RestParameterNode.
Definition ast.h:7168
pm_constant_id_t name
RestParameterNode::name.
Definition ast.h:7175
pm_location_t name_loc
RestParameterNode::name_loc.
Definition ast.h:7180
pm_node_t base
The embedded base node.
Definition ast.h:7170
pm_location_t operator_loc
RestParameterNode::operator_loc.
Definition ast.h:7185
RetryNode.
Definition ast.h:7200
pm_node_t base
The embedded base node.
Definition ast.h:7202
ReturnNode.
Definition ast.h:7217
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
ReturnNode::arguments.
Definition ast.h:7229
pm_location_t keyword_loc
ReturnNode::keyword_loc.
Definition ast.h:7224
pm_node_t base
The embedded base node.
Definition ast.h:7219
SelfNode.
Definition ast.h:7244
pm_node_t base
The embedded base node.
Definition ast.h:7246
ShareableConstantNode.
Definition ast.h:7267
PM_NODE_ALIGNAS struct pm_node * write
ShareableConstantNode::write.
Definition ast.h:7276
pm_node_t base
The embedded base node.
Definition ast.h:7269
SingletonClassNode.
Definition ast.h:7291
PM_NODE_ALIGNAS struct pm_node * body
SingletonClassNode::body.
Definition ast.h:7318
pm_node_t base
The embedded base node.
Definition ast.h:7293
pm_constant_id_list_t locals
SingletonClassNode::locals.
Definition ast.h:7298
pm_location_t operator_loc
SingletonClassNode::operator_loc.
Definition ast.h:7308
PM_NODE_ALIGNAS struct pm_node * expression
SingletonClassNode::expression.
Definition ast.h:7313
pm_location_t end_keyword_loc
SingletonClassNode::end_keyword_loc.
Definition ast.h:7323
pm_location_t class_keyword_loc
SingletonClassNode::class_keyword_loc.
Definition ast.h:7303
SourceEncodingNode.
Definition ast.h:7338
pm_node_t base
The embedded base node.
Definition ast.h:7340
SourceFileNode.
Definition ast.h:7361
pm_string_t filepath
SourceFileNode::filepath.
Definition ast.h:7370
pm_node_t base
The embedded base node.
Definition ast.h:7363
SourceLineNode.
Definition ast.h:7385
pm_node_t base
The embedded base node.
Definition ast.h:7387
SplatNode.
Definition ast.h:7402
pm_node_t base
The embedded base node.
Definition ast.h:7404
PM_NODE_ALIGNAS struct pm_node * expression
SplatNode::expression.
Definition ast.h:7414
pm_location_t operator_loc
SplatNode::operator_loc.
Definition ast.h:7409
StatementsNode.
Definition ast.h:7429
struct pm_node_list body
StatementsNode::body.
Definition ast.h:7436
pm_node_t base
The embedded base node.
Definition ast.h:7431
StringNode.
Definition ast.h:7463
pm_node_t base
The embedded base node.
Definition ast.h:7465
pm_string_t unescaped
StringNode::unescaped.
Definition ast.h:7485
pm_location_t content_loc
StringNode::content_loc.
Definition ast.h:7475
pm_location_t closing_loc
StringNode::closing_loc.
Definition ast.h:7480
pm_location_t opening_loc
StringNode::opening_loc.
Definition ast.h:7470
A generic string type that can have various ownership semantics.
Definition stringy.h:18
SuperNode.
Definition ast.h:7505
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
SuperNode::arguments.
Definition ast.h:7524
pm_location_t lparen_loc
SuperNode::lparen_loc.
Definition ast.h:7517
pm_node_t base
The embedded base node.
Definition ast.h:7507
pm_location_t keyword_loc
SuperNode::keyword_loc.
Definition ast.h:7512
pm_location_t rparen_loc
SuperNode::rparen_loc.
Definition ast.h:7529
PM_NODE_ALIGNAS struct pm_node * block
SuperNode::block.
Definition ast.h:7534
SymbolNode.
Definition ast.h:7557
pm_location_t opening_loc
SymbolNode::opening_loc.
Definition ast.h:7564
pm_location_t value_loc
SymbolNode::value_loc.
Definition ast.h:7569
pm_location_t closing_loc
SymbolNode::closing_loc.
Definition ast.h:7574
pm_string_t unescaped
SymbolNode::unescaped.
Definition ast.h:7579
pm_node_t base
The embedded base node.
Definition ast.h:7559
This struct represents a token in the Ruby source.
Definition ast.h:531
const uint8_t * end
A pointer to the end location of the token in the source.
Definition ast.h:539
const uint8_t * start
A pointer to the start location of the token in the source.
Definition ast.h:536
pm_token_type_t type
The type of the token.
Definition ast.h:533
TrueNode.
Definition ast.h:7594
pm_node_t base
The embedded base node.
Definition ast.h:7596
UndefNode.
Definition ast.h:7611
pm_node_t base
The embedded base node.
Definition ast.h:7613
pm_location_t keyword_loc
UndefNode::keyword_loc.
Definition ast.h:7623
struct pm_node_list names
UndefNode::names.
Definition ast.h:7618
UnlessNode.
Definition ast.h:7641
pm_location_t keyword_loc
UnlessNode::keyword_loc.
Definition ast.h:7656
pm_location_t then_keyword_loc
UnlessNode::then_keyword_loc.
Definition ast.h:7679
PM_NODE_ALIGNAS struct pm_node * predicate
UnlessNode::predicate.
Definition ast.h:7669
PM_NODE_ALIGNAS struct pm_statements_node * statements
UnlessNode::statements.
Definition ast.h:7690
pm_location_t end_keyword_loc
UnlessNode::end_keyword_loc.
Definition ast.h:7710
PM_NODE_ALIGNAS struct pm_else_node * else_clause
UnlessNode::else_clause.
Definition ast.h:7700
pm_node_t base
The embedded base node.
Definition ast.h:7643
UntilNode.
Definition ast.h:7731
pm_location_t closing_loc
UntilNode::closing_loc.
Definition ast.h:7748
pm_location_t keyword_loc
UntilNode::keyword_loc.
Definition ast.h:7738
pm_node_t base
The embedded base node.
Definition ast.h:7733
PM_NODE_ALIGNAS struct pm_statements_node * statements
UntilNode::statements.
Definition ast.h:7758
pm_location_t do_keyword_loc
UntilNode::do_keyword_loc.
Definition ast.h:7743
PM_NODE_ALIGNAS struct pm_node * predicate
UntilNode::predicate.
Definition ast.h:7753
WhenNode.
Definition ast.h:7775
pm_node_t base
The embedded base node.
Definition ast.h:7777
pm_location_t then_keyword_loc
WhenNode::then_keyword_loc.
Definition ast.h:7792
pm_location_t keyword_loc
WhenNode::keyword_loc.
Definition ast.h:7782
PM_NODE_ALIGNAS struct pm_statements_node * statements
WhenNode::statements.
Definition ast.h:7797
struct pm_node_list conditions
WhenNode::conditions.
Definition ast.h:7787
WhileNode.
Definition ast.h:7818
PM_NODE_ALIGNAS struct pm_statements_node * statements
WhileNode::statements.
Definition ast.h:7845
pm_location_t closing_loc
WhileNode::closing_loc.
Definition ast.h:7835
pm_location_t keyword_loc
WhileNode::keyword_loc.
Definition ast.h:7825
pm_node_t base
The embedded base node.
Definition ast.h:7820
pm_location_t do_keyword_loc
WhileNode::do_keyword_loc.
Definition ast.h:7830
PM_NODE_ALIGNAS struct pm_node * predicate
WhileNode::predicate.
Definition ast.h:7840
XStringNode.
Definition ast.h:7864
pm_location_t closing_loc
XStringNode::closing_loc.
Definition ast.h:7881
pm_location_t opening_loc
XStringNode::opening_loc.
Definition ast.h:7871
pm_location_t content_loc
XStringNode::content_loc.
Definition ast.h:7876
pm_string_t unescaped
XStringNode::unescaped.
Definition ast.h:7886
pm_node_t base
The embedded base node.
Definition ast.h:7866
YieldNode.
Definition ast.h:7901
pm_location_t keyword_loc
YieldNode::keyword_loc.
Definition ast.h:7908
pm_location_t lparen_loc
YieldNode::lparen_loc.
Definition ast.h:7913
pm_node_t base
The embedded base node.
Definition ast.h:7903
pm_location_t rparen_loc
YieldNode::rparen_loc.
Definition ast.h:7923
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
YieldNode::arguments.
Definition ast.h:7918