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
30#ifdef __cplusplus
31extern "C" {
32#endif
33
37typedef enum pm_token_type {
40
43
46
49
52
55
58
61
64
67
70
73
76
79
82
85
88
91
94
97
100
103
106
109
112
115
118
121
124
127
130
133
136
139
142
145
148
151
154
157
160
163
166
169
172
175
178
181
184
187
190
193
196
199
202
205
208
211
214
217
220
223
226
229
232
235
238
241
244
247
250
253
256
259
262
265
268
271
274
277
280
283
286
289
292
295
298
301
304
307
310
313
316
319
322
325
328
331
334
337
340
343
346
349
352
355
358
361
364
367
370
373
376
379
382
385
388
391
394
397
400
403
406
409
412
415
418
421
424
427
430
433
436
439
442
445
448
451
454
457
460
463
466
469
472
475
478
481
484
487
490
493
496
499
502
505
508
511
514
517
520
523
526
529
532
535
538
541
544
547
551
556typedef struct {
559
561 const uint8_t *start;
562
564 const uint8_t *end;
565} pm_token_t;
566
574PRISM_EXPORTED_FUNCTION const char * pm_token_type(pm_token_type_t token_type);
575
584typedef struct {
586 uint32_t start;
587
589 uint32_t length;
591
592struct pm_node;
593
597typedef struct pm_node_list {
603 uint32_t size;
604
606 struct pm_node **nodes;
608
615
618
621
624
627
630
633
636
639
642
645
648
651
654
657
660
663
666
669
672
675
678
681
684
687
690
693
696
699
702
705
708
711
714
717
720
723
726
729
732
735
738
741
744
747
750
753
756
759
762
765
768
771
774
777
780
783
786
789
792
795
798
801
804
807
810
813
816
819
822
825
828
831
834
837
840
843
846
849
852
855
858
861
864
867
870
873
876
879
882
885
888
891
894
897
900
903
906
909
912
915
918
921
924
927
930
933
936
939
942
945
948
951
954
957
960
963
966
969
972
975
978
981
984
987
990
993
996
999
1002
1005
1008
1011
1014
1017
1020
1023
1026
1029
1032
1035
1038
1041
1044
1047
1050
1053
1056
1059
1062
1065
1068
1071};
1072
1077typedef uint16_t pm_node_type_t;
1078
1083typedef uint16_t pm_node_flags_t;
1084
1089static const pm_node_flags_t PM_NODE_FLAG_NEWLINE = 0x1;
1090static const pm_node_flags_t PM_NODE_FLAG_STATIC_LITERAL = 0x2;
1091
1123
1127#define PM_NODE_UPCAST(node_) ((pm_node_t *) (node_))
1128
1133#define PM_NODE_TYPE(node_) ((enum pm_node_type) (node_)->type)
1134
1138#define PM_NODE_TYPE_P(node_, type_) (PM_NODE_TYPE(node_) == (type_))
1139
1143#define PM_NODE_FLAGS(node_) (PM_NODE_UPCAST(node_)->flags)
1144
1148#define PM_NODE_FLAG_P(node_, flag_) ((PM_NODE_FLAGS(node_) & (flag_)) != 0)
1149
1153#ifdef _MSC_VER
1154#define PM_NODE_ALIGNAS __declspec(align(8))
1155#else
1156#define PM_NODE_ALIGNAS PRISM_ALIGNAS(PRISM_ALIGNOF(void *))
1157#endif
1158
1205
1264
1311
1364
1398
1449
1544
1600
1637
1665
1744
1781
1811
1882
1935
2012
2049
2142
2282
2385
2478
2549
2596
2665
2734
2820
2877
2919
2956
2984
3006
3067
3104
3146
3183
3215
3281
3318
3350
3387
3443
3471
3493
3554
3632
3669
3701
3733
3760
3796
3817
3834
3935
3970
3994
4083
4102
4120
4160
4197
4239
4276
4304
4326
4387
4437
4528
4639
4661
4689
4715
4752
4815
4883
4946
5002
5039
5081
5118
5146
5168
5229
5259
5304
5349
5385
5417
5449
5466
5483
5508
5544
5591
5633
5680
5722
5767
5797
5875
5925
5957
6043
6070
6117
6204
6306
6333
6350
6378
6406
6428
6458
6494
6535
6588
6641
6676
6733
6770
6807
6844
6868
6925
6966
6983
7033
7064
7090
7122
7179
7215
7232
7259
7276
7306
7353
7370
7400
7417
7444
7469
7518
7567
7612
7629
7656
7743
7791
7830
7878
7919
7956
7978
7985
7986 PM_ARRAY_NODE_FLAGS_LAST,
7988
8007
8020
8039
8052
8062
8066typedef enum pm_loop_flags {
8069
8070 PM_LOOP_FLAGS_LAST,
8072
8079
8080 PM_PARAMETER_FLAGS_LAST,
8082
8092
8096typedef enum pm_range_flags {
8099
8100 PM_RANGE_FLAGS_LAST,
8102
8142
8158
8168
8187
8203
8216PRISM_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);
8217
8230PRISM_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);
8231
8244PRISM_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);
8245
8258PRISM_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);
8259
8271
8284PRISM_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);
8285
8301PRISM_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);
8302
8315PRISM_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);
8316
8328PRISM_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);
8329
8341
8357PRISM_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);
8358
8370PRISM_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);
8371
8383
8398PRISM_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);
8399
8413
8428
8441
8458PRISM_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);
8459
8478PRISM_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);
8479
8497PRISM_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);
8498
8515PRISM_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);
8516
8530PRISM_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);
8531
8545
8560PRISM_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);
8561
8576PRISM_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);
8577
8595PRISM_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);
8596
8611
8627
8642
8654
8666
8681
8696
8712
8727
8741
8756
8771
8785
8800
8814
8826
8838
8853
8875PRISM_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);
8876
8890PRISM_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);
8891
8904PRISM_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);
8905
8919
8932
8945PRISM_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);
8946
8958
8969
8985PRISM_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);
8986
8999PRISM_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);
9000
9011PRISM_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);
9012
9029PRISM_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);
9030
9041
9052
9065
9080
9096
9111
9123
9135
9150
9163PRISM_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);
9164
9179PRISM_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);
9180
9196PRISM_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);
9197
9209
9221
9232
9246PRISM_EXPORTED_FUNCTION pm_in_node_t * pm_in_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *pattern, struct pm_statements_node *statements, pm_location_t in_keyword_loc, pm_location_t then_keyword_loc);
9247
9265PRISM_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);
9266
9285PRISM_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);
9286
9304PRISM_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);
9305
9320PRISM_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);
9321
9336
9352
9367
9379
9391
9406
9418
9432
9446
9460
9474
9488
9499
9510
9522
9536
9552PRISM_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);
9553
9569
9585PRISM_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);
9586
9602
9615
9628
9643PRISM_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);
9644
9659
9672PRISM_EXPORTED_FUNCTION pm_match_predicate_node_t * pm_match_predicate_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, struct pm_node *value, struct pm_node *pattern, pm_location_t keyword_loc);
9673
9686PRISM_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);
9687
9700
9716PRISM_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);
9717
9733
9750PRISM_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);
9751
9764
9775
9788
9801
9813
9825
9839
9854
9867PRISM_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);
9868
9885PRISM_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);
9886
9899PRISM_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);
9900
9914PRISM_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);
9915
9928
9942PRISM_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);
9943
9957PRISM_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);
9958
9971
9984PRISM_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);
9985
9998
10009
10024
10037
10049
10062PRISM_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);
10063
10080PRISM_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);
10081
10095
10106
10119
10130
10142
10158PRISM_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);
10159
10170
10182
10193
10205PRISM_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);
10206
10218
10232PRISM_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);
10233
10248PRISM_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);
10249
10263PRISM_EXPORTED_FUNCTION pm_symbol_node_t * pm_symbol_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t opening_loc, pm_location_t content_loc, pm_location_t closing_loc, pm_string_t unescaped);
10264
10275
10288
10304PRISM_EXPORTED_FUNCTION pm_unless_node_t * pm_unless_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t unless_keyword_loc, struct pm_node *predicate, pm_location_t then_keyword_loc, struct pm_statements_node *statements, struct pm_else_node *else_clause, pm_location_t end_keyword_loc);
10305
10320PRISM_EXPORTED_FUNCTION pm_until_node_t * pm_until_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t until_keyword_loc, pm_location_t do_keyword_loc, pm_location_t end_keyword_loc, struct pm_node *predicate, struct pm_statements_node *statements);
10321
10335PRISM_EXPORTED_FUNCTION pm_when_node_t * pm_when_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t when_keyword_loc, pm_node_list_t conditions, pm_location_t then_keyword_loc, struct pm_statements_node *statements);
10336
10351PRISM_EXPORTED_FUNCTION pm_while_node_t * pm_while_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t while_keyword_loc, pm_location_t do_keyword_loc, pm_location_t end_keyword_loc, struct pm_node *predicate, struct pm_statements_node *statements);
10352
10366PRISM_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);
10367
10382
10389#define PRISM_SERIALIZE_ONLY_SEMANTICS_FIELDS 0
10390
10391#ifdef __cplusplus
10392}
10393#endif
10394
10395#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:22
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.
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.
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 keyword_loc)
Allocate and initialize a new MatchPredicateNode node.
#define PM_NODE_ALIGNAS
The alignment required for a child node within a parent node.
Definition ast.h:1156
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:8043
@ 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:8048
@ 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:8045
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 unless_keyword_loc, struct pm_node *predicate, pm_location_t then_keyword_loc, struct pm_statements_node *statements, struct pm_else_node *else_clause, pm_location_t end_keyword_loc)
Allocate and initialize a new UnlessNode node.
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:8096
@ PM_RANGE_FLAGS_EXCLUDE_END
... operator
Definition ast.h:8098
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:612
@ PM_DEFINED_NODE
DefinedNode.
Definition ast.h:749
@ PM_PRE_EXECUTION_NODE
PreExecutionNode.
Definition ast.h:974
@ PM_RETRY_NODE
RetryNode.
Definition ast.h:1007
@ PM_REDO_NODE
RedoNode.
Definition ast.h:986
@ PM_CONSTANT_PATH_WRITE_NODE
ConstantPathWriteNode.
Definition ast.h:734
@ PM_INDEX_AND_WRITE_NODE
IndexAndWriteNode.
Definition ast.h:830
@ PM_SOURCE_LINE_NODE
SourceLineNode.
Definition ast.h:1028
@ PM_UNLESS_NODE
UnlessNode.
Definition ast.h:1052
@ PM_EMBEDDED_VARIABLE_NODE
EmbeddedVariableNode.
Definition ast.h:758
@ PM_GLOBAL_VARIABLE_OPERATOR_WRITE_NODE
GlobalVariableOperatorWriteNode.
Definition ast.h:794
@ PM_CALL_NODE
CallNode.
Definition ast.h:668
@ PM_NIL_NODE
NilNode.
Definition ast.h:935
@ PM_GLOBAL_VARIABLE_READ_NODE
GlobalVariableReadNode.
Definition ast.h:800
@ PM_RATIONAL_NODE
RationalNode.
Definition ast.h:983
@ PM_YIELD_NODE
YieldNode.
Definition ast.h:1067
@ PM_LOCAL_VARIABLE_AND_WRITE_NODE
LocalVariableAndWriteNode.
Definition ast.h:893
@ PM_CONSTANT_AND_WRITE_NODE
ConstantAndWriteNode.
Definition ast.h:710
@ PM_CLASS_NODE
ClassNode.
Definition ast.h:689
@ PM_FIND_PATTERN_NODE
FindPatternNode.
Definition ast.h:770
@ PM_CALL_OPERATOR_WRITE_NODE
CallOperatorWriteNode.
Definition ast.h:671
@ PM_MATCH_WRITE_NODE
MatchWriteNode.
Definition ast.h:920
@ PM_ARRAY_NODE
ArrayNode.
Definition ast.h:629
@ PM_CONSTANT_PATH_TARGET_NODE
ConstantPathTargetNode.
Definition ast.h:731
@ PM_PROGRAM_NODE
ProgramNode.
Definition ast.h:977
@ PM_OR_NODE
OrNode.
Definition ast.h:956
@ PM_MULTI_WRITE_NODE
MultiWriteNode.
Definition ast.h:929
@ PM_IF_NODE
IfNode.
Definition ast.h:815
@ PM_IMPLICIT_NODE
ImplicitNode.
Definition ast.h:821
@ PM_ARGUMENTS_NODE
ArgumentsNode.
Definition ast.h:626
@ PM_FORWARDING_SUPER_NODE
ForwardingSuperNode.
Definition ast.h:788
@ PM_WHILE_NODE
WhileNode.
Definition ast.h:1061
@ PM_INTERPOLATED_STRING_NODE
InterpolatedStringNode.
Definition ast.h:869
@ PM_FALSE_NODE
FalseNode.
Definition ast.h:767
@ PM_FORWARDING_PARAMETER_NODE
ForwardingParameterNode.
Definition ast.h:785
@ PM_BLOCK_LOCAL_VARIABLE_NODE
BlockLocalVariableNode.
Definition ast.h:650
@ PM_HASH_NODE
HashNode.
Definition ast.h:809
@ PM_UNTIL_NODE
UntilNode.
Definition ast.h:1055
@ PM_MATCH_PREDICATE_NODE
MatchPredicateNode.
Definition ast.h:914
@ PM_X_STRING_NODE
XStringNode.
Definition ast.h:1064
@ PM_LOCAL_VARIABLE_OPERATOR_WRITE_NODE
LocalVariableOperatorWriteNode.
Definition ast.h:896
@ PM_LOCAL_VARIABLE_OR_WRITE_NODE
LocalVariableOrWriteNode.
Definition ast.h:899
@ PM_INSTANCE_VARIABLE_AND_WRITE_NODE
InstanceVariableAndWriteNode.
Definition ast.h:842
@ PM_GLOBAL_VARIABLE_TARGET_NODE
GlobalVariableTargetNode.
Definition ast.h:803
@ PM_AND_NODE
AndNode.
Definition ast.h:623
@ PM_CONSTANT_TARGET_NODE
ConstantTargetNode.
Definition ast.h:740
@ PM_IT_LOCAL_VARIABLE_READ_NODE
ItLocalVariableReadNode.
Definition ast.h:878
@ PM_CONSTANT_PATH_AND_WRITE_NODE
ConstantPathAndWriteNode.
Definition ast.h:719
@ PM_IN_NODE
InNode.
Definition ast.h:827
@ PM_BLOCK_PARAMETER_NODE
BlockParameterNode.
Definition ast.h:656
@ PM_CAPTURE_PATTERN_NODE
CapturePatternNode.
Definition ast.h:680
@ PM_SOURCE_FILE_NODE
SourceFileNode.
Definition ast.h:1025
@ PM_NO_KEYWORDS_PARAMETER_NODE
NoKeywordsParameterNode.
Definition ast.h:941
@ PM_CONSTANT_PATH_OPERATOR_WRITE_NODE
ConstantPathOperatorWriteNode.
Definition ast.h:725
@ PM_MULTI_TARGET_NODE
MultiTargetNode.
Definition ast.h:926
@ PM_SPLAT_NODE
SplatNode.
Definition ast.h:1031
@ PM_LAMBDA_NODE
LambdaNode.
Definition ast.h:890
@ PM_CLASS_VARIABLE_READ_NODE
ClassVariableReadNode.
Definition ast.h:701
@ PM_REQUIRED_KEYWORD_PARAMETER_NODE
RequiredKeywordParameterNode.
Definition ast.h:992
@ PM_CALL_TARGET_NODE
CallTargetNode.
Definition ast.h:677
@ PM_ELSE_NODE
ElseNode.
Definition ast.h:752
@ PM_INTERPOLATED_MATCH_LAST_LINE_NODE
InterpolatedMatchLastLineNode.
Definition ast.h:863
@ PM_WHEN_NODE
WhenNode.
Definition ast.h:1058
@ PM_NUMBERED_PARAMETERS_NODE
NumberedParametersNode.
Definition ast.h:944
@ PM_SYMBOL_NODE
SymbolNode.
Definition ast.h:1043
@ PM_RESCUE_MODIFIER_NODE
RescueModifierNode.
Definition ast.h:998
@ PM_ALIAS_METHOD_NODE
AliasMethodNode.
Definition ast.h:617
@ PM_MATCH_REQUIRED_NODE
MatchRequiredNode.
Definition ast.h:917
@ PM_FORWARDING_ARGUMENTS_NODE
ForwardingArgumentsNode.
Definition ast.h:782
@ PM_BACK_REFERENCE_READ_NODE
BackReferenceReadNode.
Definition ast.h:641
@ PM_SCOPE_NODE
A special kind of node used for compilation.
Definition ast.h:1070
@ PM_BLOCK_ARGUMENT_NODE
BlockArgumentNode.
Definition ast.h:647
@ PM_SELF_NODE
SelfNode.
Definition ast.h:1013
@ PM_IMPLICIT_REST_NODE
ImplicitRestNode.
Definition ast.h:824
@ PM_TRUE_NODE
TrueNode.
Definition ast.h:1046
@ PM_ASSOC_SPLAT_NODE
AssocSplatNode.
Definition ast.h:638
@ PM_CLASS_VARIABLE_AND_WRITE_NODE
ClassVariableAndWriteNode.
Definition ast.h:692
@ PM_RANGE_NODE
RangeNode.
Definition ast.h:980
@ PM_INSTANCE_VARIABLE_OPERATOR_WRITE_NODE
InstanceVariableOperatorWriteNode.
Definition ast.h:845
@ PM_LOCAL_VARIABLE_READ_NODE
LocalVariableReadNode.
Definition ast.h:902
@ PM_SHAREABLE_CONSTANT_NODE
ShareableConstantNode.
Definition ast.h:1016
@ PM_NEXT_NODE
NextNode.
Definition ast.h:932
@ PM_INSTANCE_VARIABLE_OR_WRITE_NODE
InstanceVariableOrWriteNode.
Definition ast.h:848
@ PM_REGULAR_EXPRESSION_NODE
RegularExpressionNode.
Definition ast.h:989
@ PM_CLASS_VARIABLE_OR_WRITE_NODE
ClassVariableOrWriteNode.
Definition ast.h:698
@ PM_BLOCK_PARAMETERS_NODE
BlockParametersNode.
Definition ast.h:659
@ PM_CONSTANT_WRITE_NODE
ConstantWriteNode.
Definition ast.h:743
@ PM_HASH_PATTERN_NODE
HashPatternNode.
Definition ast.h:812
@ PM_INDEX_OPERATOR_WRITE_NODE
IndexOperatorWriteNode.
Definition ast.h:833
@ PM_UNDEF_NODE
UndefNode.
Definition ast.h:1049
@ PM_ALTERNATION_PATTERN_NODE
AlternationPatternNode.
Definition ast.h:620
@ PM_ENSURE_NODE
EnsureNode.
Definition ast.h:761
@ PM_LOCAL_VARIABLE_WRITE_NODE
LocalVariableWriteNode.
Definition ast.h:908
@ PM_SINGLETON_CLASS_NODE
SingletonClassNode.
Definition ast.h:1019
@ PM_KEYWORD_HASH_NODE
KeywordHashNode.
Definition ast.h:884
@ PM_PARENTHESES_NODE
ParenthesesNode.
Definition ast.h:962
@ PM_FOR_NODE
ForNode.
Definition ast.h:779
@ PM_CLASS_VARIABLE_WRITE_NODE
ClassVariableWriteNode.
Definition ast.h:707
@ PM_POST_EXECUTION_NODE
PostExecutionNode.
Definition ast.h:971
@ PM_CONSTANT_OPERATOR_WRITE_NODE
ConstantOperatorWriteNode.
Definition ast.h:713
@ PM_RETURN_NODE
ReturnNode.
Definition ast.h:1010
@ PM_MODULE_NODE
ModuleNode.
Definition ast.h:923
@ PM_ARRAY_PATTERN_NODE
ArrayPatternNode.
Definition ast.h:632
@ PM_SUPER_NODE
SuperNode.
Definition ast.h:1040
@ PM_MATCH_LAST_LINE_NODE
MatchLastLineNode.
Definition ast.h:911
@ PM_CONSTANT_PATH_NODE
ConstantPathNode.
Definition ast.h:722
@ PM_INTERPOLATED_SYMBOL_NODE
InterpolatedSymbolNode.
Definition ast.h:872
@ PM_CALL_AND_WRITE_NODE
CallAndWriteNode.
Definition ast.h:665
@ PM_OPTIONAL_KEYWORD_PARAMETER_NODE
OptionalKeywordParameterNode.
Definition ast.h:950
@ PM_CLASS_VARIABLE_TARGET_NODE
ClassVariableTargetNode.
Definition ast.h:704
@ PM_CASE_MATCH_NODE
CaseMatchNode.
Definition ast.h:683
@ PM_BREAK_NODE
BreakNode.
Definition ast.h:662
@ PM_CALL_OR_WRITE_NODE
CallOrWriteNode.
Definition ast.h:674
@ PM_IMAGINARY_NODE
ImaginaryNode.
Definition ast.h:818
@ PM_DEF_NODE
DefNode.
Definition ast.h:746
@ PM_CONSTANT_READ_NODE
ConstantReadNode.
Definition ast.h:737
@ PM_GLOBAL_VARIABLE_WRITE_NODE
GlobalVariableWriteNode.
Definition ast.h:806
@ PM_SOURCE_ENCODING_NODE
SourceEncodingNode.
Definition ast.h:1022
@ PM_BEGIN_NODE
BeginNode.
Definition ast.h:644
@ PM_INTERPOLATED_X_STRING_NODE
InterpolatedXStringNode.
Definition ast.h:875
@ PM_INSTANCE_VARIABLE_READ_NODE
InstanceVariableReadNode.
Definition ast.h:851
@ PM_FLIP_FLOP_NODE
FlipFlopNode.
Definition ast.h:773
@ PM_PINNED_VARIABLE_NODE
PinnedVariableNode.
Definition ast.h:968
@ PM_REQUIRED_PARAMETER_NODE
RequiredParameterNode.
Definition ast.h:995
@ PM_INSTANCE_VARIABLE_WRITE_NODE
InstanceVariableWriteNode.
Definition ast.h:857
@ PM_INSTANCE_VARIABLE_TARGET_NODE
InstanceVariableTargetNode.
Definition ast.h:854
@ PM_GLOBAL_VARIABLE_AND_WRITE_NODE
GlobalVariableAndWriteNode.
Definition ast.h:791
@ PM_CASE_NODE
CaseNode.
Definition ast.h:686
@ PM_RESCUE_NODE
RescueNode.
Definition ast.h:1001
@ PM_FLOAT_NODE
FloatNode.
Definition ast.h:776
@ PM_ASSOC_NODE
AssocNode.
Definition ast.h:635
@ PM_IT_PARAMETERS_NODE
ItParametersNode.
Definition ast.h:881
@ PM_INTEGER_NODE
IntegerNode.
Definition ast.h:860
@ PM_LOCAL_VARIABLE_TARGET_NODE
LocalVariableTargetNode.
Definition ast.h:905
@ PM_STRING_NODE
StringNode.
Definition ast.h:1037
@ PM_INDEX_OR_WRITE_NODE
IndexOrWriteNode.
Definition ast.h:836
@ PM_ALIAS_GLOBAL_VARIABLE_NODE
AliasGlobalVariableNode.
Definition ast.h:614
@ PM_PARAMETERS_NODE
ParametersNode.
Definition ast.h:959
@ PM_NUMBERED_REFERENCE_READ_NODE
NumberedReferenceReadNode.
Definition ast.h:947
@ PM_CONSTANT_PATH_OR_WRITE_NODE
ConstantPathOrWriteNode.
Definition ast.h:728
@ PM_GLOBAL_VARIABLE_OR_WRITE_NODE
GlobalVariableOrWriteNode.
Definition ast.h:797
@ PM_CONSTANT_OR_WRITE_NODE
ConstantOrWriteNode.
Definition ast.h:716
@ PM_STATEMENTS_NODE
StatementsNode.
Definition ast.h:1034
@ PM_ERROR_RECOVERY_NODE
ErrorRecoveryNode.
Definition ast.h:764
@ PM_OPTIONAL_PARAMETER_NODE
OptionalParameterNode.
Definition ast.h:953
@ PM_PINNED_EXPRESSION_NODE
PinnedExpressionNode.
Definition ast.h:965
@ PM_BLOCK_NODE
BlockNode.
Definition ast.h:653
@ PM_CLASS_VARIABLE_OPERATOR_WRITE_NODE
ClassVariableOperatorWriteNode.
Definition ast.h:695
@ PM_REST_PARAMETER_NODE
RestParameterNode.
Definition ast.h:1004
@ PM_EMBEDDED_STATEMENTS_NODE
EmbeddedStatementsNode.
Definition ast.h:755
@ PM_INTERPOLATED_REGULAR_EXPRESSION_NODE
InterpolatedRegularExpressionNode.
Definition ast.h:866
@ PM_INDEX_TARGET_NODE
IndexTargetNode.
Definition ast.h:839
@ PM_KEYWORD_REST_PARAMETER_NODE
KeywordRestParameterNode.
Definition ast.h:887
@ PM_NO_BLOCK_PARAMETER_NODE
NoBlockParameterNode.
Definition ast.h:938
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:8191
@ PM_SYMBOL_FLAGS_FORCED_UTF8_ENCODING
internal bytes forced the encoding to UTF-8
Definition ast.h:8193
@ PM_SYMBOL_FLAGS_FORCED_US_ASCII_ENCODING
internal bytes forced the encoding to US-ASCII
Definition ast.h:8199
@ PM_SYMBOL_FLAGS_FORCED_BINARY_ENCODING
internal bytes forced the encoding to binary
Definition ast.h:8196
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:8172
@ PM_STRING_FLAGS_FROZEN
frozen by virtue of a frozen_string_literal: true comment or --enable-frozen-string-literal
Definition ast.h:8180
@ PM_STRING_FLAGS_FORCED_BINARY_ENCODING
internal bytes forced the encoding to binary
Definition ast.h:8177
@ PM_STRING_FLAGS_MUTABLE
mutable by virtue of a frozen_string_literal: false comment or --disable-frozen-string-literal
Definition ast.h:8183
@ PM_STRING_FLAGS_FORCED_UTF8_ENCODING
internal bytes forced the encoding to UTF-8
Definition ast.h:8174
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:7960
@ PM_ARGUMENTS_NODE_FLAGS_CONTAINS_SPLAT
if the arguments contain a splat
Definition ast.h:7971
@ PM_ARGUMENTS_NODE_FLAGS_CONTAINS_FORWARDING
if the arguments contain forwarding
Definition ast.h:7962
@ PM_ARGUMENTS_NODE_FLAGS_CONTAINS_KEYWORDS
if the arguments contain keywords
Definition ast.h:7965
@ PM_ARGUMENTS_NODE_FLAGS_CONTAINS_KEYWORD_SPLAT
if the arguments contain a keyword splat
Definition ast.h:7968
@ PM_ARGUMENTS_NODE_FLAGS_CONTAINS_MULTIPLE_SPLATS
if the arguments contain multiple splats
Definition ast.h:7974
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.
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 when_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_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.
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.
pm_statements_flags
Flags for statement lists.
Definition ast.h:8162
@ PM_STATEMENTS_FLAGS_CONTAINS_PRE_EXECUTION
the statement list directly contains a BEGIN block
Definition ast.h:8164
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_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:7982
@ PM_ARRAY_NODE_FLAGS_CONTAINS_SPLAT
if array contains splat nodes
Definition ast.h:7984
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_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:8024
@ PM_INTEGER_BASE_FLAGS_HEXADECIMAL
0x prefix
Definition ast.h:8035
@ PM_INTEGER_BASE_FLAGS_OCTAL
0o or 0 prefix
Definition ast.h:8032
@ PM_INTEGER_BASE_FLAGS_DECIMAL
0d or no prefix
Definition ast.h:8029
@ PM_INTEGER_BASE_FLAGS_BINARY
0b prefix
Definition ast.h:8026
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.
enum pm_statements_flags pm_statements_flags_t
Flags for statement lists.
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_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.
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 content_loc, pm_location_t closing_loc, pm_string_t unescaped)
Allocate and initialize a new SymbolNode node.
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:8086
@ PM_PARENTHESES_NODE_FLAGS_MULTIPLE_STATEMENTS
parentheses that contain multiple potentially void statements
Definition ast.h:8088
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:7992
@ PM_CALL_NODE_FLAGS_IGNORE_VISIBILITY
a call that ignores method visibility
Definition ast.h:8003
@ PM_CALL_NODE_FLAGS_SAFE_NAVIGATION
&.
Definition ast.h:7994
@ PM_CALL_NODE_FLAGS_ATTRIBUTE_WRITE
a call that is an attribute write, so the value being written should be returned
Definition ast.h:8000
@ PM_CALL_NODE_FLAGS_VARIABLE_CALL
a call that could have been a local variable
Definition ast.h:7997
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:8146
@ PM_SHAREABLE_CONSTANT_NODE_FLAGS_EXPERIMENTAL_EVERYTHING
constant writes that should be modified with shareable constant value experimental everything
Definition ast.h:8151
@ PM_SHAREABLE_CONSTANT_NODE_FLAGS_LITERAL
constant writes that should be modified with shareable constant value literal
Definition ast.h:8148
@ PM_SHAREABLE_CONSTANT_NODE_FLAGS_EXPERIMENTAL_COPY
constant writes that should be modified with shareable constant value experimental copy
Definition ast.h:8154
struct pm_until_node pm_until_node_t
UntilNode.
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_keyword_loc, pm_location_t then_keyword_loc)
Allocate and initialize a new InNode node.
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:1077
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:8056
@ 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:8058
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:8106
@ PM_REGULAR_EXPRESSION_FLAGS_FORCED_BINARY_ENCODING
internal bytes forced the encoding to binary
Definition ast.h:8135
@ PM_REGULAR_EXPRESSION_FLAGS_FORCED_US_ASCII_ENCODING
internal bytes forced the encoding to US-ASCII
Definition ast.h:8138
@ PM_REGULAR_EXPRESSION_FLAGS_EUC_JP
e - forces the EUC-JP encoding
Definition ast.h:8120
@ PM_REGULAR_EXPRESSION_FLAGS_IGNORE_CASE
i - ignores the case of characters when matching
Definition ast.h:8108
@ PM_REGULAR_EXPRESSION_FLAGS_FORCED_UTF8_ENCODING
internal bytes forced the encoding to UTF-8
Definition ast.h:8132
@ PM_REGULAR_EXPRESSION_FLAGS_ASCII_8BIT
n - forces the ASCII-8BIT encoding
Definition ast.h:8123
@ PM_REGULAR_EXPRESSION_FLAGS_MULTI_LINE
m - allows $ to match the end of lines within strings
Definition ast.h:8114
@ PM_REGULAR_EXPRESSION_FLAGS_EXTENDED
x - ignores whitespace and allows comments in regular expressions
Definition ast.h:8111
@ PM_REGULAR_EXPRESSION_FLAGS_ONCE
o - only interpolates values into the regular expression once
Definition ast.h:8117
@ PM_REGULAR_EXPRESSION_FLAGS_WINDOWS_31J
s - forces the Windows-31J encoding
Definition ast.h:8126
@ PM_REGULAR_EXPRESSION_FLAGS_UTF_8
u - forces the UTF-8 encoding
Definition ast.h:8129
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.
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 while_keyword_loc, pm_location_t do_keyword_loc, pm_location_t end_keyword_loc, struct pm_node *predicate, struct pm_statements_node *statements)
Allocate and initialize a new WhileNode 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:1083
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_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_until_node_t * pm_until_node_new(pm_arena_t *arena, uint32_t node_id, pm_node_flags_t flags, pm_location_t location, pm_location_t until_keyword_loc, pm_location_t do_keyword_loc, pm_location_t end_keyword_loc, struct pm_node *predicate, struct pm_statements_node *statements)
Allocate and initialize a new UntilNode 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:37
@ PM_TOKEN_STAR_STAR
**
Definition ast.h:489
@ PM_TOKEN_DOT_DOT_DOT
the ... range operator or forwarding parameter
Definition ast.h:180
@ PM_TOKEN_MINUS_EQUAL
-=
Definition ast.h:414
@ PM_TOKEN_IGNORED_NEWLINE
an ignored newline
Definition ast.h:246
@ PM_TOKEN_BANG_EQUAL
!=
Definition ast.h:120
@ PM_TOKEN_KEYWORD___FILE__
__FILE__
Definition ast.h:378
@ PM_TOKEN_KEYWORD_WHEN
when
Definition ast.h:78
@ PM_TOKEN_FLOAT
a floating point number
Definition ast.h:213
@ PM_TOKEN_PLUS_EQUAL
+=
Definition ast.h:465
@ PM_TOKEN_DOT_DOT
the .
Definition ast.h:177
@ PM_TOKEN_UDOT_DOT
unary .
Definition ast.h:516
@ PM_TOKEN_AMPERSAND_DOT
&.
Definition ast.h:105
@ PM_TOKEN_NEWLINE
a newline character outside of other tokens
Definition ast.h:81
@ PM_TOKEN_NUMBERED_REFERENCE
a numbered reference to a capture group in the previous regular expression match
Definition ast.h:420
@ PM_TOKEN_KEYWORD_DO_BLOCK
do keyword for a block attached to a command
Definition ast.h:291
@ PM_TOKEN_AMPERSAND
&
Definition ast.h:96
@ PM_TOKEN_KEYWORD_YIELD
yield
Definition ast.h:372
@ PM_TOKEN_KEYWORD_END
end
Definition ast.h:63
@ PM_TOKEN_LAMBDA_BEGIN
{
Definition ast.h:390
@ PM_TOKEN_KEYWORD_UNTIL_MODIFIER
until in the modifier form
Definition ast.h:363
@ PM_TOKEN_BRACE_LEFT_ARGUMENT
{ for a block following a parenthesized argument
Definition ast.h:129
@ PM_TOKEN_EQUAL_EQUAL_EQUAL
===
Definition ast.h:204
@ PM_TOKEN_INTEGER_RATIONAL
an integer with a rational suffix
Definition ast.h:258
@ PM_TOKEN_USTAR
unary *
Definition ast.h:531
@ PM_TOKEN_TILDE
~ or ~@
Definition ast.h:507
@ PM_TOKEN_KEYWORD___ENCODING__
__ENCODING__
Definition ast.h:375
@ PM_TOKEN_REGEXP_END
the end of a regular expression
Definition ast.h:474
@ PM_TOKEN_KEYWORD_UNTIL
until
Definition ast.h:360
@ PM_TOKEN_COMMA
,
Definition ast.h:45
@ PM_TOKEN_MAXIMUM
The maximum token value.
Definition ast.h:549
@ PM_TOKEN_GREATER
>
Definition ast.h:228
@ PM_TOKEN_INTEGER
an integer (any base)
Definition ast.h:252
@ PM_TOKEN_SLASH_EQUAL
/=
Definition ast.h:480
@ PM_TOKEN_UMINUS_NUM
-@ for a number
Definition ast.h:525
@ PM_TOKEN_EMBVAR
#
Definition ast.h:195
@ PM_TOKEN_KEYWORD_UNLESS_MODIFIER
unless in the modifier form
Definition ast.h:357
@ PM_TOKEN_INTEGER_RATIONAL_IMAGINARY
an integer with a rational and imaginary suffix
Definition ast.h:261
@ PM_TOKEN_FLOAT_RATIONAL_IMAGINARY
a floating pointer number with a rational and imaginary suffix
Definition ast.h:222
@ PM_TOKEN_BRACKET_LEFT_RIGHT
[]
Definition ast.h:141
@ PM_TOKEN_AMPERSAND_AMPERSAND_EQUAL
&&=
Definition ast.h:102
@ PM_TOKEN_KEYWORD_CLASS
class
Definition ast.h:282
@ PM_TOKEN_KEYWORD_BEGIN
begin
Definition ast.h:270
@ PM_TOKEN_KEYWORD_DO_LAMBDA
do keyword that opens the body of a lambda literal
Definition ast.h:294
@ PM_TOKEN_USTAR_STAR
unary **
Definition ast.h:534
@ PM_TOKEN_GREATER_GREATER_EQUAL
>>=
Definition ast.h:237
@ PM_TOKEN_PERCENT_EQUAL
%=
Definition ast.h:435
@ PM_TOKEN_PERCENT
%
Definition ast.h:432
@ PM_TOKEN_KEYWORD_IN
in
Definition ast.h:69
@ PM_TOKEN_BANG
! or !@
Definition ast.h:117
@ PM_TOKEN_KEYWORD_NOT
not
Definition ast.h:324
@ PM_TOKEN_BRACKET_LEFT_ARRAY
[ for the beginning of an array
Definition ast.h:138
@ PM_TOKEN_HEREDOC_END
the end of a heredoc
Definition ast.h:51
@ PM_TOKEN_HEREDOC_START
the start of a heredoc
Definition ast.h:240
@ PM_TOKEN_KEYWORD_DEFINED
defined?
Definition ast.h:288
@ PM_TOKEN_UCOLON_COLON
unary ::
Definition ast.h:513
@ PM_TOKEN_LABEL_END
the end of a label
Definition ast.h:387
@ PM_TOKEN_EQUAL_GREATER
=>
Definition ast.h:207
@ PM_TOKEN_KEYWORD_UNLESS
unless
Definition ast.h:354
@ PM_TOKEN_KEYWORD_ENSURE
ensure
Definition ast.h:66
@ PM_TOKEN_AMPERSAND_EQUAL
&=
Definition ast.h:108
@ PM_TOKEN_EQUAL_EQUAL
==
Definition ast.h:201
@ PM_TOKEN_UPLUS
+@
Definition ast.h:528
@ PM_TOKEN_FLOAT_IMAGINARY
a floating pointer number with an imaginary suffix
Definition ast.h:216
@ PM_TOKEN_KEYWORD_BEGIN_UPCASE
BEGIN.
Definition ast.h:273
@ PM_TOKEN_LESS_EQUAL_GREATER
<=>
Definition ast.h:399
@ PM_TOKEN_KEYWORD_RESCUE_MODIFIER
rescue in the modifier form
Definition ast.h:333
@ PM_TOKEN_MINUS_GREATER
->
Definition ast.h:417
@ PM_TOKEN_KEYWORD_FALSE
false
Definition ast.h:303
@ PM_TOKEN_PIPE_PIPE_EQUAL
||=
Definition ast.h:459
@ PM_TOKEN_KEYWORD_IF
if
Definition ast.h:309
@ PM_TOKEN_EMBEXPR_BEGIN
#{
Definition ast.h:192
@ PM_TOKEN_PARENTHESIS_LEFT_PARENTHESES
( for a parentheses node
Definition ast.h:429
@ PM_TOKEN_EMBDOC_END
=end
Definition ast.h:186
@ PM_TOKEN_KEYWORD_ELSE
else
Definition ast.h:57
@ PM_TOKEN_BACK_REFERENCE
a back reference
Definition ast.h:114
@ PM_TOKEN_BRACKET_LEFT
[
Definition ast.h:135
@ PM_TOKEN_EOF
final token in the file
Definition ast.h:39
@ PM_TOKEN_PIPE_PIPE
||
Definition ast.h:456
@ PM_TOKEN_KEYWORD_NIL
nil
Definition ast.h:321
@ PM_TOKEN_PERCENT_UPPER_W
%W
Definition ast.h:450
@ PM_TOKEN_KEYWORD_RETURN
return
Definition ast.h:339
@ PM_TOKEN_CLASS_VARIABLE
a class variable
Definition ast.h:159
@ PM_TOKEN_PIPE
|
Definition ast.h:90
@ PM_TOKEN_PARENTHESIS_LEFT
(
Definition ast.h:423
@ PM_TOKEN_BANG_TILDE
!~
Definition ast.h:123
@ PM_TOKEN_DOT
the .
Definition ast.h:174
@ PM_TOKEN_PARENTHESIS_RIGHT
)
Definition ast.h:87
@ PM_TOKEN_KEYWORD_RESCUE
rescue
Definition ast.h:72
@ PM_TOKEN_INSTANCE_VARIABLE
an instance variable
Definition ast.h:249
@ PM_TOKEN_PIPE_EQUAL
|=
Definition ast.h:453
@ PM_TOKEN_BRACKET_LEFT_RIGHT_EQUAL
[]=
Definition ast.h:144
@ PM_TOKEN_UAMPERSAND
unary &
Definition ast.h:510
@ PM_TOKEN_MINUS
-
Definition ast.h:411
@ PM_TOKEN_CONSTANT
a constant
Definition ast.h:171
@ PM_TOKEN_IDENTIFIER
an identifier
Definition ast.h:243
@ PM_TOKEN_EMBDOC_BEGIN
=begin
Definition ast.h:183
@ PM_TOKEN_STAR_EQUAL
*=
Definition ast.h:486
@ PM_TOKEN_KEYWORD_OR
or
Definition ast.h:327
@ PM_TOKEN_KEYWORD_AND
and
Definition ast.h:267
@ PM_TOKEN_LESS
<
Definition ast.h:393
@ PM_TOKEN_KEYWORD_BREAK
break
Definition ast.h:276
@ PM_TOKEN_PERCENT_LOWER_W
%w
Definition ast.h:441
@ PM_TOKEN_SYMBOL_BEGIN
the beginning of a symbol
Definition ast.h:504
@ PM_TOKEN_METHOD_NAME
a method name
Definition ast.h:408
@ PM_TOKEN_KEYWORD_CASE
case
Definition ast.h:279
@ PM_TOKEN_WORDS_SEP
a separator between words in a list
Definition ast.h:537
@ PM_TOKEN_FLOAT_RATIONAL
a floating pointer number with a rational suffix
Definition ast.h:219
@ PM_TOKEN_LESS_LESS_EQUAL
<<=
Definition ast.h:405
@ PM_TOKEN_EMBDOC_LINE
a line inside of embedded documentation
Definition ast.h:189
@ PM_TOKEN_KEYWORD_SUPER
super
Definition ast.h:345
@ PM_TOKEN_KEYWORD_DO
do
Definition ast.h:54
@ PM_TOKEN_KEYWORD_REDO
redo
Definition ast.h:330
@ PM_TOKEN_EQUAL_TILDE
=~
Definition ast.h:210
@ PM_TOKEN_EMBEXPR_END
}
Definition ast.h:48
@ PM_TOKEN_KEYWORD_END_UPCASE
END.
Definition ast.h:300
@ PM_TOKEN_KEYWORD___LINE__
__LINE__
Definition ast.h:381
@ PM_TOKEN_BRACE_LEFT_HASH
{ for a hash literal
Definition ast.h:132
@ PM_TOKEN_STRING_END
the end of a string
Definition ast.h:501
@ PM_TOKEN_WORDS_SEP_IMPLICIT
a separator between words in a list that has no source characters
Definition ast.h:540
@ PM_TOKEN_STRING_CONTENT
the contents of a string
Definition ast.h:498
@ PM_TOKEN_BRACE_LEFT
{
Definition ast.h:126
@ PM_TOKEN_COLON_COLON
::
Definition ast.h:165
@ PM_TOKEN_GREATER_GREATER
>>
Definition ast.h:234
@ PM_TOKEN_PERCENT_LOWER_X
%x
Definition ast.h:444
@ PM_TOKEN_PARENTHESIS_LEFT_GROUPING
( scanned at the beginning of an expression
Definition ast.h:426
@ PM_TOKEN_KEYWORD_SELF
self
Definition ast.h:342
@ PM_TOKEN_PERCENT_LOWER_I
%i
Definition ast.h:438
@ PM_TOKEN_NEWLINE_TERMINATOR
a newline that terminates a construct where a newline is otherwise insignificant
Definition ast.h:84
@ PM_TOKEN_KEYWORD_ALIAS
alias
Definition ast.h:264
@ PM_TOKEN_GLOBAL_VARIABLE
a global variable
Definition ast.h:225
@ PM_TOKEN_KEYWORD_IF_MODIFIER
if in the modifier form
Definition ast.h:312
@ PM_TOKEN_SLASH
/
Definition ast.h:477
@ PM_TOKEN_KEYWORD_RETRY
retry
Definition ast.h:336
@ PM_TOKEN_COLON
:
Definition ast.h:162
@ PM_TOKEN_KEYWORD_UNDEF
undef
Definition ast.h:351
@ PM_TOKEN_BRACKET_RIGHT
]
Definition ast.h:147
@ PM_TOKEN_KEYWORD_FOR
for
Definition ast.h:306
@ PM_TOKEN_KEYWORD_THEN
then
Definition ast.h:75
@ PM_TOKEN_QUESTION_MARK
?
Definition ast.h:468
@ PM_TOKEN___END__
marker for the point in the file at which the parser should stop
Definition ast.h:546
@ PM_TOKEN_KEYWORD_WHILE
while
Definition ast.h:366
@ PM_TOKEN_EQUAL
=
Definition ast.h:198
@ PM_TOKEN_KEYWORD_DEF
def
Definition ast.h:285
@ PM_TOKEN_UDOT_DOT_DOT
unary ... operator
Definition ast.h:519
@ PM_TOKEN_STAR
Definition ast.h:483
@ PM_TOKEN_KEYWORD_WHILE_MODIFIER
while in the modifier form
Definition ast.h:369
@ PM_TOKEN_KEYWORD_TRUE
true
Definition ast.h:348
@ PM_TOKEN_BRACE_RIGHT
}
Definition ast.h:42
@ PM_TOKEN_SEMICOLON
;
Definition ast.h:93
@ PM_TOKEN_REGEXP_BEGIN
the beginning of a regular expression
Definition ast.h:471
@ PM_TOKEN_CARET
^
Definition ast.h:150
@ PM_TOKEN_PERCENT_UPPER_I
%I
Definition ast.h:447
@ PM_TOKEN_KEYWORD_DO_LOOP
do keyword for a predicate in a while, until, or for loop
Definition ast.h:297
@ PM_TOKEN_KEYWORD_MODULE
module
Definition ast.h:315
@ PM_TOKEN_PLUS
+
Definition ast.h:462
@ PM_TOKEN_KEYWORD_NEXT
next
Definition ast.h:318
@ PM_TOKEN_BACKTICK
` as a method name
Definition ast.h:111
@ PM_TOKEN_INTEGER_IMAGINARY
an integer with an imaginary suffix
Definition ast.h:255
@ PM_TOKEN_LABEL
a label
Definition ast.h:384
@ PM_TOKEN_STAR_STAR_EQUAL
**=
Definition ast.h:492
@ PM_TOKEN_CHARACTER_LITERAL
a character literal
Definition ast.h:156
@ PM_TOKEN_XSTRING_BEGIN
the beginning of an execution string
Definition ast.h:543
@ PM_TOKEN_AMPERSAND_AMPERSAND
&&
Definition ast.h:99
@ PM_TOKEN_UMINUS
-@
Definition ast.h:522
@ PM_TOKEN_LESS_LESS
<<
Definition ast.h:402
@ PM_TOKEN_GREATER_EQUAL
>=
Definition ast.h:231
@ PM_TOKEN_COMMENT
a comment
Definition ast.h:168
@ PM_TOKEN_CARET_EQUAL
^=
Definition ast.h:153
@ PM_TOKEN_KEYWORD_ELSIF
elsif
Definition ast.h:60
@ PM_TOKEN_STRING_BEGIN
the beginning of a string
Definition ast.h:495
@ PM_TOKEN_LESS_EQUAL
<=
Definition ast.h:396
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:8076
@ PM_PARAMETER_FLAGS_REPEATED_PARAMETER
a parameter name that has been repeated in the method signature
Definition ast.h:8078
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:8011
@ PM_ENCODING_FLAGS_FORCED_BINARY_ENCODING
internal bytes forced the encoding to binary
Definition ast.h:8016
@ PM_ENCODING_FLAGS_FORCED_UTF8_ENCODING
internal bytes forced the encoding to UTF-8
Definition ast.h:8013
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:8066
@ PM_LOOP_FLAGS_BEGIN_MODIFIER
a loop after a begin statement, so the body is executed first before the condition
Definition ast.h:8068
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.
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:30
This module provides functions for working with arbitrary-sized integers.
A view of a sequence of bytes owned by someone else.
AliasGlobalVariableNode.
Definition ast.h:1171
PM_NODE_ALIGNAS struct pm_node * new_name
AliasGlobalVariableNode::new_name.
Definition ast.h:1183
pm_node_t base
The embedded base node.
Definition ast.h:1173
pm_location_t keyword_loc
AliasGlobalVariableNode::keyword_loc.
Definition ast.h:1203
PM_NODE_ALIGNAS struct pm_node * old_name
AliasGlobalVariableNode::old_name.
Definition ast.h:1193
AliasMethodNode.
Definition ast.h:1218
PM_NODE_ALIGNAS struct pm_node * old_name
AliasMethodNode::old_name.
Definition ast.h:1252
pm_node_t base
The embedded base node.
Definition ast.h:1220
pm_location_t keyword_loc
AliasMethodNode::keyword_loc.
Definition ast.h:1262
PM_NODE_ALIGNAS struct pm_node * new_name
AliasMethodNode::new_name.
Definition ast.h:1236
AlternationPatternNode.
Definition ast.h:1277
pm_location_t operator_loc
AlternationPatternNode::operator_loc.
Definition ast.h:1309
PM_NODE_ALIGNAS struct pm_node * left
AlternationPatternNode::left.
Definition ast.h:1289
pm_node_t base
The embedded base node.
Definition ast.h:1279
PM_NODE_ALIGNAS struct pm_node * right
AlternationPatternNode::right.
Definition ast.h:1299
AndNode.
Definition ast.h:1324
PM_NODE_ALIGNAS struct pm_node * left
AndNode::left.
Definition ast.h:1339
PM_NODE_ALIGNAS struct pm_node * right
AndNode::right.
Definition ast.h:1352
pm_location_t operator_loc
AndNode::operator_loc.
Definition ast.h:1362
pm_node_t base
The embedded base node.
Definition ast.h:1326
ArgumentsNode.
Definition ast.h:1384
pm_node_t base
The embedded base node.
Definition ast.h:1386
struct pm_node_list arguments
ArgumentsNode::arguments.
Definition ast.h:1396
ArrayNode.
Definition ast.h:1414
pm_node_t base
The embedded base node.
Definition ast.h:1416
pm_location_t closing_loc
ArrayNode::closing_loc.
Definition ast.h:1447
struct pm_node_list elements
ArrayNode::elements.
Definition ast.h:1423
pm_location_t opening_loc
ArrayNode::opening_loc.
Definition ast.h:1435
ArrayPatternNode.
Definition ast.h:1474
struct pm_node_list requireds
ArrayPatternNode::requireds.
Definition ast.h:1502
PM_NODE_ALIGNAS struct pm_node * rest
ArrayPatternNode::rest.
Definition ast.h:1512
PM_NODE_ALIGNAS struct pm_node * constant
ArrayPatternNode::constant.
Definition ast.h:1492
pm_location_t opening_loc
ArrayPatternNode::opening_loc.
Definition ast.h:1532
pm_node_t base
The embedded base node.
Definition ast.h:1476
pm_location_t closing_loc
ArrayPatternNode::closing_loc.
Definition ast.h:1542
struct pm_node_list posts
ArrayPatternNode::posts.
Definition ast.h:1522
AssocNode.
Definition ast.h:1557
pm_node_t base
The embedded base node.
Definition ast.h:1559
PM_NODE_ALIGNAS struct pm_node * value
AssocNode::value.
Definition ast.h:1588
PM_NODE_ALIGNAS struct pm_node * key
AssocNode::key.
Definition ast.h:1575
pm_location_t operator_loc
AssocNode::operator_loc.
Definition ast.h:1598
AssocSplatNode.
Definition ast.h:1613
pm_node_t base
The embedded base node.
Definition ast.h:1615
pm_location_t operator_loc
AssocSplatNode::operator_loc.
Definition ast.h:1635
PM_NODE_ALIGNAS struct pm_node * value
AssocSplatNode::value.
Definition ast.h:1625
BackReferenceReadNode.
Definition ast.h:1650
pm_constant_id_t name
BackReferenceReadNode::name.
Definition ast.h:1663
pm_node_t base
The embedded base node.
Definition ast.h:1652
BeginNode.
Definition ast.h:1680
PM_NODE_ALIGNAS struct pm_else_node * else_clause
BeginNode::else_clause.
Definition ast.h:1722
PM_NODE_ALIGNAS struct pm_ensure_node * ensure_clause
BeginNode::ensure_clause.
Definition ast.h:1732
PM_NODE_ALIGNAS struct pm_statements_node * statements
BeginNode::statements.
Definition ast.h:1702
PM_NODE_ALIGNAS struct pm_rescue_node * rescue_clause
BeginNode::rescue_clause.
Definition ast.h:1712
pm_node_t base
The embedded base node.
Definition ast.h:1682
pm_location_t end_keyword_loc
BeginNode::end_keyword_loc.
Definition ast.h:1742
pm_location_t begin_keyword_loc
BeginNode::begin_keyword_loc.
Definition ast.h:1692
BlockArgumentNode.
Definition ast.h:1757
PM_NODE_ALIGNAS struct pm_node * expression
BlockArgumentNode::expression.
Definition ast.h:1769
pm_node_t base
The embedded base node.
Definition ast.h:1759
pm_location_t operator_loc
BlockArgumentNode::operator_loc.
Definition ast.h:1779
BlockLocalVariableNode.
Definition ast.h:1797
pm_node_t base
The embedded base node.
Definition ast.h:1799
pm_constant_id_t name
BlockLocalVariableNode::name.
Definition ast.h:1809
BlockNode.
Definition ast.h:1824
pm_node_t base
The embedded base node.
Definition ast.h:1826
pm_location_t closing_loc
BlockNode::closing_loc.
Definition ast.h:1880
PM_NODE_ALIGNAS struct pm_node * parameters
BlockNode::parameters.
Definition ast.h:1850
pm_location_t opening_loc
BlockNode::opening_loc.
Definition ast.h:1870
pm_constant_id_list_t locals
BlockNode::locals.
Definition ast.h:1836
PM_NODE_ALIGNAS struct pm_node * body
BlockNode::body.
Definition ast.h:1860
BlockParameterNode.
Definition ast.h:1899
pm_location_t operator_loc
BlockParameterNode::operator_loc.
Definition ast.h:1933
pm_location_t name_loc
BlockParameterNode::name_loc.
Definition ast.h:1922
pm_constant_id_t name
BlockParameterNode::name.
Definition ast.h:1912
pm_node_t base
The embedded base node.
Definition ast.h:1901
BlockParametersNode.
Definition ast.h:1952
pm_node_t base
The embedded base node.
Definition ast.h:1954
struct pm_node_list locals
BlockParametersNode::locals.
Definition ast.h:1982
PM_NODE_ALIGNAS struct pm_parameters_node * parameters
BlockParametersNode::parameters.
Definition ast.h:1968
pm_location_t closing_loc
BlockParametersNode::closing_loc.
Definition ast.h:2010
pm_location_t opening_loc
BlockParametersNode::opening_loc.
Definition ast.h:1996
BreakNode.
Definition ast.h:2025
pm_location_t keyword_loc
BreakNode::keyword_loc.
Definition ast.h:2047
pm_node_t base
The embedded base node.
Definition ast.h:2027
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
BreakNode::arguments.
Definition ast.h:2037
CallAndWriteNode.
Definition ast.h:2068
pm_location_t operator_loc
CallAndWriteNode::operator_loc.
Definition ast.h:2130
PM_NODE_ALIGNAS struct pm_node * receiver
CallAndWriteNode::receiver.
Definition ast.h:2080
pm_node_t base
The embedded base node.
Definition ast.h:2070
PM_NODE_ALIGNAS struct pm_node * value
CallAndWriteNode::value.
Definition ast.h:2140
pm_location_t call_operator_loc
CallAndWriteNode::call_operator_loc.
Definition ast.h:2090
pm_location_t message_loc
CallAndWriteNode::message_loc.
Definition ast.h:2100
pm_constant_id_t read_name
CallAndWriteNode::read_name.
Definition ast.h:2110
pm_constant_id_t write_name
CallAndWriteNode::write_name.
Definition ast.h:2120
CallNode.
Definition ast.h:2176
pm_location_t opening_loc
CallNode::opening_loc.
Definition ast.h:2237
pm_location_t closing_loc
CallNode::closing_loc.
Definition ast.h:2257
pm_constant_id_t name
CallNode::name.
Definition ast.h:2217
pm_node_t base
The embedded base node.
Definition ast.h:2178
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
CallNode::arguments.
Definition ast.h:2247
pm_location_t equal_loc
CallNode::equal_loc.
Definition ast.h:2270
pm_location_t call_operator_loc
CallNode::call_operator_loc.
Definition ast.h:2207
pm_location_t message_loc
CallNode::message_loc.
Definition ast.h:2227
PM_NODE_ALIGNAS struct pm_node * block
CallNode::block.
Definition ast.h:2280
PM_NODE_ALIGNAS struct pm_node * receiver
CallNode::receiver.
Definition ast.h:2194
CallOperatorWriteNode.
Definition ast.h:2301
pm_constant_id_t read_name
CallOperatorWriteNode::read_name.
Definition ast.h:2343
pm_constant_id_t binary_operator
CallOperatorWriteNode::binary_operator.
Definition ast.h:2363
pm_location_t binary_operator_loc
CallOperatorWriteNode::binary_operator_loc.
Definition ast.h:2373
pm_node_t base
The embedded base node.
Definition ast.h:2303
pm_constant_id_t write_name
CallOperatorWriteNode::write_name.
Definition ast.h:2353
pm_location_t message_loc
CallOperatorWriteNode::message_loc.
Definition ast.h:2333
PM_NODE_ALIGNAS struct pm_node * receiver
CallOperatorWriteNode::receiver.
Definition ast.h:2313
PM_NODE_ALIGNAS struct pm_node * value
CallOperatorWriteNode::value.
Definition ast.h:2383
pm_location_t call_operator_loc
CallOperatorWriteNode::call_operator_loc.
Definition ast.h:2323
CallOrWriteNode.
Definition ast.h:2404
pm_location_t operator_loc
CallOrWriteNode::operator_loc.
Definition ast.h:2466
pm_location_t call_operator_loc
CallOrWriteNode::call_operator_loc.
Definition ast.h:2426
PM_NODE_ALIGNAS struct pm_node * receiver
CallOrWriteNode::receiver.
Definition ast.h:2416
pm_node_t base
The embedded base node.
Definition ast.h:2406
PM_NODE_ALIGNAS struct pm_node * value
CallOrWriteNode::value.
Definition ast.h:2476
pm_constant_id_t write_name
CallOrWriteNode::write_name.
Definition ast.h:2456
pm_constant_id_t read_name
CallOrWriteNode::read_name.
Definition ast.h:2446
pm_location_t message_loc
CallOrWriteNode::message_loc.
Definition ast.h:2436
CallTargetNode.
Definition ast.h:2505
pm_node_t base
The embedded base node.
Definition ast.h:2507
pm_constant_id_t name
CallTargetNode::name.
Definition ast.h:2537
PM_NODE_ALIGNAS struct pm_node * receiver
CallTargetNode::receiver.
Definition ast.h:2517
pm_location_t call_operator_loc
CallTargetNode::call_operator_loc.
Definition ast.h:2527
pm_location_t message_loc
CallTargetNode::message_loc.
Definition ast.h:2547
CapturePatternNode.
Definition ast.h:2562
pm_location_t operator_loc
CapturePatternNode::operator_loc.
Definition ast.h:2594
pm_node_t base
The embedded base node.
Definition ast.h:2564
PM_NODE_ALIGNAS struct pm_node * value
CapturePatternNode::value.
Definition ast.h:2574
PM_NODE_ALIGNAS struct pm_local_variable_target_node * target
CapturePatternNode::target.
Definition ast.h:2584
CaseMatchNode.
Definition ast.h:2611
pm_location_t end_keyword_loc
CaseMatchNode::end_keyword_loc.
Definition ast.h:2663
struct pm_node_list conditions
CaseMatchNode::conditions.
Definition ast.h:2633
pm_node_t base
The embedded base node.
Definition ast.h:2613
pm_location_t case_keyword_loc
CaseMatchNode::case_keyword_loc.
Definition ast.h:2653
PM_NODE_ALIGNAS struct pm_node * predicate
CaseMatchNode::predicate.
Definition ast.h:2623
PM_NODE_ALIGNAS struct pm_else_node * else_clause
CaseMatchNode::else_clause.
Definition ast.h:2643
CaseNode.
Definition ast.h:2680
PM_NODE_ALIGNAS struct pm_else_node * else_clause
CaseNode::else_clause.
Definition ast.h:2712
struct pm_node_list conditions
CaseNode::conditions.
Definition ast.h:2702
PM_NODE_ALIGNAS struct pm_node * predicate
CaseNode::predicate.
Definition ast.h:2692
pm_node_t base
The embedded base node.
Definition ast.h:2682
pm_location_t case_keyword_loc
CaseNode::case_keyword_loc.
Definition ast.h:2722
pm_location_t end_keyword_loc
CaseNode::end_keyword_loc.
Definition ast.h:2732
ClassNode.
Definition ast.h:2747
pm_location_t class_keyword_loc
ClassNode::class_keyword_loc.
Definition ast.h:2764
pm_location_t end_keyword_loc
ClassNode::end_keyword_loc.
Definition ast.h:2809
pm_constant_id_list_t locals
ClassNode::locals.
Definition ast.h:2754
PM_NODE_ALIGNAS struct pm_node * superclass
ClassNode::superclass.
Definition ast.h:2789
pm_location_t inheritance_operator_loc
ClassNode::inheritance_operator_loc.
Definition ast.h:2779
pm_constant_id_t name
ClassNode::name.
Definition ast.h:2818
pm_node_t base
The embedded base node.
Definition ast.h:2749
PM_NODE_ALIGNAS struct pm_node * constant_path
ClassNode::constant_path.
Definition ast.h:2769
PM_NODE_ALIGNAS struct pm_node * body
ClassNode::body.
Definition ast.h:2799
ClassVariableAndWriteNode.
Definition ast.h:2833
PM_NODE_ALIGNAS struct pm_node * value
ClassVariableAndWriteNode::value.
Definition ast.h:2875
pm_constant_id_t name
ClassVariableAndWriteNode::name.
Definition ast.h:2845
pm_location_t operator_loc
ClassVariableAndWriteNode::operator_loc.
Definition ast.h:2865
pm_node_t base
The embedded base node.
Definition ast.h:2835
pm_location_t name_loc
ClassVariableAndWriteNode::name_loc.
Definition ast.h:2855
ClassVariableOperatorWriteNode.
Definition ast.h:2890
pm_node_t base
The embedded base node.
Definition ast.h:2892
pm_constant_id_t name
ClassVariableOperatorWriteNode::name.
Definition ast.h:2897
PM_NODE_ALIGNAS struct pm_node * value
ClassVariableOperatorWriteNode::value.
Definition ast.h:2912
pm_location_t name_loc
ClassVariableOperatorWriteNode::name_loc.
Definition ast.h:2902
pm_constant_id_t binary_operator
ClassVariableOperatorWriteNode::binary_operator.
Definition ast.h:2917
pm_location_t binary_operator_loc
ClassVariableOperatorWriteNode::binary_operator_loc.
Definition ast.h:2907
ClassVariableOrWriteNode.
Definition ast.h:2932
pm_node_t base
The embedded base node.
Definition ast.h:2934
PM_NODE_ALIGNAS struct pm_node * value
ClassVariableOrWriteNode::value.
Definition ast.h:2954
pm_location_t name_loc
ClassVariableOrWriteNode::name_loc.
Definition ast.h:2944
pm_location_t operator_loc
ClassVariableOrWriteNode::operator_loc.
Definition ast.h:2949
pm_constant_id_t name
ClassVariableOrWriteNode::name.
Definition ast.h:2939
ClassVariableReadNode.
Definition ast.h:2969
pm_node_t base
The embedded base node.
Definition ast.h:2971
pm_constant_id_t name
ClassVariableReadNode::name.
Definition ast.h:2982
ClassVariableTargetNode.
Definition ast.h:2997
pm_node_t base
The embedded base node.
Definition ast.h:2999
pm_constant_id_t name
ClassVariableTargetNode::name.
Definition ast.h:3004
ClassVariableWriteNode.
Definition ast.h:3019
pm_location_t name_loc
ClassVariableWriteNode::name_loc.
Definition ast.h:3042
PM_NODE_ALIGNAS struct pm_node * value
ClassVariableWriteNode::value.
Definition ast.h:3055
pm_node_t base
The embedded base node.
Definition ast.h:3021
pm_location_t operator_loc
ClassVariableWriteNode::operator_loc.
Definition ast.h:3065
pm_constant_id_t name
ClassVariableWriteNode::name.
Definition ast.h:3032
ConstantAndWriteNode.
Definition ast.h:3080
pm_location_t operator_loc
ConstantAndWriteNode::operator_loc.
Definition ast.h:3097
PM_NODE_ALIGNAS struct pm_node * value
ConstantAndWriteNode::value.
Definition ast.h:3102
pm_location_t name_loc
ConstantAndWriteNode::name_loc.
Definition ast.h:3092
pm_constant_id_t name
ConstantAndWriteNode::name.
Definition ast.h:3087
pm_node_t base
The embedded base node.
Definition ast.h:3082
A list of constant IDs.
Definition constant_pool.h:51
ConstantOperatorWriteNode.
Definition ast.h:3117
pm_constant_id_t name
ConstantOperatorWriteNode::name.
Definition ast.h:3124
pm_location_t name_loc
ConstantOperatorWriteNode::name_loc.
Definition ast.h:3129
pm_constant_id_t binary_operator
ConstantOperatorWriteNode::binary_operator.
Definition ast.h:3144
pm_location_t binary_operator_loc
ConstantOperatorWriteNode::binary_operator_loc.
Definition ast.h:3134
PM_NODE_ALIGNAS struct pm_node * value
ConstantOperatorWriteNode::value.
Definition ast.h:3139
pm_node_t base
The embedded base node.
Definition ast.h:3119
ConstantOrWriteNode.
Definition ast.h:3159
pm_location_t operator_loc
ConstantOrWriteNode::operator_loc.
Definition ast.h:3176
PM_NODE_ALIGNAS struct pm_node * value
ConstantOrWriteNode::value.
Definition ast.h:3181
pm_location_t name_loc
ConstantOrWriteNode::name_loc.
Definition ast.h:3171
pm_constant_id_t name
ConstantOrWriteNode::name.
Definition ast.h:3166
pm_node_t base
The embedded base node.
Definition ast.h:3161
ConstantPathAndWriteNode.
Definition ast.h:3196
PM_NODE_ALIGNAS struct pm_constant_path_node * target
ConstantPathAndWriteNode::target.
Definition ast.h:3203
pm_node_t base
The embedded base node.
Definition ast.h:3198
PM_NODE_ALIGNAS struct pm_node * value
ConstantPathAndWriteNode::value.
Definition ast.h:3213
pm_location_t operator_loc
ConstantPathAndWriteNode::operator_loc.
Definition ast.h:3208
ConstantPathNode.
Definition ast.h:3228
pm_location_t delimiter_loc
ConstantPathNode::delimiter_loc.
Definition ast.h:3266
pm_node_t base
The embedded base node.
Definition ast.h:3230
PM_NODE_ALIGNAS struct pm_node * parent
ConstantPathNode::parent.
Definition ast.h:3246
pm_location_t name_loc
ConstantPathNode::name_loc.
Definition ast.h:3279
pm_constant_id_t name
ConstantPathNode::name.
Definition ast.h:3253
ConstantPathOperatorWriteNode.
Definition ast.h:3294
PM_NODE_ALIGNAS struct pm_constant_path_node * target
ConstantPathOperatorWriteNode::target.
Definition ast.h:3301
pm_constant_id_t binary_operator
ConstantPathOperatorWriteNode::binary_operator.
Definition ast.h:3316
pm_node_t base
The embedded base node.
Definition ast.h:3296
pm_location_t binary_operator_loc
ConstantPathOperatorWriteNode::binary_operator_loc.
Definition ast.h:3306
PM_NODE_ALIGNAS struct pm_node * value
ConstantPathOperatorWriteNode::value.
Definition ast.h:3311
ConstantPathOrWriteNode.
Definition ast.h:3331
pm_location_t operator_loc
ConstantPathOrWriteNode::operator_loc.
Definition ast.h:3343
pm_node_t base
The embedded base node.
Definition ast.h:3333
PM_NODE_ALIGNAS struct pm_node * value
ConstantPathOrWriteNode::value.
Definition ast.h:3348
PM_NODE_ALIGNAS struct pm_constant_path_node * target
ConstantPathOrWriteNode::target.
Definition ast.h:3338
ConstantPathTargetNode.
Definition ast.h:3363
pm_node_t base
The embedded base node.
Definition ast.h:3365
pm_location_t delimiter_loc
ConstantPathTargetNode::delimiter_loc.
Definition ast.h:3380
pm_constant_id_t name
ConstantPathTargetNode::name.
Definition ast.h:3375
PM_NODE_ALIGNAS struct pm_node * parent
ConstantPathTargetNode::parent.
Definition ast.h:3370
pm_location_t name_loc
ConstantPathTargetNode::name_loc.
Definition ast.h:3385
ConstantPathWriteNode.
Definition ast.h:3406
PM_NODE_ALIGNAS struct pm_node * value
ConstantPathWriteNode::value.
Definition ast.h:3441
pm_location_t operator_loc
ConstantPathWriteNode::operator_loc.
Definition ast.h:3431
pm_node_t base
The embedded base node.
Definition ast.h:3408
PM_NODE_ALIGNAS struct pm_constant_path_node * target
ConstantPathWriteNode::target.
Definition ast.h:3421
ConstantReadNode.
Definition ast.h:3456
pm_node_t base
The embedded base node.
Definition ast.h:3458
pm_constant_id_t name
ConstantReadNode::name.
Definition ast.h:3469
ConstantTargetNode.
Definition ast.h:3484
pm_node_t base
The embedded base node.
Definition ast.h:3486
pm_constant_id_t name
ConstantTargetNode::name.
Definition ast.h:3491
ConstantWriteNode.
Definition ast.h:3506
pm_node_t base
The embedded base node.
Definition ast.h:3508
PM_NODE_ALIGNAS struct pm_node * value
ConstantWriteNode::value.
Definition ast.h:3542
pm_constant_id_t name
ConstantWriteNode::name.
Definition ast.h:3519
pm_location_t name_loc
ConstantWriteNode::name_loc.
Definition ast.h:3529
pm_location_t operator_loc
ConstantWriteNode::operator_loc.
Definition ast.h:3552
DefNode.
Definition ast.h:3568
pm_location_t end_keyword_loc
DefNode::end_keyword_loc.
Definition ast.h:3630
pm_constant_id_t name
DefNode::name.
Definition ast.h:3575
pm_location_t name_loc
DefNode::name_loc.
Definition ast.h:3580
pm_location_t rparen_loc
DefNode::rparen_loc.
Definition ast.h:3620
PM_NODE_ALIGNAS struct pm_parameters_node * parameters
DefNode::parameters.
Definition ast.h:3590
pm_location_t equal_loc
DefNode::equal_loc.
Definition ast.h:3625
pm_location_t def_keyword_loc
DefNode::def_keyword_loc.
Definition ast.h:3605
pm_node_t base
The embedded base node.
Definition ast.h:3570
pm_location_t lparen_loc
DefNode::lparen_loc.
Definition ast.h:3615
PM_NODE_ALIGNAS struct pm_node * receiver
DefNode::receiver.
Definition ast.h:3585
PM_NODE_ALIGNAS struct pm_node * body
DefNode::body.
Definition ast.h:3595
pm_location_t operator_loc
DefNode::operator_loc.
Definition ast.h:3610
pm_constant_id_list_t locals
DefNode::locals.
Definition ast.h:3600
DefinedNode.
Definition ast.h:3645
PM_NODE_ALIGNAS struct pm_node * value
DefinedNode::value.
Definition ast.h:3657
pm_location_t lparen_loc
DefinedNode::lparen_loc.
Definition ast.h:3652
pm_node_t base
The embedded base node.
Definition ast.h:3647
pm_location_t rparen_loc
DefinedNode::rparen_loc.
Definition ast.h:3662
pm_location_t keyword_loc
DefinedNode::keyword_loc.
Definition ast.h:3667
ElseNode.
Definition ast.h:3682
pm_location_t else_keyword_loc
ElseNode::else_keyword_loc.
Definition ast.h:3689
pm_node_t base
The embedded base node.
Definition ast.h:3684
PM_NODE_ALIGNAS struct pm_statements_node * statements
ElseNode::statements.
Definition ast.h:3694
pm_location_t end_keyword_loc
ElseNode::end_keyword_loc.
Definition ast.h:3699
EmbeddedStatementsNode.
Definition ast.h:3714
PM_NODE_ALIGNAS struct pm_statements_node * statements
EmbeddedStatementsNode::statements.
Definition ast.h:3726
pm_location_t closing_loc
EmbeddedStatementsNode::closing_loc.
Definition ast.h:3731
pm_node_t base
The embedded base node.
Definition ast.h:3716
pm_location_t opening_loc
EmbeddedStatementsNode::opening_loc.
Definition ast.h:3721
EmbeddedVariableNode.
Definition ast.h:3746
PM_NODE_ALIGNAS struct pm_node * variable
EmbeddedVariableNode::variable.
Definition ast.h:3758
pm_location_t operator_loc
EmbeddedVariableNode::operator_loc.
Definition ast.h:3753
pm_node_t base
The embedded base node.
Definition ast.h:3748
EnsureNode.
Definition ast.h:3777
PM_NODE_ALIGNAS struct pm_statements_node * statements
EnsureNode::statements.
Definition ast.h:3789
pm_node_t base
The embedded base node.
Definition ast.h:3779
pm_location_t ensure_keyword_loc
EnsureNode::ensure_keyword_loc.
Definition ast.h:3784
pm_location_t end_keyword_loc
EnsureNode::end_keyword_loc.
Definition ast.h:3794
ErrorRecoveryNode.
Definition ast.h:3806
PM_NODE_ALIGNAS struct pm_node * unexpected
ErrorRecoveryNode::unexpected.
Definition ast.h:3815
pm_node_t base
The embedded base node.
Definition ast.h:3808
FalseNode.
Definition ast.h:3830
pm_node_t base
The embedded base node.
Definition ast.h:3832
FindPatternNode.
Definition ast.h:3856
PM_NODE_ALIGNAS struct pm_splat_node * left
FindPatternNode::left.
Definition ast.h:3881
PM_NODE_ALIGNAS struct pm_splat_node * right
FindPatternNode::right.
Definition ast.h:3907
pm_location_t opening_loc
FindPatternNode::opening_loc.
Definition ast.h:3920
pm_node_t base
The embedded base node.
Definition ast.h:3858
PM_NODE_ALIGNAS struct pm_node * constant
FindPatternNode::constant.
Definition ast.h:3868
struct pm_node_list requireds
FindPatternNode::requireds.
Definition ast.h:3894
pm_location_t closing_loc
FindPatternNode::closing_loc.
Definition ast.h:3933
FlipFlopNode.
Definition ast.h:3951
PM_NODE_ALIGNAS struct pm_node * left
FlipFlopNode::left.
Definition ast.h:3958
pm_node_t base
The embedded base node.
Definition ast.h:3953
pm_location_t operator_loc
FlipFlopNode::operator_loc.
Definition ast.h:3968
PM_NODE_ALIGNAS struct pm_node * right
FlipFlopNode::right.
Definition ast.h:3963
FloatNode.
Definition ast.h:3983
double value
FloatNode::value.
Definition ast.h:3992
pm_node_t base
The embedded base node.
Definition ast.h:3985
ForNode.
Definition ast.h:4007
PM_NODE_ALIGNAS struct pm_node * index
ForNode::index.
Definition ast.h:4019
PM_NODE_ALIGNAS struct pm_node * collection
ForNode::collection.
Definition ast.h:4029
pm_node_t base
The embedded base node.
Definition ast.h:4009
PM_NODE_ALIGNAS struct pm_statements_node * statements
ForNode::statements.
Definition ast.h:4041
pm_location_t end_keyword_loc
ForNode::end_keyword_loc.
Definition ast.h:4081
pm_location_t for_keyword_loc
ForNode::for_keyword_loc.
Definition ast.h:4051
pm_location_t do_keyword_loc
ForNode::do_keyword_loc.
Definition ast.h:4071
pm_location_t in_keyword_loc
ForNode::in_keyword_loc.
Definition ast.h:4061
ForwardingArgumentsNode.
Definition ast.h:4098
pm_node_t base
The embedded base node.
Definition ast.h:4100
ForwardingParameterNode.
Definition ast.h:4116
pm_node_t base
The embedded base node.
Definition ast.h:4118
ForwardingSuperNode.
Definition ast.h:4138
pm_node_t base
The embedded base node.
Definition ast.h:4140
PM_NODE_ALIGNAS struct pm_block_node * block
ForwardingSuperNode::block.
Definition ast.h:4158
pm_location_t keyword_loc
ForwardingSuperNode::keyword_loc.
Definition ast.h:4151
GlobalVariableAndWriteNode.
Definition ast.h:4173
pm_location_t operator_loc
GlobalVariableAndWriteNode::operator_loc.
Definition ast.h:4190
pm_node_t base
The embedded base node.
Definition ast.h:4175
PM_NODE_ALIGNAS struct pm_node * value
GlobalVariableAndWriteNode::value.
Definition ast.h:4195
pm_location_t name_loc
GlobalVariableAndWriteNode::name_loc.
Definition ast.h:4185
pm_constant_id_t name
GlobalVariableAndWriteNode::name.
Definition ast.h:4180
GlobalVariableOperatorWriteNode.
Definition ast.h:4210
PM_NODE_ALIGNAS struct pm_node * value
GlobalVariableOperatorWriteNode::value.
Definition ast.h:4232
pm_constant_id_t name
GlobalVariableOperatorWriteNode::name.
Definition ast.h:4217
pm_constant_id_t binary_operator
GlobalVariableOperatorWriteNode::binary_operator.
Definition ast.h:4237
pm_location_t name_loc
GlobalVariableOperatorWriteNode::name_loc.
Definition ast.h:4222
pm_node_t base
The embedded base node.
Definition ast.h:4212
pm_location_t binary_operator_loc
GlobalVariableOperatorWriteNode::binary_operator_loc.
Definition ast.h:4227
GlobalVariableOrWriteNode.
Definition ast.h:4252
pm_constant_id_t name
GlobalVariableOrWriteNode::name.
Definition ast.h:4259
pm_location_t name_loc
GlobalVariableOrWriteNode::name_loc.
Definition ast.h:4264
pm_node_t base
The embedded base node.
Definition ast.h:4254
pm_location_t operator_loc
GlobalVariableOrWriteNode::operator_loc.
Definition ast.h:4269
PM_NODE_ALIGNAS struct pm_node * value
GlobalVariableOrWriteNode::value.
Definition ast.h:4274
GlobalVariableReadNode.
Definition ast.h:4289
pm_node_t base
The embedded base node.
Definition ast.h:4291
pm_constant_id_t name
GlobalVariableReadNode::name.
Definition ast.h:4302
GlobalVariableTargetNode.
Definition ast.h:4317
pm_constant_id_t name
GlobalVariableTargetNode::name.
Definition ast.h:4324
pm_node_t base
The embedded base node.
Definition ast.h:4319
GlobalVariableWriteNode.
Definition ast.h:4339
pm_location_t name_loc
GlobalVariableWriteNode::name_loc.
Definition ast.h:4362
pm_location_t operator_loc
GlobalVariableWriteNode::operator_loc.
Definition ast.h:4385
pm_constant_id_t name
GlobalVariableWriteNode::name.
Definition ast.h:4352
pm_node_t base
The embedded base node.
Definition ast.h:4341
PM_NODE_ALIGNAS struct pm_node * value
GlobalVariableWriteNode::value.
Definition ast.h:4375
HashNode.
Definition ast.h:4400
struct pm_node_list elements
HashNode::elements.
Definition ast.h:4425
pm_node_t base
The embedded base node.
Definition ast.h:4402
pm_location_t closing_loc
HashNode::closing_loc.
Definition ast.h:4435
pm_location_t opening_loc
HashNode::opening_loc.
Definition ast.h:4412
HashPatternNode.
Definition ast.h:4459
PM_NODE_ALIGNAS struct pm_node * constant
HashPatternNode::constant.
Definition ast.h:4474
struct pm_node_list elements
HashPatternNode::elements.
Definition ast.h:4484
pm_location_t opening_loc
HashPatternNode::opening_loc.
Definition ast.h:4513
pm_node_t base
The embedded base node.
Definition ast.h:4461
pm_location_t closing_loc
HashPatternNode::closing_loc.
Definition ast.h:4526
PM_NODE_ALIGNAS struct pm_node * rest
HashPatternNode::rest.
Definition ast.h:4500
IfNode.
Definition ast.h:4547
PM_NODE_ALIGNAS struct pm_node * predicate
IfNode::predicate.
Definition ast.h:4579
pm_location_t end_keyword_loc
IfNode::end_keyword_loc.
Definition ast.h:4637
pm_location_t if_keyword_loc
IfNode::if_keyword_loc.
Definition ast.h:4561
PM_NODE_ALIGNAS struct pm_statements_node * statements
IfNode::statements.
Definition ast.h:4606
pm_node_t base
The embedded base node.
Definition ast.h:4549
pm_location_t then_keyword_loc
IfNode::then_keyword_loc.
Definition ast.h:4592
PM_NODE_ALIGNAS struct pm_node * subsequent
IfNode::subsequent.
Definition ast.h:4625
ImaginaryNode.
Definition ast.h:4652
pm_node_t base
The embedded base node.
Definition ast.h:4654
PM_NODE_ALIGNAS struct pm_node * numeric
ImaginaryNode::numeric.
Definition ast.h:4659
ImplicitNode.
Definition ast.h:4680
pm_node_t base
The embedded base node.
Definition ast.h:4682
PM_NODE_ALIGNAS struct pm_node * value
ImplicitNode::value.
Definition ast.h:4687
ImplicitRestNode.
Definition ast.h:4711
pm_node_t base
The embedded base node.
Definition ast.h:4713
InNode.
Definition ast.h:4728
pm_location_t in_keyword_loc
InNode::in_keyword_loc.
Definition ast.h:4745
PM_NODE_ALIGNAS struct pm_node * pattern
InNode::pattern.
Definition ast.h:4735
PM_NODE_ALIGNAS struct pm_statements_node * statements
InNode::statements.
Definition ast.h:4740
pm_location_t then_keyword_loc
InNode::then_keyword_loc.
Definition ast.h:4750
pm_node_t base
The embedded base node.
Definition ast.h:4730
IndexAndWriteNode.
Definition ast.h:4771
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
IndexAndWriteNode::arguments.
Definition ast.h:4793
pm_node_t base
The embedded base node.
Definition ast.h:4773
pm_location_t operator_loc
IndexAndWriteNode::operator_loc.
Definition ast.h:4808
pm_location_t closing_loc
IndexAndWriteNode::closing_loc.
Definition ast.h:4798
pm_location_t opening_loc
IndexAndWriteNode::opening_loc.
Definition ast.h:4788
pm_location_t call_operator_loc
IndexAndWriteNode::call_operator_loc.
Definition ast.h:4783
PM_NODE_ALIGNAS struct pm_block_argument_node * block
IndexAndWriteNode::block.
Definition ast.h:4803
PM_NODE_ALIGNAS struct pm_node * receiver
IndexAndWriteNode::receiver.
Definition ast.h:4778
PM_NODE_ALIGNAS struct pm_node * value
IndexAndWriteNode::value.
Definition ast.h:4813
IndexOperatorWriteNode.
Definition ast.h:4834
PM_NODE_ALIGNAS struct pm_block_argument_node * block
IndexOperatorWriteNode::block.
Definition ast.h:4866
pm_node_t base
The embedded base node.
Definition ast.h:4836
PM_NODE_ALIGNAS struct pm_node * receiver
IndexOperatorWriteNode::receiver.
Definition ast.h:4841
pm_location_t binary_operator_loc
IndexOperatorWriteNode::binary_operator_loc.
Definition ast.h:4876
PM_NODE_ALIGNAS struct pm_node * value
IndexOperatorWriteNode::value.
Definition ast.h:4881
pm_location_t opening_loc
IndexOperatorWriteNode::opening_loc.
Definition ast.h:4851
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
IndexOperatorWriteNode::arguments.
Definition ast.h:4856
pm_location_t call_operator_loc
IndexOperatorWriteNode::call_operator_loc.
Definition ast.h:4846
pm_location_t closing_loc
IndexOperatorWriteNode::closing_loc.
Definition ast.h:4861
pm_constant_id_t binary_operator
IndexOperatorWriteNode::binary_operator.
Definition ast.h:4871
IndexOrWriteNode.
Definition ast.h:4902
pm_location_t closing_loc
IndexOrWriteNode::closing_loc.
Definition ast.h:4929
pm_location_t call_operator_loc
IndexOrWriteNode::call_operator_loc.
Definition ast.h:4914
pm_node_t base
The embedded base node.
Definition ast.h:4904
pm_location_t operator_loc
IndexOrWriteNode::operator_loc.
Definition ast.h:4939
pm_location_t opening_loc
IndexOrWriteNode::opening_loc.
Definition ast.h:4919
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
IndexOrWriteNode::arguments.
Definition ast.h:4924
PM_NODE_ALIGNAS struct pm_node * value
IndexOrWriteNode::value.
Definition ast.h:4944
PM_NODE_ALIGNAS struct pm_node * receiver
IndexOrWriteNode::receiver.
Definition ast.h:4909
PM_NODE_ALIGNAS struct pm_block_argument_node * block
IndexOrWriteNode::block.
Definition ast.h:4934
IndexTargetNode.
Definition ast.h:4973
pm_node_t base
The embedded base node.
Definition ast.h:4975
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
IndexTargetNode::arguments.
Definition ast.h:4990
pm_location_t closing_loc
IndexTargetNode::closing_loc.
Definition ast.h:4995
PM_NODE_ALIGNAS struct pm_block_argument_node * block
IndexTargetNode::block.
Definition ast.h:5000
pm_location_t opening_loc
IndexTargetNode::opening_loc.
Definition ast.h:4985
PM_NODE_ALIGNAS struct pm_node * receiver
IndexTargetNode::receiver.
Definition ast.h:4980
InstanceVariableAndWriteNode.
Definition ast.h:5015
PM_NODE_ALIGNAS struct pm_node * value
InstanceVariableAndWriteNode::value.
Definition ast.h:5037
pm_location_t operator_loc
InstanceVariableAndWriteNode::operator_loc.
Definition ast.h:5032
pm_location_t name_loc
InstanceVariableAndWriteNode::name_loc.
Definition ast.h:5027
pm_node_t base
The embedded base node.
Definition ast.h:5017
pm_constant_id_t name
InstanceVariableAndWriteNode::name.
Definition ast.h:5022
InstanceVariableOperatorWriteNode.
Definition ast.h:5052
pm_constant_id_t binary_operator
InstanceVariableOperatorWriteNode::binary_operator.
Definition ast.h:5079
PM_NODE_ALIGNAS struct pm_node * value
InstanceVariableOperatorWriteNode::value.
Definition ast.h:5074
pm_location_t binary_operator_loc
InstanceVariableOperatorWriteNode::binary_operator_loc.
Definition ast.h:5069
pm_constant_id_t name
InstanceVariableOperatorWriteNode::name.
Definition ast.h:5059
pm_node_t base
The embedded base node.
Definition ast.h:5054
pm_location_t name_loc
InstanceVariableOperatorWriteNode::name_loc.
Definition ast.h:5064
InstanceVariableOrWriteNode.
Definition ast.h:5094
pm_location_t operator_loc
InstanceVariableOrWriteNode::operator_loc.
Definition ast.h:5111
pm_node_t base
The embedded base node.
Definition ast.h:5096
pm_location_t name_loc
InstanceVariableOrWriteNode::name_loc.
Definition ast.h:5106
pm_constant_id_t name
InstanceVariableOrWriteNode::name.
Definition ast.h:5101
PM_NODE_ALIGNAS struct pm_node * value
InstanceVariableOrWriteNode::value.
Definition ast.h:5116
InstanceVariableReadNode.
Definition ast.h:5131
pm_constant_id_t name
InstanceVariableReadNode::name.
Definition ast.h:5144
pm_node_t base
The embedded base node.
Definition ast.h:5133
InstanceVariableTargetNode.
Definition ast.h:5159
pm_constant_id_t name
InstanceVariableTargetNode::name.
Definition ast.h:5166
pm_node_t base
The embedded base node.
Definition ast.h:5161
InstanceVariableWriteNode.
Definition ast.h:5181
pm_location_t operator_loc
InstanceVariableWriteNode::operator_loc.
Definition ast.h:5227
PM_NODE_ALIGNAS struct pm_node * value
InstanceVariableWriteNode::value.
Definition ast.h:5217
pm_constant_id_t name
InstanceVariableWriteNode::name.
Definition ast.h:5194
pm_node_t base
The embedded base node.
Definition ast.h:5183
pm_location_t name_loc
InstanceVariableWriteNode::name_loc.
Definition ast.h:5204
IntegerNode.
Definition ast.h:5248
pm_integer_t value
IntegerNode::value.
Definition ast.h:5257
pm_node_t base
The embedded base node.
Definition ast.h:5250
A structure represents an arbitrary-sized integer.
Definition integer.h:19
InterpolatedMatchLastLineNode.
Definition ast.h:5285
pm_node_t base
The embedded base node.
Definition ast.h:5287
pm_location_t closing_loc
InterpolatedMatchLastLineNode::closing_loc.
Definition ast.h:5302
struct pm_node_list parts
InterpolatedMatchLastLineNode::parts.
Definition ast.h:5297
pm_location_t opening_loc
InterpolatedMatchLastLineNode::opening_loc.
Definition ast.h:5292
InterpolatedRegularExpressionNode.
Definition ast.h:5330
pm_location_t opening_loc
InterpolatedRegularExpressionNode::opening_loc.
Definition ast.h:5337
struct pm_node_list parts
InterpolatedRegularExpressionNode::parts.
Definition ast.h:5342
pm_node_t base
The embedded base node.
Definition ast.h:5332
pm_location_t closing_loc
InterpolatedRegularExpressionNode::closing_loc.
Definition ast.h:5347
InterpolatedStringNode.
Definition ast.h:5366
pm_node_t base
The embedded base node.
Definition ast.h:5368
pm_location_t closing_loc
InterpolatedStringNode::closing_loc.
Definition ast.h:5383
pm_location_t opening_loc
InterpolatedStringNode::opening_loc.
Definition ast.h:5373
struct pm_node_list parts
InterpolatedStringNode::parts.
Definition ast.h:5378
InterpolatedSymbolNode.
Definition ast.h:5398
struct pm_node_list parts
InterpolatedSymbolNode::parts.
Definition ast.h:5410
pm_location_t closing_loc
InterpolatedSymbolNode::closing_loc.
Definition ast.h:5415
pm_location_t opening_loc
InterpolatedSymbolNode::opening_loc.
Definition ast.h:5405
pm_node_t base
The embedded base node.
Definition ast.h:5400
InterpolatedXStringNode.
Definition ast.h:5430
pm_location_t opening_loc
InterpolatedXStringNode::opening_loc.
Definition ast.h:5437
pm_location_t closing_loc
InterpolatedXStringNode::closing_loc.
Definition ast.h:5447
pm_node_t base
The embedded base node.
Definition ast.h:5432
struct pm_node_list parts
InterpolatedXStringNode::parts.
Definition ast.h:5442
ItLocalVariableReadNode.
Definition ast.h:5462
pm_node_t base
The embedded base node.
Definition ast.h:5464
ItParametersNode.
Definition ast.h:5479
pm_node_t base
The embedded base node.
Definition ast.h:5481
KeywordHashNode.
Definition ast.h:5499
pm_node_t base
The embedded base node.
Definition ast.h:5501
struct pm_node_list elements
KeywordHashNode::elements.
Definition ast.h:5506
KeywordRestParameterNode.
Definition ast.h:5525
pm_node_t base
The embedded base node.
Definition ast.h:5527
pm_constant_id_t name
KeywordRestParameterNode::name.
Definition ast.h:5532
pm_location_t operator_loc
KeywordRestParameterNode::operator_loc.
Definition ast.h:5542
pm_location_t name_loc
KeywordRestParameterNode::name_loc.
Definition ast.h:5537
LambdaNode.
Definition ast.h:5557
pm_location_t closing_loc
LambdaNode::closing_loc.
Definition ast.h:5579
pm_node_t base
The embedded base node.
Definition ast.h:5559
pm_location_t opening_loc
LambdaNode::opening_loc.
Definition ast.h:5574
pm_location_t operator_loc
LambdaNode::operator_loc.
Definition ast.h:5569
pm_constant_id_list_t locals
LambdaNode::locals.
Definition ast.h:5564
PM_NODE_ALIGNAS struct pm_node * body
LambdaNode::body.
Definition ast.h:5589
PM_NODE_ALIGNAS struct pm_node * parameters
LambdaNode::parameters.
Definition ast.h:5584
LocalVariableAndWriteNode.
Definition ast.h:5604
pm_constant_id_t name
LocalVariableAndWriteNode::name.
Definition ast.h:5626
pm_node_t base
The embedded base node.
Definition ast.h:5606
uint32_t depth
LocalVariableAndWriteNode::depth.
Definition ast.h:5631
pm_location_t operator_loc
LocalVariableAndWriteNode::operator_loc.
Definition ast.h:5616
PM_NODE_ALIGNAS struct pm_node * value
LocalVariableAndWriteNode::value.
Definition ast.h:5621
pm_location_t name_loc
LocalVariableAndWriteNode::name_loc.
Definition ast.h:5611
LocalVariableOperatorWriteNode.
Definition ast.h:5646
uint32_t depth
LocalVariableOperatorWriteNode::depth.
Definition ast.h:5678
pm_constant_id_t binary_operator
LocalVariableOperatorWriteNode::binary_operator.
Definition ast.h:5673
pm_node_t base
The embedded base node.
Definition ast.h:5648
pm_location_t name_loc
LocalVariableOperatorWriteNode::name_loc.
Definition ast.h:5653
pm_location_t binary_operator_loc
LocalVariableOperatorWriteNode::binary_operator_loc.
Definition ast.h:5658
PM_NODE_ALIGNAS struct pm_node * value
LocalVariableOperatorWriteNode::value.
Definition ast.h:5663
pm_constant_id_t name
LocalVariableOperatorWriteNode::name.
Definition ast.h:5668
LocalVariableOrWriteNode.
Definition ast.h:5693
PM_NODE_ALIGNAS struct pm_node * value
LocalVariableOrWriteNode::value.
Definition ast.h:5710
uint32_t depth
LocalVariableOrWriteNode::depth.
Definition ast.h:5720
pm_location_t operator_loc
LocalVariableOrWriteNode::operator_loc.
Definition ast.h:5705
pm_node_t base
The embedded base node.
Definition ast.h:5695
pm_constant_id_t name
LocalVariableOrWriteNode::name.
Definition ast.h:5715
pm_location_t name_loc
LocalVariableOrWriteNode::name_loc.
Definition ast.h:5700
LocalVariableReadNode.
Definition ast.h:5735
uint32_t depth
LocalVariableReadNode::depth.
Definition ast.h:5765
pm_constant_id_t name
LocalVariableReadNode::name.
Definition ast.h:5752
pm_node_t base
The embedded base node.
Definition ast.h:5737
LocalVariableTargetNode.
Definition ast.h:5783
uint32_t depth
LocalVariableTargetNode::depth.
Definition ast.h:5795
pm_constant_id_t name
LocalVariableTargetNode::name.
Definition ast.h:5790
pm_node_t base
The embedded base node.
Definition ast.h:5785
LocalVariableWriteNode.
Definition ast.h:5810
PM_NODE_ALIGNAS struct pm_node * value
LocalVariableWriteNode::value.
Definition ast.h:5863
pm_location_t operator_loc
LocalVariableWriteNode::operator_loc.
Definition ast.h:5873
pm_location_t name_loc
LocalVariableWriteNode::name_loc.
Definition ast.h:5846
pm_node_t base
The embedded base node.
Definition ast.h:5812
uint32_t depth
LocalVariableWriteNode::depth.
Definition ast.h:5836
pm_constant_id_t name
LocalVariableWriteNode::name.
Definition ast.h:5823
This struct represents a slice in the source code, defined by an offset and a length.
Definition ast.h:584
uint32_t start
The offset of the location from the start of the source.
Definition ast.h:586
uint32_t length
The length of the location.
Definition ast.h:589
MatchLastLineNode.
Definition ast.h:5901
pm_location_t content_loc
MatchLastLineNode::content_loc.
Definition ast.h:5913
pm_location_t opening_loc
MatchLastLineNode::opening_loc.
Definition ast.h:5908
pm_location_t closing_loc
MatchLastLineNode::closing_loc.
Definition ast.h:5918
pm_string_t unescaped
MatchLastLineNode::unescaped.
Definition ast.h:5923
pm_node_t base
The embedded base node.
Definition ast.h:5903
MatchPredicateNode.
Definition ast.h:5938
pm_location_t keyword_loc
MatchPredicateNode::keyword_loc.
Definition ast.h:5955
PM_NODE_ALIGNAS struct pm_node * pattern
MatchPredicateNode::pattern.
Definition ast.h:5950
PM_NODE_ALIGNAS struct pm_node * value
MatchPredicateNode::value.
Definition ast.h:5945
pm_node_t base
The embedded base node.
Definition ast.h:5940
MatchRequiredNode.
Definition ast.h:5970
pm_node_t base
The embedded base node.
Definition ast.h:5972
pm_location_t operator_loc
MatchRequiredNode::operator_loc.
Definition ast.h:6041
PM_NODE_ALIGNAS struct pm_node * pattern
MatchRequiredNode::pattern.
Definition ast.h:6031
PM_NODE_ALIGNAS struct pm_node * value
MatchRequiredNode::value.
Definition ast.h:5982
MatchWriteNode.
Definition ast.h:6056
pm_node_t base
The embedded base node.
Definition ast.h:6058
PM_NODE_ALIGNAS struct pm_call_node * call
MatchWriteNode::call.
Definition ast.h:6063
struct pm_node_list targets
MatchWriteNode::targets.
Definition ast.h:6068
ModuleNode.
Definition ast.h:6083
pm_location_t end_keyword_loc
ModuleNode::end_keyword_loc.
Definition ast.h:6110
PM_NODE_ALIGNAS struct pm_node * constant_path
ModuleNode::constant_path.
Definition ast.h:6100
PM_NODE_ALIGNAS struct pm_node * body
ModuleNode::body.
Definition ast.h:6105
pm_constant_id_list_t locals
ModuleNode::locals.
Definition ast.h:6090
pm_node_t base
The embedded base node.
Definition ast.h:6085
pm_location_t module_keyword_loc
ModuleNode::module_keyword_loc.
Definition ast.h:6095
pm_constant_id_t name
ModuleNode::name.
Definition ast.h:6115
MultiTargetNode.
Definition ast.h:6135
PM_NODE_ALIGNAS struct pm_node * rest
MultiTargetNode::rest.
Definition ast.h:6172
pm_node_t base
The embedded base node.
Definition ast.h:6137
pm_location_t lparen_loc
MultiTargetNode::lparen_loc.
Definition ast.h:6192
struct pm_node_list lefts
MultiTargetNode::lefts.
Definition ast.h:6152
pm_location_t rparen_loc
MultiTargetNode::rparen_loc.
Definition ast.h:6202
struct pm_node_list rights
MultiTargetNode::rights.
Definition ast.h:6182
MultiWriteNode.
Definition ast.h:6217
pm_location_t rparen_loc
MultiWriteNode::rparen_loc.
Definition ast.h:6284
PM_NODE_ALIGNAS struct pm_node * rest
MultiWriteNode::rest.
Definition ast.h:6254
struct pm_node_list rights
MultiWriteNode::rights.
Definition ast.h:6264
pm_location_t operator_loc
MultiWriteNode::operator_loc.
Definition ast.h:6294
PM_NODE_ALIGNAS struct pm_node * value
MultiWriteNode::value.
Definition ast.h:6304
pm_location_t lparen_loc
MultiWriteNode::lparen_loc.
Definition ast.h:6274
struct pm_node_list lefts
MultiWriteNode::lefts.
Definition ast.h:6234
pm_node_t base
The embedded base node.
Definition ast.h:6219
NextNode.
Definition ast.h:6319
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
NextNode::arguments.
Definition ast.h:6326
pm_node_t base
The embedded base node.
Definition ast.h:6321
pm_location_t keyword_loc
NextNode::keyword_loc.
Definition ast.h:6331
NilNode.
Definition ast.h:6346
pm_node_t base
The embedded base node.
Definition ast.h:6348
NoBlockParameterNode.
Definition ast.h:6364
pm_location_t keyword_loc
NoBlockParameterNode::keyword_loc.
Definition ast.h:6376
pm_node_t base
The embedded base node.
Definition ast.h:6366
pm_location_t operator_loc
NoBlockParameterNode::operator_loc.
Definition ast.h:6371
NoKeywordsParameterNode.
Definition ast.h:6392
pm_location_t keyword_loc
NoKeywordsParameterNode::keyword_loc.
Definition ast.h:6404
pm_location_t operator_loc
NoKeywordsParameterNode::operator_loc.
Definition ast.h:6399
pm_node_t base
The embedded base node.
Definition ast.h:6394
A list of nodes in the source, most often used for lists of children.
Definition ast.h:597
uint32_t size
The number of nodes in the list.
Definition ast.h:603
struct pm_node ** nodes
The nodes in the list.
Definition ast.h:606
This is the base structure that represents a node in the syntax tree.
Definition ast.h:1096
pm_node_type_t type
This represents the type of the node.
Definition ast.h:1101
uint32_t node_id
The unique identifier for this node, which is deterministic based on the source.
Definition ast.h:1115
pm_node_flags_t flags
This represents any flags on the node.
Definition ast.h:1107
pm_location_t location
This is the location of the node in the source.
Definition ast.h:1121
NumberedParametersNode.
Definition ast.h:6419
pm_node_t base
The embedded base node.
Definition ast.h:6421
uint8_t maximum
NumberedParametersNode::maximum.
Definition ast.h:6426
NumberedReferenceReadNode.
Definition ast.h:6441
pm_node_t base
The embedded base node.
Definition ast.h:6443
uint32_t number
NumberedReferenceReadNode::number.
Definition ast.h:6456
OptionalKeywordParameterNode.
Definition ast.h:6475
pm_node_t base
The embedded base node.
Definition ast.h:6477
pm_constant_id_t name
OptionalKeywordParameterNode::name.
Definition ast.h:6482
PM_NODE_ALIGNAS struct pm_node * value
OptionalKeywordParameterNode::value.
Definition ast.h:6492
pm_location_t name_loc
OptionalKeywordParameterNode::name_loc.
Definition ast.h:6487
OptionalParameterNode.
Definition ast.h:6511
pm_location_t name_loc
OptionalParameterNode::name_loc.
Definition ast.h:6523
pm_constant_id_t name
OptionalParameterNode::name.
Definition ast.h:6518
pm_node_t base
The embedded base node.
Definition ast.h:6513
pm_location_t operator_loc
OptionalParameterNode::operator_loc.
Definition ast.h:6528
PM_NODE_ALIGNAS struct pm_node * value
OptionalParameterNode::value.
Definition ast.h:6533
OrNode.
Definition ast.h:6548
PM_NODE_ALIGNAS struct pm_node * right
OrNode::right.
Definition ast.h:6576
pm_node_t base
The embedded base node.
Definition ast.h:6550
PM_NODE_ALIGNAS struct pm_node * left
OrNode::left.
Definition ast.h:6563
pm_location_t operator_loc
OrNode::operator_loc.
Definition ast.h:6586
ParametersNode.
Definition ast.h:6602
PM_NODE_ALIGNAS struct pm_node * block
ParametersNode::block.
Definition ast.h:6639
struct pm_node_list requireds
ParametersNode::requireds.
Definition ast.h:6609
struct pm_node_list optionals
ParametersNode::optionals.
Definition ast.h:6614
struct pm_node_list posts
ParametersNode::posts.
Definition ast.h:6624
pm_node_t base
The embedded base node.
Definition ast.h:6604
PM_NODE_ALIGNAS struct pm_node * rest
ParametersNode::rest.
Definition ast.h:6619
struct pm_node_list keywords
ParametersNode::keywords.
Definition ast.h:6629
PM_NODE_ALIGNAS struct pm_node * keyword_rest
ParametersNode::keyword_rest.
Definition ast.h:6634
ParenthesesNode.
Definition ast.h:6657
pm_location_t closing_loc
ParenthesesNode::closing_loc.
Definition ast.h:6674
pm_node_t base
The embedded base node.
Definition ast.h:6659
pm_location_t opening_loc
ParenthesesNode::opening_loc.
Definition ast.h:6669
PM_NODE_ALIGNAS struct pm_node * body
ParenthesesNode::body.
Definition ast.h:6664
PinnedExpressionNode.
Definition ast.h:6689
pm_node_t base
The embedded base node.
Definition ast.h:6691
pm_location_t rparen_loc
PinnedExpressionNode::rparen_loc.
Definition ast.h:6731
pm_location_t lparen_loc
PinnedExpressionNode::lparen_loc.
Definition ast.h:6721
PM_NODE_ALIGNAS struct pm_node * expression
PinnedExpressionNode::expression.
Definition ast.h:6701
pm_location_t operator_loc
PinnedExpressionNode::operator_loc.
Definition ast.h:6711
PinnedVariableNode.
Definition ast.h:6746
pm_node_t base
The embedded base node.
Definition ast.h:6748
PM_NODE_ALIGNAS struct pm_node * variable
PinnedVariableNode::variable.
Definition ast.h:6758
pm_location_t operator_loc
PinnedVariableNode::operator_loc.
Definition ast.h:6768
PostExecutionNode.
Definition ast.h:6783
pm_location_t closing_loc
PostExecutionNode::closing_loc.
Definition ast.h:6805
pm_node_t base
The embedded base node.
Definition ast.h:6785
pm_location_t opening_loc
PostExecutionNode::opening_loc.
Definition ast.h:6800
pm_location_t keyword_loc
PostExecutionNode::keyword_loc.
Definition ast.h:6795
PM_NODE_ALIGNAS struct pm_statements_node * statements
PostExecutionNode::statements.
Definition ast.h:6790
PreExecutionNode.
Definition ast.h:6820
pm_location_t closing_loc
PreExecutionNode::closing_loc.
Definition ast.h:6842
pm_location_t opening_loc
PreExecutionNode::opening_loc.
Definition ast.h:6837
PM_NODE_ALIGNAS struct pm_statements_node * statements
PreExecutionNode::statements.
Definition ast.h:6827
pm_node_t base
The embedded base node.
Definition ast.h:6822
pm_location_t keyword_loc
PreExecutionNode::keyword_loc.
Definition ast.h:6832
ProgramNode.
Definition ast.h:6854
pm_node_t base
The embedded base node.
Definition ast.h:6856
PM_NODE_ALIGNAS struct pm_statements_node * statements
ProgramNode::statements.
Definition ast.h:6866
pm_constant_id_list_t locals
ProgramNode::locals.
Definition ast.h:6861
RangeNode.
Definition ast.h:6887
pm_location_t operator_loc
RangeNode::operator_loc.
Definition ast.h:6923
pm_node_t base
The embedded base node.
Definition ast.h:6889
PM_NODE_ALIGNAS struct pm_node * right
RangeNode::right.
Definition ast.h:6916
PM_NODE_ALIGNAS struct pm_node * left
RangeNode::left.
Definition ast.h:6902
RationalNode.
Definition ast.h:6944
pm_node_t base
The embedded base node.
Definition ast.h:6946
pm_integer_t denominator
RationalNode::denominator.
Definition ast.h:6964
pm_integer_t numerator
RationalNode::numerator.
Definition ast.h:6955
RedoNode.
Definition ast.h:6979
pm_node_t base
The embedded base node.
Definition ast.h:6981
RegularExpressionNode.
Definition ast.h:7009
pm_location_t closing_loc
RegularExpressionNode::closing_loc.
Definition ast.h:7026
pm_node_t base
The embedded base node.
Definition ast.h:7011
pm_string_t unescaped
RegularExpressionNode::unescaped.
Definition ast.h:7031
pm_location_t opening_loc
RegularExpressionNode::opening_loc.
Definition ast.h:7016
pm_location_t content_loc
RegularExpressionNode::content_loc.
Definition ast.h:7021
RequiredKeywordParameterNode.
Definition ast.h:7050
pm_location_t name_loc
RequiredKeywordParameterNode::name_loc.
Definition ast.h:7062
pm_node_t base
The embedded base node.
Definition ast.h:7052
pm_constant_id_t name
RequiredKeywordParameterNode::name.
Definition ast.h:7057
RequiredParameterNode.
Definition ast.h:7081
pm_constant_id_t name
RequiredParameterNode::name.
Definition ast.h:7088
pm_node_t base
The embedded base node.
Definition ast.h:7083
RescueModifierNode.
Definition ast.h:7103
PM_NODE_ALIGNAS struct pm_node * expression
RescueModifierNode::expression.
Definition ast.h:7110
pm_node_t base
The embedded base node.
Definition ast.h:7105
pm_location_t keyword_loc
RescueModifierNode::keyword_loc.
Definition ast.h:7115
PM_NODE_ALIGNAS struct pm_node * rescue_expression
RescueModifierNode::rescue_expression.
Definition ast.h:7120
RescueNode.
Definition ast.h:7140
PM_NODE_ALIGNAS struct pm_statements_node * statements
RescueNode::statements.
Definition ast.h:7172
PM_NODE_ALIGNAS struct pm_rescue_node * subsequent
RescueNode::subsequent.
Definition ast.h:7177
pm_location_t keyword_loc
RescueNode::keyword_loc.
Definition ast.h:7147
PM_NODE_ALIGNAS struct pm_node * reference
RescueNode::reference.
Definition ast.h:7162
pm_location_t then_keyword_loc
RescueNode::then_keyword_loc.
Definition ast.h:7167
pm_location_t operator_loc
RescueNode::operator_loc.
Definition ast.h:7157
struct pm_node_list exceptions
RescueNode::exceptions.
Definition ast.h:7152
pm_node_t base
The embedded base node.
Definition ast.h:7142
RestParameterNode.
Definition ast.h:7196
pm_constant_id_t name
RestParameterNode::name.
Definition ast.h:7203
pm_location_t name_loc
RestParameterNode::name_loc.
Definition ast.h:7208
pm_node_t base
The embedded base node.
Definition ast.h:7198
pm_location_t operator_loc
RestParameterNode::operator_loc.
Definition ast.h:7213
RetryNode.
Definition ast.h:7228
pm_node_t base
The embedded base node.
Definition ast.h:7230
ReturnNode.
Definition ast.h:7245
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
ReturnNode::arguments.
Definition ast.h:7257
pm_location_t keyword_loc
ReturnNode::keyword_loc.
Definition ast.h:7252
pm_node_t base
The embedded base node.
Definition ast.h:7247
SelfNode.
Definition ast.h:7272
pm_node_t base
The embedded base node.
Definition ast.h:7274
ShareableConstantNode.
Definition ast.h:7295
PM_NODE_ALIGNAS struct pm_node * write
ShareableConstantNode::write.
Definition ast.h:7304
pm_node_t base
The embedded base node.
Definition ast.h:7297
SingletonClassNode.
Definition ast.h:7319
PM_NODE_ALIGNAS struct pm_node * body
SingletonClassNode::body.
Definition ast.h:7346
pm_node_t base
The embedded base node.
Definition ast.h:7321
pm_constant_id_list_t locals
SingletonClassNode::locals.
Definition ast.h:7326
pm_location_t operator_loc
SingletonClassNode::operator_loc.
Definition ast.h:7336
PM_NODE_ALIGNAS struct pm_node * expression
SingletonClassNode::expression.
Definition ast.h:7341
pm_location_t end_keyword_loc
SingletonClassNode::end_keyword_loc.
Definition ast.h:7351
pm_location_t class_keyword_loc
SingletonClassNode::class_keyword_loc.
Definition ast.h:7331
SourceEncodingNode.
Definition ast.h:7366
pm_node_t base
The embedded base node.
Definition ast.h:7368
SourceFileNode.
Definition ast.h:7389
pm_string_t filepath
SourceFileNode::filepath.
Definition ast.h:7398
pm_node_t base
The embedded base node.
Definition ast.h:7391
SourceLineNode.
Definition ast.h:7413
pm_node_t base
The embedded base node.
Definition ast.h:7415
SplatNode.
Definition ast.h:7430
pm_node_t base
The embedded base node.
Definition ast.h:7432
PM_NODE_ALIGNAS struct pm_node * expression
SplatNode::expression.
Definition ast.h:7442
pm_location_t operator_loc
SplatNode::operator_loc.
Definition ast.h:7437
StatementsNode.
Definition ast.h:7460
struct pm_node_list body
StatementsNode::body.
Definition ast.h:7467
pm_node_t base
The embedded base node.
Definition ast.h:7462
StringNode.
Definition ast.h:7494
pm_node_t base
The embedded base node.
Definition ast.h:7496
pm_string_t unescaped
StringNode::unescaped.
Definition ast.h:7516
pm_location_t content_loc
StringNode::content_loc.
Definition ast.h:7506
pm_location_t closing_loc
StringNode::closing_loc.
Definition ast.h:7511
pm_location_t opening_loc
StringNode::opening_loc.
Definition ast.h:7501
A view of a sequence of bytes.
Definition stringy.h:23
SuperNode.
Definition ast.h:7536
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
SuperNode::arguments.
Definition ast.h:7555
pm_location_t lparen_loc
SuperNode::lparen_loc.
Definition ast.h:7548
pm_node_t base
The embedded base node.
Definition ast.h:7538
pm_location_t keyword_loc
SuperNode::keyword_loc.
Definition ast.h:7543
pm_location_t rparen_loc
SuperNode::rparen_loc.
Definition ast.h:7560
PM_NODE_ALIGNAS struct pm_node * block
SuperNode::block.
Definition ast.h:7565
SymbolNode.
Definition ast.h:7588
pm_location_t opening_loc
SymbolNode::opening_loc.
Definition ast.h:7595
pm_location_t content_loc
SymbolNode::content_loc.
Definition ast.h:7600
pm_location_t closing_loc
SymbolNode::closing_loc.
Definition ast.h:7605
pm_string_t unescaped
SymbolNode::unescaped.
Definition ast.h:7610
pm_node_t base
The embedded base node.
Definition ast.h:7590
This struct represents a token in the Ruby source.
Definition ast.h:556
const uint8_t * end
A pointer to the end location of the token in the source.
Definition ast.h:564
const uint8_t * start
A pointer to the start location of the token in the source.
Definition ast.h:561
pm_token_type_t type
The type of the token.
Definition ast.h:558
TrueNode.
Definition ast.h:7625
pm_node_t base
The embedded base node.
Definition ast.h:7627
UndefNode.
Definition ast.h:7642
pm_node_t base
The embedded base node.
Definition ast.h:7644
pm_location_t keyword_loc
UndefNode::keyword_loc.
Definition ast.h:7654
struct pm_node_list names
UndefNode::names.
Definition ast.h:7649
UnlessNode.
Definition ast.h:7672
pm_location_t then_keyword_loc
UnlessNode::then_keyword_loc.
Definition ast.h:7710
PM_NODE_ALIGNAS struct pm_node * predicate
UnlessNode::predicate.
Definition ast.h:7700
PM_NODE_ALIGNAS struct pm_statements_node * statements
UnlessNode::statements.
Definition ast.h:7721
pm_location_t end_keyword_loc
UnlessNode::end_keyword_loc.
Definition ast.h:7741
PM_NODE_ALIGNAS struct pm_else_node * else_clause
UnlessNode::else_clause.
Definition ast.h:7731
pm_node_t base
The embedded base node.
Definition ast.h:7674
pm_location_t unless_keyword_loc
UnlessNode::unless_keyword_loc.
Definition ast.h:7687
UntilNode.
Definition ast.h:7762
pm_location_t end_keyword_loc
UntilNode::end_keyword_loc.
Definition ast.h:7779
pm_location_t until_keyword_loc
UntilNode::until_keyword_loc.
Definition ast.h:7769
pm_node_t base
The embedded base node.
Definition ast.h:7764
PM_NODE_ALIGNAS struct pm_statements_node * statements
UntilNode::statements.
Definition ast.h:7789
pm_location_t do_keyword_loc
UntilNode::do_keyword_loc.
Definition ast.h:7774
PM_NODE_ALIGNAS struct pm_node * predicate
UntilNode::predicate.
Definition ast.h:7784
WhenNode.
Definition ast.h:7806
pm_location_t when_keyword_loc
WhenNode::when_keyword_loc.
Definition ast.h:7813
pm_node_t base
The embedded base node.
Definition ast.h:7808
pm_location_t then_keyword_loc
WhenNode::then_keyword_loc.
Definition ast.h:7823
PM_NODE_ALIGNAS struct pm_statements_node * statements
WhenNode::statements.
Definition ast.h:7828
struct pm_node_list conditions
WhenNode::conditions.
Definition ast.h:7818
WhileNode.
Definition ast.h:7849
PM_NODE_ALIGNAS struct pm_statements_node * statements
WhileNode::statements.
Definition ast.h:7876
pm_location_t while_keyword_loc
WhileNode::while_keyword_loc.
Definition ast.h:7856
pm_location_t end_keyword_loc
WhileNode::end_keyword_loc.
Definition ast.h:7866
pm_node_t base
The embedded base node.
Definition ast.h:7851
pm_location_t do_keyword_loc
WhileNode::do_keyword_loc.
Definition ast.h:7861
PM_NODE_ALIGNAS struct pm_node * predicate
WhileNode::predicate.
Definition ast.h:7871
XStringNode.
Definition ast.h:7895
pm_location_t closing_loc
XStringNode::closing_loc.
Definition ast.h:7912
pm_location_t opening_loc
XStringNode::opening_loc.
Definition ast.h:7902
pm_location_t content_loc
XStringNode::content_loc.
Definition ast.h:7907
pm_string_t unescaped
XStringNode::unescaped.
Definition ast.h:7917
pm_node_t base
The embedded base node.
Definition ast.h:7897
YieldNode.
Definition ast.h:7932
pm_location_t keyword_loc
YieldNode::keyword_loc.
Definition ast.h:7939
pm_location_t lparen_loc
YieldNode::lparen_loc.
Definition ast.h:7944
pm_node_t base
The embedded base node.
Definition ast.h:7934
pm_location_t rparen_loc
YieldNode::rparen_loc.
Definition ast.h:7954
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
YieldNode::arguments.
Definition ast.h:7949