Prism Ruby parser
Loading...
Searching...
No Matches
ast.h
Go to the documentation of this file.
1/* :markup: markdown */
2
3/*----------------------------------------------------------------------------*/
4/* This file is generated by the templates/template.rb script and should not */
5/* be modified manually. See */
6/* templates/include/prism/ast.h.erb */
7/* if you are looking to modify the */
8/* template */
9/*----------------------------------------------------------------------------*/
10
18#ifndef PRISM_AST_H
19#define PRISM_AST_H
20
21#include "prism/defines.h"
25
26#include <assert.h>
27#include <stddef.h>
28#include <stdint.h>
29
33typedef enum pm_token_type {
36
39
42
45
48
51
54
57
60
63
66
69
72
75
78
81
84
87
90
93
96
99
102
105
108
111
114
117
120
123
126
129
132
135
138
141
144
147
150
153
156
159
162
165
168
171
174
177
180
183
186
189
192
195
198
201
204
207
210
213
216
219
222
225
228
231
234
237
240
243
246
249
252
255
258
261
264
267
270
273
276
279
282
285
288
291
294
297
300
303
306
309
312
315
318
321
324
327
330
333
336
339
342
345
348
351
354
357
360
363
366
369
372
375
378
381
384
387
390
393
396
399
402
405
408
411
414
417
420
423
426
429
432
435
438
441
444
447
450
453
456
459
462
465
468
471
474
477
480
483
486
489
492
495
498
501
504
507
510
513
516
519
522
525
529
534typedef struct {
537
539 const uint8_t *start;
540
542 const uint8_t *end;
543} pm_token_t;
544
549typedef struct {
551 const uint8_t *start;
552
554 const uint8_t *end;
556
557struct pm_node;
558
562typedef struct pm_node_list {
564 size_t size;
565
567 size_t capacity;
568
570 struct pm_node **nodes;
572
579
582
585
588
591
594
597
600
603
606
609
612
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
1033
1038typedef uint16_t pm_node_type_t;
1039
1044typedef uint16_t pm_node_flags_t;
1045
1050static const pm_node_flags_t PM_NODE_FLAG_NEWLINE = 0x1;
1051static const pm_node_flags_t PM_NODE_FLAG_STATIC_LITERAL = 0x2;
1052
1057#define PM_NODE_TYPE(node) ((enum pm_node_type) (node)->type)
1058
1062#define PM_NODE_TYPE_P(node, type) (PM_NODE_TYPE(node) == (type))
1063
1067#define PM_NODE_FLAG_P(node, flag) ((((pm_node_t *)(node))->flags & (flag)) != 0)
1068
1098
1146
1206
1254
1308
1343
1395
1491
1548
1586
1615
1695
1733
1764
1836
1890
1968
2006
2100
2240
2344
2438
2510
2558
2628
2698
2786
2844
2887
2925
2954
2977
3039
3077
3120
3158
3191
3258
3296
3329
3367
3424
3453
3476
3538
3617
3655
3688
3721
3749
3786
3804
3906
3942
3967
4057
4077
4096
4119
4157
4200
4238
4267
4290
4352
4403
4495
4607
4630
4659
4686
4724
4788
4857
4921
4978
5016
5059
5097
5126
5149
5211
5242
5288
5334
5371
5404
5437
5455
5473
5499
5536
5584
5627
5675
5718
5764
5795
5874
5925
5958
6045
6073
6088
6136
6224
6327
6355
6373
6402
6425
6456
6493
6535
6589
6643
6679
6737
6775
6813
6851
6876
6934
6976
6994
7045
7077
7104
7137
7195
7232
7250
7278
7296
7327
7375
7393
7424
7442
7470
7493
7543
7589
7635
7653
7681
7769
7818
7858
7907
7949
7987
8009
8016
8017 PM_ARRAY_NODE_FLAGS_LAST,
8019
8038
8051
8070
8083
8093
8097typedef enum pm_loop_flags {
8100
8101 PM_LOOP_FLAGS_LAST,
8103
8110
8111 PM_PARAMETER_FLAGS_LAST,
8113
8123
8127typedef enum pm_range_flags {
8130
8131 PM_RANGE_FLAGS_LAST,
8133
8173
8189
8208
8224
8231#define PRISM_SERIALIZE_ONLY_SEMANTICS_FIELDS 0
8232
8233#endif
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.
struct pm_assoc_node pm_assoc_node_t
AssocNode.
struct pm_undef_node pm_undef_node_t
UndefNode.
struct pm_class_variable_and_write_node pm_class_variable_and_write_node_t
ClassVariableAndWriteNode.
struct pm_index_and_write_node pm_index_and_write_node_t
IndexAndWriteNode.
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.
struct pm_missing_node pm_missing_node_t
MissingNode.
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.
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.
struct pm_class_variable_write_node pm_class_variable_write_node_t
ClassVariableWriteNode.
struct pm_interpolated_string_node pm_interpolated_string_node_t
InterpolatedStringNode.
struct pm_class_variable_or_write_node pm_class_variable_or_write_node_t
ClassVariableOrWriteNode.
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.
struct pm_shareable_constant_node pm_shareable_constant_node_t
ShareableConstantNode.
struct pm_constant_and_write_node pm_constant_and_write_node_t
ConstantAndWriteNode.
pm_interpolated_string_node_flags
Flags for interpolated string nodes that indicated mutability if they are also marked as literals.
Definition ast.h:8074
@ 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:8079
@ 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:8076
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.
pm_range_flags
Flags for range and flip-flop nodes.
Definition ast.h:8127
@ PM_RANGE_FLAGS_EXCLUDE_END
... operator
Definition ast.h:8129
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.
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:576
@ PM_DEFINED_NODE
DefinedNode.
Definition ast.h:713
@ PM_PRE_EXECUTION_NODE
PreExecutionNode.
Definition ast.h:935
@ PM_RETRY_NODE
RetryNode.
Definition ast.h:968
@ PM_REDO_NODE
RedoNode.
Definition ast.h:947
@ PM_CONSTANT_PATH_WRITE_NODE
ConstantPathWriteNode.
Definition ast.h:698
@ PM_INDEX_AND_WRITE_NODE
IndexAndWriteNode.
Definition ast.h:791
@ PM_SOURCE_LINE_NODE
SourceLineNode.
Definition ast.h:989
@ PM_UNLESS_NODE
UnlessNode.
Definition ast.h:1013
@ PM_EMBEDDED_VARIABLE_NODE
EmbeddedVariableNode.
Definition ast.h:722
@ PM_GLOBAL_VARIABLE_OPERATOR_WRITE_NODE
GlobalVariableOperatorWriteNode.
Definition ast.h:755
@ PM_CALL_NODE
CallNode.
Definition ast.h:632
@ PM_NIL_NODE
NilNode.
Definition ast.h:899
@ PM_GLOBAL_VARIABLE_READ_NODE
GlobalVariableReadNode.
Definition ast.h:761
@ PM_RATIONAL_NODE
RationalNode.
Definition ast.h:944
@ PM_YIELD_NODE
YieldNode.
Definition ast.h:1028
@ PM_LOCAL_VARIABLE_AND_WRITE_NODE
LocalVariableAndWriteNode.
Definition ast.h:854
@ PM_CONSTANT_AND_WRITE_NODE
ConstantAndWriteNode.
Definition ast.h:674
@ PM_CLASS_NODE
ClassNode.
Definition ast.h:653
@ PM_FIND_PATTERN_NODE
FindPatternNode.
Definition ast.h:731
@ PM_CALL_OPERATOR_WRITE_NODE
CallOperatorWriteNode.
Definition ast.h:635
@ PM_MATCH_WRITE_NODE
MatchWriteNode.
Definition ast.h:881
@ PM_ARRAY_NODE
ArrayNode.
Definition ast.h:593
@ PM_CONSTANT_PATH_TARGET_NODE
ConstantPathTargetNode.
Definition ast.h:695
@ PM_PROGRAM_NODE
ProgramNode.
Definition ast.h:938
@ PM_OR_NODE
OrNode.
Definition ast.h:917
@ PM_MULTI_WRITE_NODE
MultiWriteNode.
Definition ast.h:893
@ PM_IF_NODE
IfNode.
Definition ast.h:776
@ PM_IMPLICIT_NODE
ImplicitNode.
Definition ast.h:782
@ PM_ARGUMENTS_NODE
ArgumentsNode.
Definition ast.h:590
@ PM_FORWARDING_SUPER_NODE
ForwardingSuperNode.
Definition ast.h:749
@ PM_WHILE_NODE
WhileNode.
Definition ast.h:1022
@ PM_INTERPOLATED_STRING_NODE
InterpolatedStringNode.
Definition ast.h:830
@ PM_FALSE_NODE
FalseNode.
Definition ast.h:728
@ PM_FORWARDING_PARAMETER_NODE
ForwardingParameterNode.
Definition ast.h:746
@ PM_BLOCK_LOCAL_VARIABLE_NODE
BlockLocalVariableNode.
Definition ast.h:614
@ PM_HASH_NODE
HashNode.
Definition ast.h:770
@ PM_UNTIL_NODE
UntilNode.
Definition ast.h:1016
@ PM_MATCH_PREDICATE_NODE
MatchPredicateNode.
Definition ast.h:875
@ PM_X_STRING_NODE
XStringNode.
Definition ast.h:1025
@ PM_LOCAL_VARIABLE_OPERATOR_WRITE_NODE
LocalVariableOperatorWriteNode.
Definition ast.h:857
@ PM_LOCAL_VARIABLE_OR_WRITE_NODE
LocalVariableOrWriteNode.
Definition ast.h:860
@ PM_INSTANCE_VARIABLE_AND_WRITE_NODE
InstanceVariableAndWriteNode.
Definition ast.h:803
@ PM_GLOBAL_VARIABLE_TARGET_NODE
GlobalVariableTargetNode.
Definition ast.h:764
@ PM_AND_NODE
AndNode.
Definition ast.h:587
@ PM_CONSTANT_TARGET_NODE
ConstantTargetNode.
Definition ast.h:704
@ PM_IT_LOCAL_VARIABLE_READ_NODE
ItLocalVariableReadNode.
Definition ast.h:839
@ PM_CONSTANT_PATH_AND_WRITE_NODE
ConstantPathAndWriteNode.
Definition ast.h:683
@ PM_IN_NODE
InNode.
Definition ast.h:788
@ PM_BLOCK_PARAMETER_NODE
BlockParameterNode.
Definition ast.h:620
@ PM_CAPTURE_PATTERN_NODE
CapturePatternNode.
Definition ast.h:644
@ PM_SOURCE_FILE_NODE
SourceFileNode.
Definition ast.h:986
@ PM_NO_KEYWORDS_PARAMETER_NODE
NoKeywordsParameterNode.
Definition ast.h:902
@ PM_CONSTANT_PATH_OPERATOR_WRITE_NODE
ConstantPathOperatorWriteNode.
Definition ast.h:689
@ PM_MULTI_TARGET_NODE
MultiTargetNode.
Definition ast.h:890
@ PM_SPLAT_NODE
SplatNode.
Definition ast.h:992
@ PM_LAMBDA_NODE
LambdaNode.
Definition ast.h:851
@ PM_CLASS_VARIABLE_READ_NODE
ClassVariableReadNode.
Definition ast.h:665
@ PM_REQUIRED_KEYWORD_PARAMETER_NODE
RequiredKeywordParameterNode.
Definition ast.h:953
@ PM_CALL_TARGET_NODE
CallTargetNode.
Definition ast.h:641
@ PM_ELSE_NODE
ElseNode.
Definition ast.h:716
@ PM_INTERPOLATED_MATCH_LAST_LINE_NODE
InterpolatedMatchLastLineNode.
Definition ast.h:824
@ PM_WHEN_NODE
WhenNode.
Definition ast.h:1019
@ PM_NUMBERED_PARAMETERS_NODE
NumberedParametersNode.
Definition ast.h:905
@ PM_SYMBOL_NODE
SymbolNode.
Definition ast.h:1004
@ PM_RESCUE_MODIFIER_NODE
RescueModifierNode.
Definition ast.h:959
@ PM_ALIAS_METHOD_NODE
AliasMethodNode.
Definition ast.h:581
@ PM_MATCH_REQUIRED_NODE
MatchRequiredNode.
Definition ast.h:878
@ PM_FORWARDING_ARGUMENTS_NODE
ForwardingArgumentsNode.
Definition ast.h:743
@ PM_BACK_REFERENCE_READ_NODE
BackReferenceReadNode.
Definition ast.h:605
@ PM_SCOPE_NODE
A special kind of node used for compilation.
Definition ast.h:1031
@ PM_BLOCK_ARGUMENT_NODE
BlockArgumentNode.
Definition ast.h:611
@ PM_MISSING_NODE
MissingNode.
Definition ast.h:884
@ PM_SELF_NODE
SelfNode.
Definition ast.h:974
@ PM_IMPLICIT_REST_NODE
ImplicitRestNode.
Definition ast.h:785
@ PM_TRUE_NODE
TrueNode.
Definition ast.h:1007
@ PM_ASSOC_SPLAT_NODE
AssocSplatNode.
Definition ast.h:602
@ PM_CLASS_VARIABLE_AND_WRITE_NODE
ClassVariableAndWriteNode.
Definition ast.h:656
@ PM_RANGE_NODE
RangeNode.
Definition ast.h:941
@ PM_INSTANCE_VARIABLE_OPERATOR_WRITE_NODE
InstanceVariableOperatorWriteNode.
Definition ast.h:806
@ PM_LOCAL_VARIABLE_READ_NODE
LocalVariableReadNode.
Definition ast.h:863
@ PM_SHAREABLE_CONSTANT_NODE
ShareableConstantNode.
Definition ast.h:977
@ PM_NEXT_NODE
NextNode.
Definition ast.h:896
@ PM_INSTANCE_VARIABLE_OR_WRITE_NODE
InstanceVariableOrWriteNode.
Definition ast.h:809
@ PM_REGULAR_EXPRESSION_NODE
RegularExpressionNode.
Definition ast.h:950
@ PM_CLASS_VARIABLE_OR_WRITE_NODE
ClassVariableOrWriteNode.
Definition ast.h:662
@ PM_BLOCK_PARAMETERS_NODE
BlockParametersNode.
Definition ast.h:623
@ PM_CONSTANT_WRITE_NODE
ConstantWriteNode.
Definition ast.h:707
@ PM_HASH_PATTERN_NODE
HashPatternNode.
Definition ast.h:773
@ PM_INDEX_OPERATOR_WRITE_NODE
IndexOperatorWriteNode.
Definition ast.h:794
@ PM_UNDEF_NODE
UndefNode.
Definition ast.h:1010
@ PM_ALTERNATION_PATTERN_NODE
AlternationPatternNode.
Definition ast.h:584
@ PM_ENSURE_NODE
EnsureNode.
Definition ast.h:725
@ PM_LOCAL_VARIABLE_WRITE_NODE
LocalVariableWriteNode.
Definition ast.h:869
@ PM_SINGLETON_CLASS_NODE
SingletonClassNode.
Definition ast.h:980
@ PM_KEYWORD_HASH_NODE
KeywordHashNode.
Definition ast.h:845
@ PM_PARENTHESES_NODE
ParenthesesNode.
Definition ast.h:923
@ PM_FOR_NODE
ForNode.
Definition ast.h:740
@ PM_CLASS_VARIABLE_WRITE_NODE
ClassVariableWriteNode.
Definition ast.h:671
@ PM_POST_EXECUTION_NODE
PostExecutionNode.
Definition ast.h:932
@ PM_CONSTANT_OPERATOR_WRITE_NODE
ConstantOperatorWriteNode.
Definition ast.h:677
@ PM_RETURN_NODE
ReturnNode.
Definition ast.h:971
@ PM_MODULE_NODE
ModuleNode.
Definition ast.h:887
@ PM_ARRAY_PATTERN_NODE
ArrayPatternNode.
Definition ast.h:596
@ PM_SUPER_NODE
SuperNode.
Definition ast.h:1001
@ PM_MATCH_LAST_LINE_NODE
MatchLastLineNode.
Definition ast.h:872
@ PM_CONSTANT_PATH_NODE
ConstantPathNode.
Definition ast.h:686
@ PM_INTERPOLATED_SYMBOL_NODE
InterpolatedSymbolNode.
Definition ast.h:833
@ PM_CALL_AND_WRITE_NODE
CallAndWriteNode.
Definition ast.h:629
@ PM_OPTIONAL_KEYWORD_PARAMETER_NODE
OptionalKeywordParameterNode.
Definition ast.h:911
@ PM_CLASS_VARIABLE_TARGET_NODE
ClassVariableTargetNode.
Definition ast.h:668
@ PM_CASE_MATCH_NODE
CaseMatchNode.
Definition ast.h:647
@ PM_BREAK_NODE
BreakNode.
Definition ast.h:626
@ PM_CALL_OR_WRITE_NODE
CallOrWriteNode.
Definition ast.h:638
@ PM_IMAGINARY_NODE
ImaginaryNode.
Definition ast.h:779
@ PM_DEF_NODE
DefNode.
Definition ast.h:710
@ PM_CONSTANT_READ_NODE
ConstantReadNode.
Definition ast.h:701
@ PM_GLOBAL_VARIABLE_WRITE_NODE
GlobalVariableWriteNode.
Definition ast.h:767
@ PM_SOURCE_ENCODING_NODE
SourceEncodingNode.
Definition ast.h:983
@ PM_BEGIN_NODE
BeginNode.
Definition ast.h:608
@ PM_INTERPOLATED_X_STRING_NODE
InterpolatedXStringNode.
Definition ast.h:836
@ PM_INSTANCE_VARIABLE_READ_NODE
InstanceVariableReadNode.
Definition ast.h:812
@ PM_FLIP_FLOP_NODE
FlipFlopNode.
Definition ast.h:734
@ PM_PINNED_VARIABLE_NODE
PinnedVariableNode.
Definition ast.h:929
@ PM_REQUIRED_PARAMETER_NODE
RequiredParameterNode.
Definition ast.h:956
@ PM_INSTANCE_VARIABLE_WRITE_NODE
InstanceVariableWriteNode.
Definition ast.h:818
@ PM_INSTANCE_VARIABLE_TARGET_NODE
InstanceVariableTargetNode.
Definition ast.h:815
@ PM_GLOBAL_VARIABLE_AND_WRITE_NODE
GlobalVariableAndWriteNode.
Definition ast.h:752
@ PM_CASE_NODE
CaseNode.
Definition ast.h:650
@ PM_RESCUE_NODE
RescueNode.
Definition ast.h:962
@ PM_FLOAT_NODE
FloatNode.
Definition ast.h:737
@ PM_ASSOC_NODE
AssocNode.
Definition ast.h:599
@ PM_IT_PARAMETERS_NODE
ItParametersNode.
Definition ast.h:842
@ PM_INTEGER_NODE
IntegerNode.
Definition ast.h:821
@ PM_LOCAL_VARIABLE_TARGET_NODE
LocalVariableTargetNode.
Definition ast.h:866
@ PM_STRING_NODE
StringNode.
Definition ast.h:998
@ PM_INDEX_OR_WRITE_NODE
IndexOrWriteNode.
Definition ast.h:797
@ PM_ALIAS_GLOBAL_VARIABLE_NODE
AliasGlobalVariableNode.
Definition ast.h:578
@ PM_PARAMETERS_NODE
ParametersNode.
Definition ast.h:920
@ PM_NUMBERED_REFERENCE_READ_NODE
NumberedReferenceReadNode.
Definition ast.h:908
@ PM_CONSTANT_PATH_OR_WRITE_NODE
ConstantPathOrWriteNode.
Definition ast.h:692
@ PM_GLOBAL_VARIABLE_OR_WRITE_NODE
GlobalVariableOrWriteNode.
Definition ast.h:758
@ PM_CONSTANT_OR_WRITE_NODE
ConstantOrWriteNode.
Definition ast.h:680
@ PM_STATEMENTS_NODE
StatementsNode.
Definition ast.h:995
@ PM_OPTIONAL_PARAMETER_NODE
OptionalParameterNode.
Definition ast.h:914
@ PM_PINNED_EXPRESSION_NODE
PinnedExpressionNode.
Definition ast.h:926
@ PM_BLOCK_NODE
BlockNode.
Definition ast.h:617
@ PM_CLASS_VARIABLE_OPERATOR_WRITE_NODE
ClassVariableOperatorWriteNode.
Definition ast.h:659
@ PM_REST_PARAMETER_NODE
RestParameterNode.
Definition ast.h:965
@ PM_EMBEDDED_STATEMENTS_NODE
EmbeddedStatementsNode.
Definition ast.h:719
@ PM_INTERPOLATED_REGULAR_EXPRESSION_NODE
InterpolatedRegularExpressionNode.
Definition ast.h:827
@ PM_INDEX_TARGET_NODE
IndexTargetNode.
Definition ast.h:800
@ PM_KEYWORD_REST_PARAMETER_NODE
KeywordRestParameterNode.
Definition ast.h:848
struct pm_nil_node pm_nil_node_t
NilNode.
struct pm_begin_node pm_begin_node_t
BeginNode.
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.
struct pm_return_node pm_return_node_t
ReturnNode.
pm_symbol_flags
Flags for symbol nodes.
Definition ast.h:8212
@ PM_SYMBOL_FLAGS_FORCED_UTF8_ENCODING
internal bytes forced the encoding to UTF-8
Definition ast.h:8214
@ PM_SYMBOL_FLAGS_FORCED_US_ASCII_ENCODING
internal bytes forced the encoding to US-ASCII
Definition ast.h:8220
@ PM_SYMBOL_FLAGS_FORCED_BINARY_ENCODING
internal bytes forced the encoding to binary
Definition ast.h:8217
struct pm_it_parameters_node pm_it_parameters_node_t
ItParametersNode.
struct pm_constant_path_node pm_constant_path_node_t
ConstantPathNode.
struct pm_local_variable_write_node pm_local_variable_write_node_t
LocalVariableWriteNode.
pm_string_flags
Flags for string nodes.
Definition ast.h:8193
@ PM_STRING_FLAGS_FROZEN
frozen by virtue of a frozen_string_literal: true comment or --enable-frozen-string-literal
Definition ast.h:8201
@ PM_STRING_FLAGS_FORCED_BINARY_ENCODING
internal bytes forced the encoding to binary
Definition ast.h:8198
@ PM_STRING_FLAGS_MUTABLE
mutable by virtue of a frozen_string_literal: false comment or --disable-frozen-string-literal
Definition ast.h:8204
@ PM_STRING_FLAGS_FORCED_UTF8_ENCODING
internal bytes forced the encoding to UTF-8
Definition ast.h:8195
struct pm_implicit_node pm_implicit_node_t
ImplicitNode.
struct pm_yield_node pm_yield_node_t
YieldNode.
pm_arguments_node_flags
Flags for arguments nodes.
Definition ast.h:7991
@ PM_ARGUMENTS_NODE_FLAGS_CONTAINS_SPLAT
if the arguments contain a splat
Definition ast.h:8002
@ PM_ARGUMENTS_NODE_FLAGS_CONTAINS_FORWARDING
if the arguments contain forwarding
Definition ast.h:7993
@ PM_ARGUMENTS_NODE_FLAGS_CONTAINS_KEYWORDS
if the arguments contain keywords
Definition ast.h:7996
@ PM_ARGUMENTS_NODE_FLAGS_CONTAINS_KEYWORD_SPLAT
if the arguments contain a keyword splat
Definition ast.h:7999
@ PM_ARGUMENTS_NODE_FLAGS_CONTAINS_MULTIPLE_SPLATS
if the arguments contain multiple splats
Definition ast.h:8005
enum pm_symbol_flags pm_symbol_flags_t
Flags for symbol nodes.
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.
struct pm_case_node pm_case_node_t
CaseNode.
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.
struct pm_pre_execution_node pm_pre_execution_node_t
PreExecutionNode.
struct pm_rescue_modifier_node pm_rescue_modifier_node_t
RescueModifierNode.
struct pm_splat_node pm_splat_node_t
SplatNode.
struct pm_match_write_node pm_match_write_node_t
MatchWriteNode.
enum pm_call_node_flags pm_call_node_flags_t
Flags for call nodes.
struct pm_multi_write_node pm_multi_write_node_t
MultiWriteNode.
struct pm_local_variable_operator_write_node pm_local_variable_operator_write_node_t
LocalVariableOperatorWriteNode.
struct pm_block_argument_node pm_block_argument_node_t
BlockArgumentNode.
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.
struct pm_flip_flop_node pm_flip_flop_node_t
FlipFlopNode.
struct pm_required_keyword_parameter_node pm_required_keyword_parameter_node_t
RequiredKeywordParameterNode.
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.
pm_array_node_flags
Flags for array nodes.
Definition ast.h:8013
@ PM_ARRAY_NODE_FLAGS_CONTAINS_SPLAT
if array contains splat nodes
Definition ast.h:8015
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.
struct pm_global_variable_read_node pm_global_variable_read_node_t
GlobalVariableReadNode.
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.
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.
struct pm_block_local_variable_node pm_block_local_variable_node_t
BlockLocalVariableNode.
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:8055
@ PM_INTEGER_BASE_FLAGS_HEXADECIMAL
0x prefix
Definition ast.h:8066
@ PM_INTEGER_BASE_FLAGS_OCTAL
0o or 0 prefix
Definition ast.h:8063
@ PM_INTEGER_BASE_FLAGS_DECIMAL
0d or no prefix
Definition ast.h:8060
@ PM_INTEGER_BASE_FLAGS_BINARY
0b prefix
Definition ast.h:8057
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.
struct pm_class_node pm_class_node_t
ClassNode.
struct pm_pinned_expression_node pm_pinned_expression_node_t
PinnedExpressionNode.
struct pm_constant_operator_write_node pm_constant_operator_write_node_t
ConstantOperatorWriteNode.
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.
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.
struct pm_when_node pm_when_node_t
WhenNode.
enum pm_token_type pm_token_type_t
This enum represents every type of token in the Ruby source.
struct pm_super_node pm_super_node_t
SuperNode.
struct pm_range_node pm_range_node_t
RangeNode.
struct pm_and_node pm_and_node_t
AndNode.
enum pm_arguments_node_flags pm_arguments_node_flags_t
Flags for arguments nodes.
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:8117
@ PM_PARENTHESES_NODE_FLAGS_MULTIPLE_STATEMENTS
parentheses that contain multiple potentially void statements
Definition ast.h:8119
struct pm_rest_parameter_node pm_rest_parameter_node_t
RestParameterNode.
struct pm_assoc_splat_node pm_assoc_splat_node_t
AssocSplatNode.
pm_call_node_flags
Flags for call nodes.
Definition ast.h:8023
@ PM_CALL_NODE_FLAGS_IGNORE_VISIBILITY
a call that ignores method visibility
Definition ast.h:8034
@ PM_CALL_NODE_FLAGS_SAFE_NAVIGATION
&.
Definition ast.h:8025
@ PM_CALL_NODE_FLAGS_ATTRIBUTE_WRITE
a call that is an attribute write, so the value being written should be returned
Definition ast.h:8031
@ PM_CALL_NODE_FLAGS_VARIABLE_CALL
a call that could have been a local variable
Definition ast.h:8028
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.
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:8177
@ PM_SHAREABLE_CONSTANT_NODE_FLAGS_EXPERIMENTAL_EVERYTHING
constant writes that should be modified with shareable constant value experimental everything
Definition ast.h:8182
@ PM_SHAREABLE_CONSTANT_NODE_FLAGS_LITERAL
constant writes that should be modified with shareable constant value literal
Definition ast.h:8179
@ PM_SHAREABLE_CONSTANT_NODE_FLAGS_EXPERIMENTAL_COPY
constant writes that should be modified with shareable constant value experimental copy
Definition ast.h:8185
struct pm_until_node pm_until_node_t
UntilNode.
struct pm_retry_node pm_retry_node_t
RetryNode.
uint16_t pm_node_type_t
This is the type of node embedded in the node struct.
Definition ast.h:1038
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:8087
@ 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:8089
enum pm_keyword_hash_node_flags pm_keyword_hash_node_flags_t
Flags for keyword hash nodes.
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.
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.
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.
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:8137
@ PM_REGULAR_EXPRESSION_FLAGS_FORCED_BINARY_ENCODING
internal bytes forced the encoding to binary
Definition ast.h:8166
@ PM_REGULAR_EXPRESSION_FLAGS_FORCED_US_ASCII_ENCODING
internal bytes forced the encoding to US-ASCII
Definition ast.h:8169
@ PM_REGULAR_EXPRESSION_FLAGS_EUC_JP
e - forces the EUC-JP encoding
Definition ast.h:8151
@ PM_REGULAR_EXPRESSION_FLAGS_IGNORE_CASE
i - ignores the case of characters when matching
Definition ast.h:8139
@ PM_REGULAR_EXPRESSION_FLAGS_FORCED_UTF8_ENCODING
internal bytes forced the encoding to UTF-8
Definition ast.h:8163
@ PM_REGULAR_EXPRESSION_FLAGS_ASCII_8BIT
n - forces the ASCII-8BIT encoding
Definition ast.h:8154
@ PM_REGULAR_EXPRESSION_FLAGS_MULTI_LINE
m - allows $ to match the end of lines within strings
Definition ast.h:8145
@ PM_REGULAR_EXPRESSION_FLAGS_EXTENDED
x - ignores whitespace and allows comments in regular expressions
Definition ast.h:8142
@ PM_REGULAR_EXPRESSION_FLAGS_ONCE
o - only interpolates values into the regular expression once
Definition ast.h:8148
@ PM_REGULAR_EXPRESSION_FLAGS_WINDOWS_31J
s - forces the Windows-31J encoding
Definition ast.h:8157
@ PM_REGULAR_EXPRESSION_FLAGS_UTF_8
u - forces the UTF-8 encoding
Definition ast.h:8160
struct pm_forwarding_arguments_node pm_forwarding_arguments_node_t
ForwardingArgumentsNode.
struct pm_instance_variable_read_node pm_instance_variable_read_node_t
InstanceVariableReadNode.
struct pm_constant_target_node pm_constant_target_node_t
ConstantTargetNode.
struct pm_node pm_node_t
This is the base structure that represents a node in the syntax tree.
struct pm_defined_node pm_defined_node_t
DefinedNode.
struct pm_it_local_variable_read_node pm_it_local_variable_read_node_t
ItLocalVariableReadNode.
struct pm_interpolated_symbol_node pm_interpolated_symbol_node_t
InterpolatedSymbolNode.
struct pm_class_variable_target_node pm_class_variable_target_node_t
ClassVariableTargetNode.
struct pm_def_node pm_def_node_t
DefNode.
struct pm_singleton_class_node pm_singleton_class_node_t
SingletonClassNode.
uint16_t pm_node_flags_t
These are the flags embedded in the node struct.
Definition ast.h:1044
struct pm_capture_pattern_node pm_capture_pattern_node_t
CapturePatternNode.
struct pm_source_file_node pm_source_file_node_t
SourceFileNode.
struct pm_regular_expression_node pm_regular_expression_node_t
RegularExpressionNode.
pm_token_type
This enum represents every type of token in the Ruby source.
Definition ast.h:33
@ PM_TOKEN_STAR_STAR
**
Definition ast.h:467
@ PM_TOKEN_DOT_DOT_DOT
the ... range operator or forwarding parameter
Definition ast.h:164
@ PM_TOKEN_MINUS_EQUAL
-=
Definition ast.h:395
@ PM_TOKEN_IGNORED_NEWLINE
an ignored newline
Definition ast.h:233
@ PM_TOKEN_BANG_EQUAL
!=
Definition ast.h:110
@ PM_TOKEN_KEYWORD___FILE__
FILE
Definition ast.h:359
@ PM_TOKEN_KEYWORD_WHEN
when
Definition ast.h:71
@ PM_TOKEN_FLOAT
a floating point number
Definition ast.h:197
@ PM_TOKEN_PLUS_EQUAL
+=
Definition ast.h:443
@ PM_TOKEN_DOT_DOT
the .
Definition ast.h:161
@ PM_TOKEN_UDOT_DOT
unary .
Definition ast.h:494
@ PM_TOKEN_AMPERSAND_DOT
&.
Definition ast.h:95
@ PM_TOKEN_NEWLINE
a newline character outside of other tokens
Definition ast.h:74
@ PM_TOKEN_NUMBERED_REFERENCE
a numbered reference to a capture group in the previous regular expression match
Definition ast.h:401
@ PM_TOKEN_AMPERSAND
&
Definition ast.h:86
@ PM_TOKEN_KEYWORD_YIELD
yield
Definition ast.h:353
@ PM_TOKEN_KEYWORD_END
end
Definition ast.h:56
@ PM_TOKEN_LAMBDA_BEGIN
{
Definition ast.h:371
@ PM_TOKEN_KEYWORD_UNTIL_MODIFIER
until in the modifier form
Definition ast.h:344
@ PM_TOKEN_EQUAL_EQUAL_EQUAL
===
Definition ast.h:188
@ PM_TOKEN_INTEGER_RATIONAL
an integer with a rational suffix
Definition ast.h:245
@ PM_TOKEN_USTAR
unary *
Definition ast.h:509
@ PM_TOKEN_TILDE
~ or ~@
Definition ast.h:485
@ PM_TOKEN_KEYWORD___ENCODING__
ENCODING
Definition ast.h:356
@ PM_TOKEN_REGEXP_END
the end of a regular expression
Definition ast.h:452
@ PM_TOKEN_KEYWORD_UNTIL
until
Definition ast.h:341
@ PM_TOKEN_COMMA
,
Definition ast.h:41
@ PM_TOKEN_MAXIMUM
The maximum token value.
Definition ast.h:527
@ PM_TOKEN_GREATER
Definition ast.h:212
@ PM_TOKEN_INTEGER
an integer (any base)
Definition ast.h:239
@ PM_TOKEN_SLASH_EQUAL
/=
Definition ast.h:458
@ PM_TOKEN_UMINUS_NUM
-@ for a number
Definition ast.h:503
@ PM_TOKEN_EMBVAR
Definition ast.h:179
@ PM_TOKEN_KEYWORD_UNLESS_MODIFIER
unless in the modifier form
Definition ast.h:338
@ PM_TOKEN_INTEGER_RATIONAL_IMAGINARY
an integer with a rational and imaginary suffix
Definition ast.h:248
@ PM_TOKEN_FLOAT_RATIONAL_IMAGINARY
a floating pointer number with a rational and imaginary suffix
Definition ast.h:206
@ PM_TOKEN_BRACKET_LEFT_RIGHT
[]
Definition ast.h:125
@ PM_TOKEN_AMPERSAND_AMPERSAND_EQUAL
&&=
Definition ast.h:92
@ PM_TOKEN_KEYWORD_CLASS
class
Definition ast.h:269
@ PM_TOKEN_KEYWORD_BEGIN
begin
Definition ast.h:257
@ PM_TOKEN_NOT_PROVIDED
a token that was not present but it is okay
Definition ast.h:524
@ PM_TOKEN_USTAR_STAR
unary **
Definition ast.h:512
@ PM_TOKEN_GREATER_GREATER_EQUAL
‍>=
Definition ast.h:221
@ PM_TOKEN_PERCENT_EQUAL
%=
Definition ast.h:413
@ PM_TOKEN_PERCENT
%
Definition ast.h:410
@ PM_TOKEN_KEYWORD_IN
in
Definition ast.h:62
@ PM_TOKEN_BANG
! or !@
Definition ast.h:107
@ PM_TOKEN_KEYWORD_NOT
not
Definition ast.h:305
@ PM_TOKEN_BRACKET_LEFT_ARRAY
[ for the beginning of an array
Definition ast.h:122
@ PM_TOKEN_HEREDOC_END
the end of a heredoc
Definition ast.h:224
@ PM_TOKEN_HEREDOC_START
the start of a heredoc
Definition ast.h:227
@ PM_TOKEN_KEYWORD_DEFINED
defined?
Definition ast.h:275
@ PM_TOKEN_UCOLON_COLON
unary ::
Definition ast.h:491
@ PM_TOKEN_LABEL_END
the end of a label
Definition ast.h:368
@ PM_TOKEN_EQUAL_GREATER
=>
Definition ast.h:191
@ PM_TOKEN_KEYWORD_UNLESS
unless
Definition ast.h:335
@ PM_TOKEN_KEYWORD_ENSURE
ensure
Definition ast.h:59
@ PM_TOKEN_AMPERSAND_EQUAL
&=
Definition ast.h:98
@ PM_TOKEN_EQUAL_EQUAL
==
Definition ast.h:185
@ PM_TOKEN_UPLUS
+@
Definition ast.h:506
@ PM_TOKEN_FLOAT_IMAGINARY
a floating pointer number with an imaginary suffix
Definition ast.h:200
@ PM_TOKEN_KEYWORD_BEGIN_UPCASE
BEGIN.
Definition ast.h:260
@ PM_TOKEN_LESS_EQUAL_GREATER
<=>
Definition ast.h:380
@ PM_TOKEN_KEYWORD_RESCUE_MODIFIER
rescue in the modifier form
Definition ast.h:314
@ PM_TOKEN_MISSING
a token that was expected but not found
Definition ast.h:521
@ PM_TOKEN_MINUS_GREATER
->
Definition ast.h:398
@ PM_TOKEN_KEYWORD_FALSE
false
Definition ast.h:284
@ PM_TOKEN_PIPE_PIPE_EQUAL
||=
Definition ast.h:437
@ PM_TOKEN_KEYWORD_IF
if
Definition ast.h:290
@ PM_TOKEN_EMBEXPR_BEGIN
#{
Definition ast.h:176
@ PM_TOKEN_PARENTHESIS_LEFT_PARENTHESES
( for a parentheses node
Definition ast.h:407
@ PM_TOKEN_EMBDOC_END
=end
Definition ast.h:170
@ PM_TOKEN_KEYWORD_ELSE
else
Definition ast.h:50
@ PM_TOKEN_BACK_REFERENCE
a back reference
Definition ast.h:104
@ PM_TOKEN_BRACKET_LEFT
[
Definition ast.h:119
@ PM_TOKEN_EOF
final token in the file
Definition ast.h:35
@ PM_TOKEN_PIPE_PIPE
||
Definition ast.h:434
@ PM_TOKEN_KEYWORD_NIL
nil
Definition ast.h:302
@ PM_TOKEN_PERCENT_UPPER_W
W
Definition ast.h:428
@ PM_TOKEN_KEYWORD_RETURN
return
Definition ast.h:320
@ PM_TOKEN_CLASS_VARIABLE
a class variable
Definition ast.h:143
@ PM_TOKEN_PIPE
|
Definition ast.h:80
@ PM_TOKEN_PARENTHESIS_LEFT
(
Definition ast.h:404
@ PM_TOKEN_BANG_TILDE
!~
Definition ast.h:113
@ PM_TOKEN_DOT
the .
Definition ast.h:158
@ PM_TOKEN_PARENTHESIS_RIGHT
)
Definition ast.h:77
@ PM_TOKEN_KEYWORD_RESCUE
rescue
Definition ast.h:65
@ PM_TOKEN_INSTANCE_VARIABLE
an instance variable
Definition ast.h:236
@ PM_TOKEN_PIPE_EQUAL
|=
Definition ast.h:431
@ PM_TOKEN_BRACKET_LEFT_RIGHT_EQUAL
[]=
Definition ast.h:128
@ PM_TOKEN_UAMPERSAND
unary &
Definition ast.h:488
@ PM_TOKEN_MINUS
Definition ast.h:392
@ PM_TOKEN_CONSTANT
a constant
Definition ast.h:155
@ PM_TOKEN_IDENTIFIER
an identifier
Definition ast.h:230
@ PM_TOKEN_EMBDOC_BEGIN
=begin
Definition ast.h:167
@ PM_TOKEN_STAR_EQUAL
*=
Definition ast.h:464
@ PM_TOKEN_KEYWORD_OR
or
Definition ast.h:308
@ PM_TOKEN_KEYWORD_AND
and
Definition ast.h:254
@ PM_TOKEN_LESS
<
Definition ast.h:374
@ PM_TOKEN_KEYWORD_BREAK
break
Definition ast.h:263
@ PM_TOKEN_PERCENT_LOWER_W
w
Definition ast.h:419
@ PM_TOKEN_SYMBOL_BEGIN
the beginning of a symbol
Definition ast.h:482
@ PM_TOKEN_METHOD_NAME
a method name
Definition ast.h:389
@ PM_TOKEN_KEYWORD_CASE
case
Definition ast.h:266
@ PM_TOKEN_WORDS_SEP
a separator between words in a list
Definition ast.h:515
@ PM_TOKEN_FLOAT_RATIONAL
a floating pointer number with a rational suffix
Definition ast.h:203
@ PM_TOKEN_LESS_LESS_EQUAL
<<=
Definition ast.h:386
@ PM_TOKEN_EMBDOC_LINE
a line inside of embedded documentation
Definition ast.h:173
@ PM_TOKEN_KEYWORD_SUPER
super
Definition ast.h:326
@ PM_TOKEN_KEYWORD_DO
do
Definition ast.h:47
@ PM_TOKEN_KEYWORD_REDO
redo
Definition ast.h:311
@ PM_TOKEN_EQUAL_TILDE
=~
Definition ast.h:194
@ PM_TOKEN_EMBEXPR_END
}
Definition ast.h:44
@ PM_TOKEN_KEYWORD_END_UPCASE
END.
Definition ast.h:281
@ PM_TOKEN_KEYWORD___LINE__
LINE
Definition ast.h:362
@ PM_TOKEN_STRING_END
the end of a string
Definition ast.h:479
@ PM_TOKEN_STRING_CONTENT
the contents of a string
Definition ast.h:476
@ PM_TOKEN_BRACE_LEFT
{
Definition ast.h:116
@ PM_TOKEN_COLON_COLON
::
Definition ast.h:149
@ PM_TOKEN_GREATER_GREATER
Definition ast.h:218
@ PM_TOKEN_PERCENT_LOWER_X
x
Definition ast.h:422
@ PM_TOKEN_KEYWORD_SELF
self
Definition ast.h:323
@ PM_TOKEN_PERCENT_LOWER_I
i
Definition ast.h:416
@ PM_TOKEN_KEYWORD_ALIAS
alias
Definition ast.h:251
@ PM_TOKEN_GLOBAL_VARIABLE
a global variable
Definition ast.h:209
@ PM_TOKEN_KEYWORD_IF_MODIFIER
if in the modifier form
Definition ast.h:293
@ PM_TOKEN_SLASH
/
Definition ast.h:455
@ PM_TOKEN_KEYWORD_RETRY
retry
Definition ast.h:317
@ PM_TOKEN_COLON
:
Definition ast.h:146
@ PM_TOKEN_KEYWORD_UNDEF
undef
Definition ast.h:332
@ PM_TOKEN_BRACKET_RIGHT
]
Definition ast.h:131
@ PM_TOKEN_KEYWORD_FOR
for
Definition ast.h:287
@ PM_TOKEN_KEYWORD_THEN
then
Definition ast.h:68
@ PM_TOKEN_QUESTION_MARK
?
Definition ast.h:446
@ PM_TOKEN___END__
marker for the point in the file at which the parser should stop
Definition ast.h:518
@ PM_TOKEN_KEYWORD_WHILE
while
Definition ast.h:347
@ PM_TOKEN_EQUAL
=
Definition ast.h:182
@ PM_TOKEN_KEYWORD_DEF
def
Definition ast.h:272
@ PM_TOKEN_UDOT_DOT_DOT
unary ... operator
Definition ast.h:497
@ PM_TOKEN_STAR
Definition ast.h:461
@ PM_TOKEN_KEYWORD_WHILE_MODIFIER
while in the modifier form
Definition ast.h:350
@ PM_TOKEN_KEYWORD_TRUE
true
Definition ast.h:329
@ PM_TOKEN_BRACE_RIGHT
}
Definition ast.h:38
@ PM_TOKEN_SEMICOLON
;
Definition ast.h:83
@ PM_TOKEN_REGEXP_BEGIN
the beginning of a regular expression
Definition ast.h:449
@ PM_TOKEN_CARET
^
Definition ast.h:134
@ PM_TOKEN_PERCENT_UPPER_I
I
Definition ast.h:425
@ PM_TOKEN_KEYWORD_DO_LOOP
do keyword for a predicate in a while, until, or for loop
Definition ast.h:278
@ PM_TOKEN_KEYWORD_MODULE
module
Definition ast.h:296
@ PM_TOKEN_PLUS
Definition ast.h:440
@ PM_TOKEN_KEYWORD_NEXT
next
Definition ast.h:299
@ PM_TOKEN_BACKTICK
`
Definition ast.h:101
@ PM_TOKEN_INTEGER_IMAGINARY
an integer with an imaginary suffix
Definition ast.h:242
@ PM_TOKEN_LABEL
a label
Definition ast.h:365
@ PM_TOKEN_STAR_STAR_EQUAL
**=
Definition ast.h:470
@ PM_TOKEN_CHARACTER_LITERAL
a character literal
Definition ast.h:140
@ PM_TOKEN_AMPERSAND_AMPERSAND
&&
Definition ast.h:89
@ PM_TOKEN_UMINUS
-@
Definition ast.h:500
@ PM_TOKEN_LESS_LESS
<<
Definition ast.h:383
@ PM_TOKEN_GREATER_EQUAL
>=
Definition ast.h:215
@ PM_TOKEN_COMMENT
a comment
Definition ast.h:152
@ PM_TOKEN_CARET_EQUAL
^=
Definition ast.h:137
@ PM_TOKEN_KEYWORD_ELSIF
elsif
Definition ast.h:53
@ PM_TOKEN_STRING_BEGIN
the beginning of a string
Definition ast.h:473
@ PM_TOKEN_LESS_EQUAL
<=
Definition ast.h:377
struct pm_global_variable_or_write_node pm_global_variable_or_write_node_t
GlobalVariableOrWriteNode.
enum pm_array_node_flags pm_array_node_flags_t
Flags for array nodes.
struct pm_rescue_node pm_rescue_node_t
RescueNode.
struct pm_array_node pm_array_node_t
ArrayNode.
struct pm_while_node pm_while_node_t
WhileNode.
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:8107
@ PM_PARAMETER_FLAGS_REPEATED_PARAMETER
a parameter name that has been repeated in the method signature
Definition ast.h:8109
pm_encoding_flags
Flags for nodes that have unescaped content.
Definition ast.h:8042
@ PM_ENCODING_FLAGS_FORCED_BINARY_ENCODING
internal bytes forced the encoding to binary
Definition ast.h:8047
@ PM_ENCODING_FLAGS_FORCED_UTF8_ENCODING
internal bytes forced the encoding to UTF-8
Definition ast.h:8044
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.
struct pm_global_variable_operator_write_node pm_global_variable_operator_write_node_t
GlobalVariableOperatorWriteNode.
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:8097
@ PM_LOOP_FLAGS_BEGIN_MODIFIER
a loop after a begin statement, so the body is executed first before the condition
Definition ast.h:8099
struct pm_pinned_variable_node pm_pinned_variable_node_t
PinnedVariableNode.
struct pm_instance_variable_and_write_node pm_instance_variable_and_write_node_t
InstanceVariableAndWriteNode.
struct pm_program_node pm_program_node_t
ProgramNode.
struct pm_find_pattern_node pm_find_pattern_node_t
FindPatternNode.
Macro definitions used throughout the prism library.
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 pm_constant_pool.h:31
This module provides functions for working with arbitrary-sized integers.
A generic string type that can have various ownership semantics.
AliasGlobalVariableNode.
Definition ast.h:1111
struct pm_node * old_name
AliasGlobalVariableNode::old_name.
Definition ast.h:1134
pm_node_t base
The embedded base node.
Definition ast.h:1113
struct pm_node * new_name
AliasGlobalVariableNode::new_name.
Definition ast.h:1124
pm_location_t keyword_loc
AliasGlobalVariableNode::keyword_loc.
Definition ast.h:1144
AliasMethodNode.
Definition ast.h:1159
struct pm_node * old_name
AliasMethodNode::old_name.
Definition ast.h:1194
struct pm_node * new_name
AliasMethodNode::new_name.
Definition ast.h:1178
pm_node_t base
The embedded base node.
Definition ast.h:1161
pm_location_t keyword_loc
AliasMethodNode::keyword_loc.
Definition ast.h:1204
AlternationPatternNode.
Definition ast.h:1219
pm_location_t operator_loc
AlternationPatternNode::operator_loc.
Definition ast.h:1252
struct pm_node * left
AlternationPatternNode::left.
Definition ast.h:1232
struct pm_node * right
AlternationPatternNode::right.
Definition ast.h:1242
pm_node_t base
The embedded base node.
Definition ast.h:1221
AndNode.
Definition ast.h:1267
struct pm_node * left
AndNode::left.
Definition ast.h:1283
struct pm_node * right
AndNode::right.
Definition ast.h:1296
pm_location_t operator_loc
AndNode::operator_loc.
Definition ast.h:1306
pm_node_t base
The embedded base node.
Definition ast.h:1269
ArgumentsNode.
Definition ast.h:1328
pm_node_t base
The embedded base node.
Definition ast.h:1330
struct pm_node_list arguments
ArgumentsNode::arguments.
Definition ast.h:1341
ArrayNode.
Definition ast.h:1359
pm_node_t base
The embedded base node.
Definition ast.h:1361
pm_location_t closing_loc
ArrayNode::closing_loc.
Definition ast.h:1393
struct pm_node_list elements
ArrayNode::elements.
Definition ast.h:1369
pm_location_t opening_loc
ArrayNode::opening_loc.
Definition ast.h:1381
ArrayPatternNode.
Definition ast.h:1420
struct pm_node_list requireds
ArrayPatternNode::requireds.
Definition ast.h:1449
struct pm_node * rest
ArrayPatternNode::rest.
Definition ast.h:1459
struct pm_node * constant
ArrayPatternNode::constant.
Definition ast.h:1439
pm_location_t opening_loc
ArrayPatternNode::opening_loc.
Definition ast.h:1479
pm_node_t base
The embedded base node.
Definition ast.h:1422
pm_location_t closing_loc
ArrayPatternNode::closing_loc.
Definition ast.h:1489
struct pm_node_list posts
ArrayPatternNode::posts.
Definition ast.h:1469
AssocNode.
Definition ast.h:1504
pm_node_t base
The embedded base node.
Definition ast.h:1506
struct pm_node * value
AssocNode::value.
Definition ast.h:1536
struct pm_node * key
AssocNode::key.
Definition ast.h:1523
pm_location_t operator_loc
AssocNode::operator_loc.
Definition ast.h:1546
AssocSplatNode.
Definition ast.h:1561
struct pm_node * value
AssocSplatNode::value.
Definition ast.h:1574
pm_node_t base
The embedded base node.
Definition ast.h:1563
pm_location_t operator_loc
AssocSplatNode::operator_loc.
Definition ast.h:1584
BackReferenceReadNode.
Definition ast.h:1599
pm_constant_id_t name
BackReferenceReadNode::name.
Definition ast.h:1613
pm_node_t base
The embedded base node.
Definition ast.h:1601
BeginNode.
Definition ast.h:1630
struct pm_ensure_node * ensure_clause
BeginNode::ensure_clause.
Definition ast.h:1683
struct pm_rescue_node * rescue_clause
BeginNode::rescue_clause.
Definition ast.h:1663
struct pm_statements_node * statements
BeginNode::statements.
Definition ast.h:1653
pm_node_t base
The embedded base node.
Definition ast.h:1632
pm_location_t end_keyword_loc
BeginNode::end_keyword_loc.
Definition ast.h:1693
pm_location_t begin_keyword_loc
BeginNode::begin_keyword_loc.
Definition ast.h:1643
struct pm_else_node * else_clause
BeginNode::else_clause.
Definition ast.h:1673
BlockArgumentNode.
Definition ast.h:1708
pm_node_t base
The embedded base node.
Definition ast.h:1710
struct pm_node * expression
BlockArgumentNode::expression.
Definition ast.h:1721
pm_location_t operator_loc
BlockArgumentNode::operator_loc.
Definition ast.h:1731
BlockLocalVariableNode.
Definition ast.h:1749
pm_node_t base
The embedded base node.
Definition ast.h:1751
pm_constant_id_t name
BlockLocalVariableNode::name.
Definition ast.h:1762
BlockNode.
Definition ast.h:1777
pm_node_t base
The embedded base node.
Definition ast.h:1779
pm_location_t closing_loc
BlockNode::closing_loc.
Definition ast.h:1834
struct pm_node * parameters
BlockNode::parameters.
Definition ast.h:1804
pm_location_t opening_loc
BlockNode::opening_loc.
Definition ast.h:1824
struct pm_node * body
BlockNode::body.
Definition ast.h:1814
pm_constant_id_list_t locals
BlockNode::locals.
Definition ast.h:1790
BlockParameterNode.
Definition ast.h:1853
pm_location_t operator_loc
BlockParameterNode::operator_loc.
Definition ast.h:1888
pm_location_t name_loc
BlockParameterNode::name_loc.
Definition ast.h:1877
pm_constant_id_t name
BlockParameterNode::name.
Definition ast.h:1867
pm_node_t base
The embedded base node.
Definition ast.h:1855
BlockParametersNode.
Definition ast.h:1907
struct pm_parameters_node * parameters
BlockParametersNode::parameters.
Definition ast.h:1924
pm_node_t base
The embedded base node.
Definition ast.h:1909
struct pm_node_list locals
BlockParametersNode::locals.
Definition ast.h:1938
pm_location_t closing_loc
BlockParametersNode::closing_loc.
Definition ast.h:1966
pm_location_t opening_loc
BlockParametersNode::opening_loc.
Definition ast.h:1952
BreakNode.
Definition ast.h:1981
struct pm_arguments_node * arguments
BreakNode::arguments.
Definition ast.h:1994
pm_location_t keyword_loc
BreakNode::keyword_loc.
Definition ast.h:2004
pm_node_t base
The embedded base node.
Definition ast.h:1983
CallAndWriteNode.
Definition ast.h:2025
pm_location_t operator_loc
CallAndWriteNode::operator_loc.
Definition ast.h:2088
struct pm_node * value
CallAndWriteNode::value.
Definition ast.h:2098
pm_node_t base
The embedded base node.
Definition ast.h:2027
pm_location_t call_operator_loc
CallAndWriteNode::call_operator_loc.
Definition ast.h:2048
pm_location_t message_loc
CallAndWriteNode::message_loc.
Definition ast.h:2058
pm_constant_id_t read_name
CallAndWriteNode::read_name.
Definition ast.h:2068
pm_constant_id_t write_name
CallAndWriteNode::write_name.
Definition ast.h:2078
struct pm_node * receiver
CallAndWriteNode::receiver.
Definition ast.h:2038
CallNode.
Definition ast.h:2134
pm_location_t opening_loc
CallNode::opening_loc.
Definition ast.h:2195
pm_location_t closing_loc
CallNode::closing_loc.
Definition ast.h:2215
struct pm_node * receiver
CallNode::receiver.
Definition ast.h:2153
pm_constant_id_t name
CallNode::name.
Definition ast.h:2176
pm_node_t base
The embedded base node.
Definition ast.h:2136
pm_location_t equal_loc
CallNode::equal_loc.
Definition ast.h:2228
pm_location_t call_operator_loc
CallNode::call_operator_loc.
Definition ast.h:2166
pm_location_t message_loc
CallNode::message_loc.
Definition ast.h:2186
struct pm_arguments_node * arguments
CallNode::arguments.
Definition ast.h:2205
struct pm_node * block
CallNode::block.
Definition ast.h:2238
CallOperatorWriteNode.
Definition ast.h:2259
pm_constant_id_t read_name
CallOperatorWriteNode::read_name.
Definition ast.h:2302
pm_constant_id_t binary_operator
CallOperatorWriteNode::binary_operator.
Definition ast.h:2322
pm_location_t binary_operator_loc
CallOperatorWriteNode::binary_operator_loc.
Definition ast.h:2332
struct pm_node * receiver
CallOperatorWriteNode::receiver.
Definition ast.h:2272
pm_node_t base
The embedded base node.
Definition ast.h:2261
pm_constant_id_t write_name
CallOperatorWriteNode::write_name.
Definition ast.h:2312
pm_location_t message_loc
CallOperatorWriteNode::message_loc.
Definition ast.h:2292
struct pm_node * value
CallOperatorWriteNode::value.
Definition ast.h:2342
pm_location_t call_operator_loc
CallOperatorWriteNode::call_operator_loc.
Definition ast.h:2282
CallOrWriteNode.
Definition ast.h:2363
pm_location_t operator_loc
CallOrWriteNode::operator_loc.
Definition ast.h:2426
pm_location_t call_operator_loc
CallOrWriteNode::call_operator_loc.
Definition ast.h:2386
pm_node_t base
The embedded base node.
Definition ast.h:2365
struct pm_node * receiver
CallOrWriteNode::receiver.
Definition ast.h:2376
struct pm_node * value
CallOrWriteNode::value.
Definition ast.h:2436
pm_constant_id_t write_name
CallOrWriteNode::write_name.
Definition ast.h:2416
pm_constant_id_t read_name
CallOrWriteNode::read_name.
Definition ast.h:2406
pm_location_t message_loc
CallOrWriteNode::message_loc.
Definition ast.h:2396
CallTargetNode.
Definition ast.h:2465
pm_node_t base
The embedded base node.
Definition ast.h:2467
pm_constant_id_t name
CallTargetNode::name.
Definition ast.h:2498
struct pm_node * receiver
CallTargetNode::receiver.
Definition ast.h:2478
pm_location_t call_operator_loc
CallTargetNode::call_operator_loc.
Definition ast.h:2488
pm_location_t message_loc
CallTargetNode::message_loc.
Definition ast.h:2508
CapturePatternNode.
Definition ast.h:2523
struct pm_local_variable_target_node * target
CapturePatternNode::target.
Definition ast.h:2546
pm_location_t operator_loc
CapturePatternNode::operator_loc.
Definition ast.h:2556
struct pm_node * value
CapturePatternNode::value.
Definition ast.h:2536
pm_node_t base
The embedded base node.
Definition ast.h:2525
CaseMatchNode.
Definition ast.h:2573
pm_location_t end_keyword_loc
CaseMatchNode::end_keyword_loc.
Definition ast.h:2626
struct pm_node_list conditions
CaseMatchNode::conditions.
Definition ast.h:2596
pm_node_t base
The embedded base node.
Definition ast.h:2575
pm_location_t case_keyword_loc
CaseMatchNode::case_keyword_loc.
Definition ast.h:2616
struct pm_else_node * else_clause
CaseMatchNode::else_clause.
Definition ast.h:2606
struct pm_node * predicate
CaseMatchNode::predicate.
Definition ast.h:2586
CaseNode.
Definition ast.h:2643
struct pm_node * predicate
CaseNode::predicate.
Definition ast.h:2656
struct pm_else_node * else_clause
CaseNode::else_clause.
Definition ast.h:2676
struct pm_node_list conditions
CaseNode::conditions.
Definition ast.h:2666
pm_node_t base
The embedded base node.
Definition ast.h:2645
pm_location_t case_keyword_loc
CaseNode::case_keyword_loc.
Definition ast.h:2686
pm_location_t end_keyword_loc
CaseNode::end_keyword_loc.
Definition ast.h:2696
ClassNode.
Definition ast.h:2711
pm_location_t class_keyword_loc
ClassNode::class_keyword_loc.
Definition ast.h:2729
pm_location_t end_keyword_loc
ClassNode::end_keyword_loc.
Definition ast.h:2775
struct pm_node * constant_path
ClassNode::constant_path.
Definition ast.h:2734
pm_constant_id_list_t locals
ClassNode::locals.
Definition ast.h:2719
pm_location_t inheritance_operator_loc
ClassNode::inheritance_operator_loc.
Definition ast.h:2744
pm_constant_id_t name
ClassNode::name.
Definition ast.h:2784
pm_node_t base
The embedded base node.
Definition ast.h:2713
struct pm_node * body
ClassNode::body.
Definition ast.h:2765
struct pm_node * superclass
ClassNode::superclass.
Definition ast.h:2754
ClassVariableAndWriteNode.
Definition ast.h:2799
struct pm_node * value
ClassVariableAndWriteNode::value.
Definition ast.h:2842
pm_constant_id_t name
ClassVariableAndWriteNode::name.
Definition ast.h:2812
pm_location_t operator_loc
ClassVariableAndWriteNode::operator_loc.
Definition ast.h:2832
pm_node_t base
The embedded base node.
Definition ast.h:2801
pm_location_t name_loc
ClassVariableAndWriteNode::name_loc.
Definition ast.h:2822
ClassVariableOperatorWriteNode.
Definition ast.h:2857
pm_node_t base
The embedded base node.
Definition ast.h:2859
pm_constant_id_t name
ClassVariableOperatorWriteNode::name.
Definition ast.h:2865
pm_location_t name_loc
ClassVariableOperatorWriteNode::name_loc.
Definition ast.h:2870
pm_constant_id_t binary_operator
ClassVariableOperatorWriteNode::binary_operator.
Definition ast.h:2885
struct pm_node * value
ClassVariableOperatorWriteNode::value.
Definition ast.h:2880
pm_location_t binary_operator_loc
ClassVariableOperatorWriteNode::binary_operator_loc.
Definition ast.h:2875
ClassVariableOrWriteNode.
Definition ast.h:2900
pm_node_t base
The embedded base node.
Definition ast.h:2902
pm_location_t name_loc
ClassVariableOrWriteNode::name_loc.
Definition ast.h:2913
pm_location_t operator_loc
ClassVariableOrWriteNode::operator_loc.
Definition ast.h:2918
pm_constant_id_t name
ClassVariableOrWriteNode::name.
Definition ast.h:2908
struct pm_node * value
ClassVariableOrWriteNode::value.
Definition ast.h:2923
ClassVariableReadNode.
Definition ast.h:2938
pm_node_t base
The embedded base node.
Definition ast.h:2940
pm_constant_id_t name
ClassVariableReadNode::name.
Definition ast.h:2952
ClassVariableTargetNode.
Definition ast.h:2967
pm_node_t base
The embedded base node.
Definition ast.h:2969
pm_constant_id_t name
ClassVariableTargetNode::name.
Definition ast.h:2975
ClassVariableWriteNode.
Definition ast.h:2990
pm_location_t name_loc
ClassVariableWriteNode::name_loc.
Definition ast.h:3014
pm_node_t base
The embedded base node.
Definition ast.h:2992
struct pm_node * value
ClassVariableWriteNode::value.
Definition ast.h:3027
pm_location_t operator_loc
ClassVariableWriteNode::operator_loc.
Definition ast.h:3037
pm_constant_id_t name
ClassVariableWriteNode::name.
Definition ast.h:3004
ConstantAndWriteNode.
Definition ast.h:3052
pm_location_t operator_loc
ConstantAndWriteNode::operator_loc.
Definition ast.h:3070
pm_location_t name_loc
ConstantAndWriteNode::name_loc.
Definition ast.h:3065
pm_constant_id_t name
ConstantAndWriteNode::name.
Definition ast.h:3060
struct pm_node * value
ConstantAndWriteNode::value.
Definition ast.h:3075
pm_node_t base
The embedded base node.
Definition ast.h:3054
A list of constant IDs.
Definition pm_constant_pool.h:36
ConstantOperatorWriteNode.
Definition ast.h:3090
pm_constant_id_t name
ConstantOperatorWriteNode::name.
Definition ast.h:3098
pm_location_t name_loc
ConstantOperatorWriteNode::name_loc.
Definition ast.h:3103
pm_constant_id_t binary_operator
ConstantOperatorWriteNode::binary_operator.
Definition ast.h:3118
pm_location_t binary_operator_loc
ConstantOperatorWriteNode::binary_operator_loc.
Definition ast.h:3108
struct pm_node * value
ConstantOperatorWriteNode::value.
Definition ast.h:3113
pm_node_t base
The embedded base node.
Definition ast.h:3092
ConstantOrWriteNode.
Definition ast.h:3133
pm_location_t operator_loc
ConstantOrWriteNode::operator_loc.
Definition ast.h:3151
pm_location_t name_loc
ConstantOrWriteNode::name_loc.
Definition ast.h:3146
pm_constant_id_t name
ConstantOrWriteNode::name.
Definition ast.h:3141
pm_node_t base
The embedded base node.
Definition ast.h:3135
struct pm_node * value
ConstantOrWriteNode::value.
Definition ast.h:3156
ConstantPathAndWriteNode.
Definition ast.h:3171
pm_node_t base
The embedded base node.
Definition ast.h:3173
struct pm_constant_path_node * target
ConstantPathAndWriteNode::target.
Definition ast.h:3179
pm_location_t operator_loc
ConstantPathAndWriteNode::operator_loc.
Definition ast.h:3184
struct pm_node * value
ConstantPathAndWriteNode::value.
Definition ast.h:3189
ConstantPathNode.
Definition ast.h:3204
pm_location_t delimiter_loc
ConstantPathNode::delimiter_loc.
Definition ast.h:3243
pm_node_t base
The embedded base node.
Definition ast.h:3206
pm_location_t name_loc
ConstantPathNode::name_loc.
Definition ast.h:3256
pm_constant_id_t name
ConstantPathNode::name.
Definition ast.h:3230
struct pm_node * parent
ConstantPathNode::parent.
Definition ast.h:3223
ConstantPathOperatorWriteNode.
Definition ast.h:3271
struct pm_constant_path_node * target
ConstantPathOperatorWriteNode::target.
Definition ast.h:3279
struct pm_node * value
ConstantPathOperatorWriteNode::value.
Definition ast.h:3289
pm_constant_id_t binary_operator
ConstantPathOperatorWriteNode::binary_operator.
Definition ast.h:3294
pm_node_t base
The embedded base node.
Definition ast.h:3273
pm_location_t binary_operator_loc
ConstantPathOperatorWriteNode::binary_operator_loc.
Definition ast.h:3284
ConstantPathOrWriteNode.
Definition ast.h:3309
pm_location_t operator_loc
ConstantPathOrWriteNode::operator_loc.
Definition ast.h:3322
pm_node_t base
The embedded base node.
Definition ast.h:3311
struct pm_node * value
ConstantPathOrWriteNode::value.
Definition ast.h:3327
struct pm_constant_path_node * target
ConstantPathOrWriteNode::target.
Definition ast.h:3317
ConstantPathTargetNode.
Definition ast.h:3342
pm_node_t base
The embedded base node.
Definition ast.h:3344
struct pm_node * parent
ConstantPathTargetNode::parent.
Definition ast.h:3350
pm_location_t delimiter_loc
ConstantPathTargetNode::delimiter_loc.
Definition ast.h:3360
pm_constant_id_t name
ConstantPathTargetNode::name.
Definition ast.h:3355
pm_location_t name_loc
ConstantPathTargetNode::name_loc.
Definition ast.h:3365
ConstantPathWriteNode.
Definition ast.h:3386
struct pm_constant_path_node * target
ConstantPathWriteNode::target.
Definition ast.h:3402
pm_location_t operator_loc
ConstantPathWriteNode::operator_loc.
Definition ast.h:3412
pm_node_t base
The embedded base node.
Definition ast.h:3388
struct pm_node * value
ConstantPathWriteNode::value.
Definition ast.h:3422
ConstantReadNode.
Definition ast.h:3437
pm_node_t base
The embedded base node.
Definition ast.h:3439
pm_constant_id_t name
ConstantReadNode::name.
Definition ast.h:3451
ConstantTargetNode.
Definition ast.h:3466
pm_node_t base
The embedded base node.
Definition ast.h:3468
pm_constant_id_t name
ConstantTargetNode::name.
Definition ast.h:3474
ConstantWriteNode.
Definition ast.h:3489
pm_node_t base
The embedded base node.
Definition ast.h:3491
struct pm_node * value
ConstantWriteNode::value.
Definition ast.h:3526
pm_constant_id_t name
ConstantWriteNode::name.
Definition ast.h:3503
pm_location_t name_loc
ConstantWriteNode::name_loc.
Definition ast.h:3513
pm_location_t operator_loc
ConstantWriteNode::operator_loc.
Definition ast.h:3536
DefNode.
Definition ast.h:3552
struct pm_parameters_node * parameters
DefNode::parameters.
Definition ast.h:3575
pm_location_t end_keyword_loc
DefNode::end_keyword_loc.
Definition ast.h:3615
pm_constant_id_t name
DefNode::name.
Definition ast.h:3560
pm_location_t name_loc
DefNode::name_loc.
Definition ast.h:3565
pm_location_t rparen_loc
DefNode::rparen_loc.
Definition ast.h:3605
struct pm_node * body
DefNode::body.
Definition ast.h:3580
pm_location_t equal_loc
DefNode::equal_loc.
Definition ast.h:3610
pm_location_t def_keyword_loc
DefNode::def_keyword_loc.
Definition ast.h:3590
struct pm_node * receiver
DefNode::receiver.
Definition ast.h:3570
pm_node_t base
The embedded base node.
Definition ast.h:3554
pm_location_t lparen_loc
DefNode::lparen_loc.
Definition ast.h:3600
pm_location_t operator_loc
DefNode::operator_loc.
Definition ast.h:3595
pm_constant_id_list_t locals
DefNode::locals.
Definition ast.h:3585
DefinedNode.
Definition ast.h:3630
pm_location_t lparen_loc
DefinedNode::lparen_loc.
Definition ast.h:3638
pm_node_t base
The embedded base node.
Definition ast.h:3632
pm_location_t rparen_loc
DefinedNode::rparen_loc.
Definition ast.h:3648
pm_location_t keyword_loc
DefinedNode::keyword_loc.
Definition ast.h:3653
struct pm_node * value
DefinedNode::value.
Definition ast.h:3643
ElseNode.
Definition ast.h:3668
struct pm_statements_node * statements
ElseNode::statements.
Definition ast.h:3681
pm_location_t else_keyword_loc
ElseNode::else_keyword_loc.
Definition ast.h:3676
pm_node_t base
The embedded base node.
Definition ast.h:3670
pm_location_t end_keyword_loc
ElseNode::end_keyword_loc.
Definition ast.h:3686
EmbeddedStatementsNode.
Definition ast.h:3701
pm_location_t closing_loc
EmbeddedStatementsNode::closing_loc.
Definition ast.h:3719
struct pm_statements_node * statements
EmbeddedStatementsNode::statements.
Definition ast.h:3714
pm_node_t base
The embedded base node.
Definition ast.h:3703
pm_location_t opening_loc
EmbeddedStatementsNode::opening_loc.
Definition ast.h:3709
EmbeddedVariableNode.
Definition ast.h:3734
struct pm_node * variable
EmbeddedVariableNode::variable.
Definition ast.h:3747
pm_location_t operator_loc
EmbeddedVariableNode::operator_loc.
Definition ast.h:3742
pm_node_t base
The embedded base node.
Definition ast.h:3736
EnsureNode.
Definition ast.h:3766
struct pm_statements_node * statements
EnsureNode::statements.
Definition ast.h:3779
pm_node_t base
The embedded base node.
Definition ast.h:3768
pm_location_t ensure_keyword_loc
EnsureNode::ensure_keyword_loc.
Definition ast.h:3774
pm_location_t end_keyword_loc
EnsureNode::end_keyword_loc.
Definition ast.h:3784
FalseNode.
Definition ast.h:3799
pm_node_t base
The embedded base node.
Definition ast.h:3801
FindPatternNode.
Definition ast.h:3826
struct pm_node * constant
FindPatternNode::constant.
Definition ast.h:3839
struct pm_node * right
FindPatternNode::right.
Definition ast.h:3878
pm_location_t opening_loc
FindPatternNode::opening_loc.
Definition ast.h:3891
pm_node_t base
The embedded base node.
Definition ast.h:3828
struct pm_node_list requireds
FindPatternNode::requireds.
Definition ast.h:3865
struct pm_splat_node * left
FindPatternNode::left.
Definition ast.h:3852
pm_location_t closing_loc
FindPatternNode::closing_loc.
Definition ast.h:3904
FlipFlopNode.
Definition ast.h:3922
pm_node_t base
The embedded base node.
Definition ast.h:3924
pm_location_t operator_loc
FlipFlopNode::operator_loc.
Definition ast.h:3940
struct pm_node * left
FlipFlopNode::left.
Definition ast.h:3930
struct pm_node * right
FlipFlopNode::right.
Definition ast.h:3935
FloatNode.
Definition ast.h:3955
double value
FloatNode::value.
Definition ast.h:3965
pm_node_t base
The embedded base node.
Definition ast.h:3957
ForNode.
Definition ast.h:3980
struct pm_statements_node * statements
ForNode::statements.
Definition ast.h:4015
struct pm_node * index
ForNode::index.
Definition ast.h:3993
struct pm_node * collection
ForNode::collection.
Definition ast.h:4003
pm_node_t base
The embedded base node.
Definition ast.h:3982
pm_location_t end_keyword_loc
ForNode::end_keyword_loc.
Definition ast.h:4055
pm_location_t for_keyword_loc
ForNode::for_keyword_loc.
Definition ast.h:4025
pm_location_t do_keyword_loc
ForNode::do_keyword_loc.
Definition ast.h:4045
pm_location_t in_keyword_loc
ForNode::in_keyword_loc.
Definition ast.h:4035
ForwardingArgumentsNode.
Definition ast.h:4072
pm_node_t base
The embedded base node.
Definition ast.h:4074
ForwardingParameterNode.
Definition ast.h:4091
pm_node_t base
The embedded base node.
Definition ast.h:4093
ForwardingSuperNode.
Definition ast.h:4109
pm_node_t base
The embedded base node.
Definition ast.h:4111
struct pm_block_node * block
ForwardingSuperNode::block.
Definition ast.h:4117
GlobalVariableAndWriteNode.
Definition ast.h:4132
pm_location_t operator_loc
GlobalVariableAndWriteNode::operator_loc.
Definition ast.h:4150
pm_node_t base
The embedded base node.
Definition ast.h:4134
pm_location_t name_loc
GlobalVariableAndWriteNode::name_loc.
Definition ast.h:4145
struct pm_node * value
GlobalVariableAndWriteNode::value.
Definition ast.h:4155
pm_constant_id_t name
GlobalVariableAndWriteNode::name.
Definition ast.h:4140
GlobalVariableOperatorWriteNode.
Definition ast.h:4170
pm_constant_id_t name
GlobalVariableOperatorWriteNode::name.
Definition ast.h:4178
pm_constant_id_t binary_operator
GlobalVariableOperatorWriteNode::binary_operator.
Definition ast.h:4198
struct pm_node * value
GlobalVariableOperatorWriteNode::value.
Definition ast.h:4193
pm_location_t name_loc
GlobalVariableOperatorWriteNode::name_loc.
Definition ast.h:4183
pm_node_t base
The embedded base node.
Definition ast.h:4172
pm_location_t binary_operator_loc
GlobalVariableOperatorWriteNode::binary_operator_loc.
Definition ast.h:4188
GlobalVariableOrWriteNode.
Definition ast.h:4213
pm_constant_id_t name
GlobalVariableOrWriteNode::name.
Definition ast.h:4221
pm_location_t name_loc
GlobalVariableOrWriteNode::name_loc.
Definition ast.h:4226
pm_node_t base
The embedded base node.
Definition ast.h:4215
pm_location_t operator_loc
GlobalVariableOrWriteNode::operator_loc.
Definition ast.h:4231
struct pm_node * value
GlobalVariableOrWriteNode::value.
Definition ast.h:4236
GlobalVariableReadNode.
Definition ast.h:4251
pm_node_t base
The embedded base node.
Definition ast.h:4253
pm_constant_id_t name
GlobalVariableReadNode::name.
Definition ast.h:4265
GlobalVariableTargetNode.
Definition ast.h:4280
pm_constant_id_t name
GlobalVariableTargetNode::name.
Definition ast.h:4288
pm_node_t base
The embedded base node.
Definition ast.h:4282
GlobalVariableWriteNode.
Definition ast.h:4303
struct pm_node * value
GlobalVariableWriteNode::value.
Definition ast.h:4340
pm_location_t name_loc
GlobalVariableWriteNode::name_loc.
Definition ast.h:4327
pm_location_t operator_loc
GlobalVariableWriteNode::operator_loc.
Definition ast.h:4350
pm_constant_id_t name
GlobalVariableWriteNode::name.
Definition ast.h:4317
pm_node_t base
The embedded base node.
Definition ast.h:4305
HashNode.
Definition ast.h:4365
struct pm_node_list elements
HashNode::elements.
Definition ast.h:4391
pm_node_t base
The embedded base node.
Definition ast.h:4367
pm_location_t closing_loc
HashNode::closing_loc.
Definition ast.h:4401
pm_location_t opening_loc
HashNode::opening_loc.
Definition ast.h:4378
HashPatternNode.
Definition ast.h:4425
struct pm_node_list elements
HashPatternNode::elements.
Definition ast.h:4451
pm_location_t opening_loc
HashPatternNode::opening_loc.
Definition ast.h:4480
pm_node_t base
The embedded base node.
Definition ast.h:4427
struct pm_node * rest
HashPatternNode::rest.
Definition ast.h:4467
pm_location_t closing_loc
HashPatternNode::closing_loc.
Definition ast.h:4493
struct pm_node * constant
HashPatternNode::constant.
Definition ast.h:4441
IfNode.
Definition ast.h:4514
struct pm_node * predicate
IfNode::predicate.
Definition ast.h:4547
pm_location_t end_keyword_loc
IfNode::end_keyword_loc.
Definition ast.h:4605
pm_location_t if_keyword_loc
IfNode::if_keyword_loc.
Definition ast.h:4529
struct pm_statements_node * statements
IfNode::statements.
Definition ast.h:4574
pm_node_t base
The embedded base node.
Definition ast.h:4516
struct pm_node * subsequent
IfNode::subsequent.
Definition ast.h:4593
pm_location_t then_keyword_loc
IfNode::then_keyword_loc.
Definition ast.h:4560
ImaginaryNode.
Definition ast.h:4620
struct pm_node * numeric
ImaginaryNode::numeric.
Definition ast.h:4628
pm_node_t base
The embedded base node.
Definition ast.h:4622
ImplicitNode.
Definition ast.h:4649
struct pm_node * value
ImplicitNode::value.
Definition ast.h:4657
pm_node_t base
The embedded base node.
Definition ast.h:4651
ImplicitRestNode.
Definition ast.h:4681
pm_node_t base
The embedded base node.
Definition ast.h:4683
InNode.
Definition ast.h:4699
struct pm_statements_node * statements
InNode::statements.
Definition ast.h:4712
struct pm_node * pattern
InNode::pattern.
Definition ast.h:4707
pm_node_t base
The embedded base node.
Definition ast.h:4701
pm_location_t then_loc
InNode::then_loc.
Definition ast.h:4722
pm_location_t in_loc
InNode::in_loc.
Definition ast.h:4717
IndexAndWriteNode.
Definition ast.h:4743
struct pm_arguments_node * arguments
IndexAndWriteNode::arguments.
Definition ast.h:4766
struct pm_node * receiver
IndexAndWriteNode::receiver.
Definition ast.h:4751
pm_node_t base
The embedded base node.
Definition ast.h:4745
struct pm_block_argument_node * block
IndexAndWriteNode::block.
Definition ast.h:4776
struct pm_node * value
IndexAndWriteNode::value.
Definition ast.h:4786
pm_location_t operator_loc
IndexAndWriteNode::operator_loc.
Definition ast.h:4781
pm_location_t closing_loc
IndexAndWriteNode::closing_loc.
Definition ast.h:4771
pm_location_t opening_loc
IndexAndWriteNode::opening_loc.
Definition ast.h:4761
pm_location_t call_operator_loc
IndexAndWriteNode::call_operator_loc.
Definition ast.h:4756
IndexOperatorWriteNode.
Definition ast.h:4807
pm_node_t base
The embedded base node.
Definition ast.h:4809
struct pm_block_argument_node * block
IndexOperatorWriteNode::block.
Definition ast.h:4840
pm_location_t binary_operator_loc
IndexOperatorWriteNode::binary_operator_loc.
Definition ast.h:4850
struct pm_node * value
IndexOperatorWriteNode::value.
Definition ast.h:4855
pm_location_t opening_loc
IndexOperatorWriteNode::opening_loc.
Definition ast.h:4825
pm_location_t call_operator_loc
IndexOperatorWriteNode::call_operator_loc.
Definition ast.h:4820
pm_location_t closing_loc
IndexOperatorWriteNode::closing_loc.
Definition ast.h:4835
struct pm_arguments_node * arguments
IndexOperatorWriteNode::arguments.
Definition ast.h:4830
pm_constant_id_t binary_operator
IndexOperatorWriteNode::binary_operator.
Definition ast.h:4845
struct pm_node * receiver
IndexOperatorWriteNode::receiver.
Definition ast.h:4815
IndexOrWriteNode.
Definition ast.h:4876
pm_location_t closing_loc
IndexOrWriteNode::closing_loc.
Definition ast.h:4904
pm_location_t call_operator_loc
IndexOrWriteNode::call_operator_loc.
Definition ast.h:4889
pm_node_t base
The embedded base node.
Definition ast.h:4878
struct pm_block_argument_node * block
IndexOrWriteNode::block.
Definition ast.h:4909
pm_location_t operator_loc
IndexOrWriteNode::operator_loc.
Definition ast.h:4914
struct pm_node * receiver
IndexOrWriteNode::receiver.
Definition ast.h:4884
pm_location_t opening_loc
IndexOrWriteNode::opening_loc.
Definition ast.h:4894
struct pm_node * value
IndexOrWriteNode::value.
Definition ast.h:4919
struct pm_arguments_node * arguments
IndexOrWriteNode::arguments.
Definition ast.h:4899
IndexTargetNode.
Definition ast.h:4948
pm_node_t base
The embedded base node.
Definition ast.h:4950
struct pm_node * receiver
IndexTargetNode::receiver.
Definition ast.h:4956
pm_location_t closing_loc
IndexTargetNode::closing_loc.
Definition ast.h:4971
struct pm_arguments_node * arguments
IndexTargetNode::arguments.
Definition ast.h:4966
pm_location_t opening_loc
IndexTargetNode::opening_loc.
Definition ast.h:4961
struct pm_block_argument_node * block
IndexTargetNode::block.
Definition ast.h:4976
InstanceVariableAndWriteNode.
Definition ast.h:4991
pm_location_t operator_loc
InstanceVariableAndWriteNode::operator_loc.
Definition ast.h:5009
pm_location_t name_loc
InstanceVariableAndWriteNode::name_loc.
Definition ast.h:5004
struct pm_node * value
InstanceVariableAndWriteNode::value.
Definition ast.h:5014
pm_node_t base
The embedded base node.
Definition ast.h:4993
pm_constant_id_t name
InstanceVariableAndWriteNode::name.
Definition ast.h:4999
InstanceVariableOperatorWriteNode.
Definition ast.h:5029
struct pm_node * value
InstanceVariableOperatorWriteNode::value.
Definition ast.h:5052
pm_constant_id_t binary_operator
InstanceVariableOperatorWriteNode::binary_operator.
Definition ast.h:5057
pm_location_t binary_operator_loc
InstanceVariableOperatorWriteNode::binary_operator_loc.
Definition ast.h:5047
pm_constant_id_t name
InstanceVariableOperatorWriteNode::name.
Definition ast.h:5037
pm_node_t base
The embedded base node.
Definition ast.h:5031
pm_location_t name_loc
InstanceVariableOperatorWriteNode::name_loc.
Definition ast.h:5042
InstanceVariableOrWriteNode.
Definition ast.h:5072
pm_location_t operator_loc
InstanceVariableOrWriteNode::operator_loc.
Definition ast.h:5090
struct pm_node * value
InstanceVariableOrWriteNode::value.
Definition ast.h:5095
pm_node_t base
The embedded base node.
Definition ast.h:5074
pm_location_t name_loc
InstanceVariableOrWriteNode::name_loc.
Definition ast.h:5085
pm_constant_id_t name
InstanceVariableOrWriteNode::name.
Definition ast.h:5080
InstanceVariableReadNode.
Definition ast.h:5110
pm_constant_id_t name
InstanceVariableReadNode::name.
Definition ast.h:5124
pm_node_t base
The embedded base node.
Definition ast.h:5112
InstanceVariableTargetNode.
Definition ast.h:5139
pm_constant_id_t name
InstanceVariableTargetNode::name.
Definition ast.h:5147
pm_node_t base
The embedded base node.
Definition ast.h:5141
InstanceVariableWriteNode.
Definition ast.h:5162
pm_location_t operator_loc
InstanceVariableWriteNode::operator_loc.
Definition ast.h:5209
pm_constant_id_t name
InstanceVariableWriteNode::name.
Definition ast.h:5176
pm_node_t base
The embedded base node.
Definition ast.h:5164
struct pm_node * value
InstanceVariableWriteNode::value.
Definition ast.h:5199
pm_location_t name_loc
InstanceVariableWriteNode::name_loc.
Definition ast.h:5186
IntegerNode.
Definition ast.h:5230
pm_integer_t value
IntegerNode::value.
Definition ast.h:5240
pm_node_t base
The embedded base node.
Definition ast.h:5232
A structure represents an arbitrary-sized integer.
Definition pm_integer.h:20
InterpolatedMatchLastLineNode.
Definition ast.h:5268
pm_node_t base
The embedded base node.
Definition ast.h:5270
pm_location_t closing_loc
InterpolatedMatchLastLineNode::closing_loc.
Definition ast.h:5286
struct pm_node_list parts
InterpolatedMatchLastLineNode::parts.
Definition ast.h:5281
pm_location_t opening_loc
InterpolatedMatchLastLineNode::opening_loc.
Definition ast.h:5276
InterpolatedRegularExpressionNode.
Definition ast.h:5314
pm_location_t opening_loc
InterpolatedRegularExpressionNode::opening_loc.
Definition ast.h:5322
struct pm_node_list parts
InterpolatedRegularExpressionNode::parts.
Definition ast.h:5327
pm_node_t base
The embedded base node.
Definition ast.h:5316
pm_location_t closing_loc
InterpolatedRegularExpressionNode::closing_loc.
Definition ast.h:5332
InterpolatedStringNode.
Definition ast.h:5351
pm_node_t base
The embedded base node.
Definition ast.h:5353
pm_location_t closing_loc
InterpolatedStringNode::closing_loc.
Definition ast.h:5369
pm_location_t opening_loc
InterpolatedStringNode::opening_loc.
Definition ast.h:5359
struct pm_node_list parts
InterpolatedStringNode::parts.
Definition ast.h:5364
InterpolatedSymbolNode.
Definition ast.h:5384
struct pm_node_list parts
InterpolatedSymbolNode::parts.
Definition ast.h:5397
pm_location_t closing_loc
InterpolatedSymbolNode::closing_loc.
Definition ast.h:5402
pm_location_t opening_loc
InterpolatedSymbolNode::opening_loc.
Definition ast.h:5392
pm_node_t base
The embedded base node.
Definition ast.h:5386
InterpolatedXStringNode.
Definition ast.h:5417
pm_location_t opening_loc
InterpolatedXStringNode::opening_loc.
Definition ast.h:5425
pm_location_t closing_loc
InterpolatedXStringNode::closing_loc.
Definition ast.h:5435
pm_node_t base
The embedded base node.
Definition ast.h:5419
struct pm_node_list parts
InterpolatedXStringNode::parts.
Definition ast.h:5430
ItLocalVariableReadNode.
Definition ast.h:5450
pm_node_t base
The embedded base node.
Definition ast.h:5452
ItParametersNode.
Definition ast.h:5468
pm_node_t base
The embedded base node.
Definition ast.h:5470
KeywordHashNode.
Definition ast.h:5489
pm_node_t base
The embedded base node.
Definition ast.h:5491
struct pm_node_list elements
KeywordHashNode::elements.
Definition ast.h:5497
KeywordRestParameterNode.
Definition ast.h:5516
pm_node_t base
The embedded base node.
Definition ast.h:5518
pm_constant_id_t name
KeywordRestParameterNode::name.
Definition ast.h:5524
pm_location_t operator_loc
KeywordRestParameterNode::operator_loc.
Definition ast.h:5534
pm_location_t name_loc
KeywordRestParameterNode::name_loc.
Definition ast.h:5529
LambdaNode.
Definition ast.h:5549
pm_location_t closing_loc
LambdaNode::closing_loc.
Definition ast.h:5572
pm_node_t base
The embedded base node.
Definition ast.h:5551
struct pm_node * body
LambdaNode::body.
Definition ast.h:5582
pm_location_t opening_loc
LambdaNode::opening_loc.
Definition ast.h:5567
struct pm_node * parameters
LambdaNode::parameters.
Definition ast.h:5577
pm_location_t operator_loc
LambdaNode::operator_loc.
Definition ast.h:5562
pm_constant_id_list_t locals
LambdaNode::locals.
Definition ast.h:5557
LocalVariableAndWriteNode.
Definition ast.h:5597
pm_constant_id_t name
LocalVariableAndWriteNode::name.
Definition ast.h:5620
pm_node_t base
The embedded base node.
Definition ast.h:5599
uint32_t depth
LocalVariableAndWriteNode::depth.
Definition ast.h:5625
pm_location_t operator_loc
LocalVariableAndWriteNode::operator_loc.
Definition ast.h:5610
struct pm_node * value
LocalVariableAndWriteNode::value.
Definition ast.h:5615
pm_location_t name_loc
LocalVariableAndWriteNode::name_loc.
Definition ast.h:5605
LocalVariableOperatorWriteNode.
Definition ast.h:5640
uint32_t depth
LocalVariableOperatorWriteNode::depth.
Definition ast.h:5673
pm_constant_id_t binary_operator
LocalVariableOperatorWriteNode::binary_operator.
Definition ast.h:5668
pm_node_t base
The embedded base node.
Definition ast.h:5642
struct pm_node * value
LocalVariableOperatorWriteNode::value.
Definition ast.h:5658
pm_location_t name_loc
LocalVariableOperatorWriteNode::name_loc.
Definition ast.h:5648
pm_location_t binary_operator_loc
LocalVariableOperatorWriteNode::binary_operator_loc.
Definition ast.h:5653
pm_constant_id_t name
LocalVariableOperatorWriteNode::name.
Definition ast.h:5663
LocalVariableOrWriteNode.
Definition ast.h:5688
uint32_t depth
LocalVariableOrWriteNode::depth.
Definition ast.h:5716
pm_location_t operator_loc
LocalVariableOrWriteNode::operator_loc.
Definition ast.h:5701
struct pm_node * value
LocalVariableOrWriteNode::value.
Definition ast.h:5706
pm_node_t base
The embedded base node.
Definition ast.h:5690
pm_constant_id_t name
LocalVariableOrWriteNode::name.
Definition ast.h:5711
pm_location_t name_loc
LocalVariableOrWriteNode::name_loc.
Definition ast.h:5696
LocalVariableReadNode.
Definition ast.h:5731
uint32_t depth
LocalVariableReadNode::depth.
Definition ast.h:5762
pm_constant_id_t name
LocalVariableReadNode::name.
Definition ast.h:5749
pm_node_t base
The embedded base node.
Definition ast.h:5733
LocalVariableTargetNode.
Definition ast.h:5780
uint32_t depth
LocalVariableTargetNode::depth.
Definition ast.h:5793
pm_constant_id_t name
LocalVariableTargetNode::name.
Definition ast.h:5788
pm_node_t base
The embedded base node.
Definition ast.h:5782
LocalVariableWriteNode.
Definition ast.h:5808
pm_location_t operator_loc
LocalVariableWriteNode::operator_loc.
Definition ast.h:5872
pm_location_t name_loc
LocalVariableWriteNode::name_loc.
Definition ast.h:5845
pm_node_t base
The embedded base node.
Definition ast.h:5810
struct pm_node * value
LocalVariableWriteNode::value.
Definition ast.h:5862
uint32_t depth
LocalVariableWriteNode::depth.
Definition ast.h:5835
pm_constant_id_t name
LocalVariableWriteNode::name.
Definition ast.h:5822
This represents a range of bytes in the source string to which a node or token corresponds.
Definition ast.h:549
const uint8_t * start
A pointer to the start location of the range in the source.
Definition ast.h:551
const uint8_t * end
A pointer to the end location of the range in the source.
Definition ast.h:554
MatchLastLineNode.
Definition ast.h:5900
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:5902
MatchPredicateNode.
Definition ast.h:5938
pm_location_t operator_loc
MatchPredicateNode::operator_loc.
Definition ast.h:5956
struct pm_node * pattern
MatchPredicateNode::pattern.
Definition ast.h:5951
struct pm_node * value
MatchPredicateNode::value.
Definition ast.h:5946
pm_node_t base
The embedded base node.
Definition ast.h:5940
MatchRequiredNode.
Definition ast.h:5971
pm_node_t base
The embedded base node.
Definition ast.h:5973
pm_location_t operator_loc
MatchRequiredNode::operator_loc.
Definition ast.h:6043
struct pm_node * value
MatchRequiredNode::value.
Definition ast.h:5984
struct pm_node * pattern
MatchRequiredNode::pattern.
Definition ast.h:6033
MatchWriteNode.
Definition ast.h:6058
pm_node_t base
The embedded base node.
Definition ast.h:6060
struct pm_node_list targets
MatchWriteNode::targets.
Definition ast.h:6071
struct pm_call_node * call
MatchWriteNode::call.
Definition ast.h:6066
MissingNode.
Definition ast.h:6083
pm_node_t base
The embedded base node.
Definition ast.h:6085
ModuleNode.
Definition ast.h:6101
pm_location_t end_keyword_loc
ModuleNode::end_keyword_loc.
Definition ast.h:6129
struct pm_node * constant_path
ModuleNode::constant_path.
Definition ast.h:6119
struct pm_node * body
ModuleNode::body.
Definition ast.h:6124
pm_constant_id_list_t locals
ModuleNode::locals.
Definition ast.h:6109
pm_node_t base
The embedded base node.
Definition ast.h:6103
pm_location_t module_keyword_loc
ModuleNode::module_keyword_loc.
Definition ast.h:6114
pm_constant_id_t name
ModuleNode::name.
Definition ast.h:6134
MultiTargetNode.
Definition ast.h:6154
pm_node_t base
The embedded base node.
Definition ast.h:6156
pm_location_t lparen_loc
MultiTargetNode::lparen_loc.
Definition ast.h:6212
struct pm_node_list lefts
MultiTargetNode::lefts.
Definition ast.h:6172
struct pm_node * rest
MultiTargetNode::rest.
Definition ast.h:6192
pm_location_t rparen_loc
MultiTargetNode::rparen_loc.
Definition ast.h:6222
struct pm_node_list rights
MultiTargetNode::rights.
Definition ast.h:6202
MultiWriteNode.
Definition ast.h:6237
pm_location_t rparen_loc
MultiWriteNode::rparen_loc.
Definition ast.h:6305
struct pm_node * value
MultiWriteNode::value.
Definition ast.h:6325
struct pm_node * rest
MultiWriteNode::rest.
Definition ast.h:6275
struct pm_node_list rights
MultiWriteNode::rights.
Definition ast.h:6285
pm_location_t operator_loc
MultiWriteNode::operator_loc.
Definition ast.h:6315
pm_location_t lparen_loc
MultiWriteNode::lparen_loc.
Definition ast.h:6295
struct pm_node_list lefts
MultiWriteNode::lefts.
Definition ast.h:6255
pm_node_t base
The embedded base node.
Definition ast.h:6239
NextNode.
Definition ast.h:6340
struct pm_arguments_node * arguments
NextNode::arguments.
Definition ast.h:6348
pm_node_t base
The embedded base node.
Definition ast.h:6342
pm_location_t keyword_loc
NextNode::keyword_loc.
Definition ast.h:6353
NilNode.
Definition ast.h:6368
pm_node_t base
The embedded base node.
Definition ast.h:6370
NoKeywordsParameterNode.
Definition ast.h:6387
pm_location_t keyword_loc
NoKeywordsParameterNode::keyword_loc.
Definition ast.h:6400
pm_location_t operator_loc
NoKeywordsParameterNode::operator_loc.
Definition ast.h:6395
pm_node_t base
The embedded base node.
Definition ast.h:6389
A list of nodes in the source, most often used for lists of children.
Definition ast.h:562
size_t size
The number of nodes in the list.
Definition ast.h:564
struct pm_node ** nodes
The nodes in the list.
Definition ast.h:570
size_t capacity
The capacity of the list that has been allocated.
Definition ast.h:567
This is the base structure that represents a node in the syntax tree.
Definition ast.h:1073
pm_node_type_t type
This represents the type of the node.
Definition ast.h:1078
uint32_t node_id
The unique identifier for this node, which is deterministic based on the source.
Definition ast.h:1090
pm_node_flags_t flags
This represents any flags on the node.
Definition ast.h:1084
pm_location_t location
This is the location of the node in the source.
Definition ast.h:1096
NumberedParametersNode.
Definition ast.h:6415
pm_node_t base
The embedded base node.
Definition ast.h:6417
uint8_t maximum
NumberedParametersNode::maximum.
Definition ast.h:6423
NumberedReferenceReadNode.
Definition ast.h:6438
pm_node_t base
The embedded base node.
Definition ast.h:6440
uint32_t number
NumberedReferenceReadNode::number.
Definition ast.h:6454
OptionalKeywordParameterNode.
Definition ast.h:6473
pm_node_t base
The embedded base node.
Definition ast.h:6475
pm_constant_id_t name
OptionalKeywordParameterNode::name.
Definition ast.h:6481
struct pm_node * value
OptionalKeywordParameterNode::value.
Definition ast.h:6491
pm_location_t name_loc
OptionalKeywordParameterNode::name_loc.
Definition ast.h:6486
OptionalParameterNode.
Definition ast.h:6510
pm_location_t name_loc
OptionalParameterNode::name_loc.
Definition ast.h:6523
struct pm_node * value
OptionalParameterNode::value.
Definition ast.h:6533
pm_constant_id_t name
OptionalParameterNode::name.
Definition ast.h:6518
pm_node_t base
The embedded base node.
Definition ast.h:6512
pm_location_t operator_loc
OptionalParameterNode::operator_loc.
Definition ast.h:6528
OrNode.
Definition ast.h:6548
struct pm_node * left
OrNode::left.
Definition ast.h:6564
struct pm_node * right
OrNode::right.
Definition ast.h:6577
pm_node_t base
The embedded base node.
Definition ast.h:6550
pm_location_t operator_loc
OrNode::operator_loc.
Definition ast.h:6587
ParametersNode.
Definition ast.h:6603
struct pm_node * rest
ParametersNode::rest.
Definition ast.h:6621
struct pm_node_list requireds
ParametersNode::requireds.
Definition ast.h:6611
struct pm_block_parameter_node * block
ParametersNode::block.
Definition ast.h:6641
struct pm_node_list optionals
ParametersNode::optionals.
Definition ast.h:6616
struct pm_node_list posts
ParametersNode::posts.
Definition ast.h:6626
pm_node_t base
The embedded base node.
Definition ast.h:6605
struct pm_node * keyword_rest
ParametersNode::keyword_rest.
Definition ast.h:6636
struct pm_node_list keywords
ParametersNode::keywords.
Definition ast.h:6631
ParenthesesNode.
Definition ast.h:6659
struct pm_node * body
ParenthesesNode::body.
Definition ast.h:6667
pm_location_t closing_loc
ParenthesesNode::closing_loc.
Definition ast.h:6677
pm_node_t base
The embedded base node.
Definition ast.h:6661
pm_location_t opening_loc
ParenthesesNode::opening_loc.
Definition ast.h:6672
PinnedExpressionNode.
Definition ast.h:6692
pm_node_t base
The embedded base node.
Definition ast.h:6694
pm_location_t rparen_loc
PinnedExpressionNode::rparen_loc.
Definition ast.h:6735
struct pm_node * expression
PinnedExpressionNode::expression.
Definition ast.h:6705
pm_location_t lparen_loc
PinnedExpressionNode::lparen_loc.
Definition ast.h:6725
pm_location_t operator_loc
PinnedExpressionNode::operator_loc.
Definition ast.h:6715
PinnedVariableNode.
Definition ast.h:6750
struct pm_node * variable
PinnedVariableNode::variable.
Definition ast.h:6763
pm_node_t base
The embedded base node.
Definition ast.h:6752
pm_location_t operator_loc
PinnedVariableNode::operator_loc.
Definition ast.h:6773
PostExecutionNode.
Definition ast.h:6788
pm_location_t closing_loc
PostExecutionNode::closing_loc.
Definition ast.h:6811
struct pm_statements_node * statements
PostExecutionNode::statements.
Definition ast.h:6796
pm_node_t base
The embedded base node.
Definition ast.h:6790
pm_location_t opening_loc
PostExecutionNode::opening_loc.
Definition ast.h:6806
pm_location_t keyword_loc
PostExecutionNode::keyword_loc.
Definition ast.h:6801
PreExecutionNode.
Definition ast.h:6826
struct pm_statements_node * statements
PreExecutionNode::statements.
Definition ast.h:6834
pm_location_t closing_loc
PreExecutionNode::closing_loc.
Definition ast.h:6849
pm_location_t opening_loc
PreExecutionNode::opening_loc.
Definition ast.h:6844
pm_node_t base
The embedded base node.
Definition ast.h:6828
pm_location_t keyword_loc
PreExecutionNode::keyword_loc.
Definition ast.h:6839
ProgramNode.
Definition ast.h:6861
struct pm_statements_node * statements
ProgramNode::statements.
Definition ast.h:6874
pm_node_t base
The embedded base node.
Definition ast.h:6863
pm_constant_id_list_t locals
ProgramNode::locals.
Definition ast.h:6869
RangeNode.
Definition ast.h:6895
struct pm_node * right
RangeNode::right.
Definition ast.h:6925
pm_location_t operator_loc
RangeNode::operator_loc.
Definition ast.h:6932
pm_node_t base
The embedded base node.
Definition ast.h:6897
struct pm_node * left
RangeNode::left.
Definition ast.h:6911
RationalNode.
Definition ast.h:6953
pm_node_t base
The embedded base node.
Definition ast.h:6955
pm_integer_t denominator
RationalNode::denominator.
Definition ast.h:6974
pm_integer_t numerator
RationalNode::numerator.
Definition ast.h:6965
RedoNode.
Definition ast.h:6989
pm_node_t base
The embedded base node.
Definition ast.h:6991
RegularExpressionNode.
Definition ast.h:7020
pm_location_t closing_loc
RegularExpressionNode::closing_loc.
Definition ast.h:7038
pm_node_t base
The embedded base node.
Definition ast.h:7022
pm_string_t unescaped
RegularExpressionNode::unescaped.
Definition ast.h:7043
pm_location_t opening_loc
RegularExpressionNode::opening_loc.
Definition ast.h:7028
pm_location_t content_loc
RegularExpressionNode::content_loc.
Definition ast.h:7033
RequiredKeywordParameterNode.
Definition ast.h:7062
pm_location_t name_loc
RequiredKeywordParameterNode::name_loc.
Definition ast.h:7075
pm_node_t base
The embedded base node.
Definition ast.h:7064
pm_constant_id_t name
RequiredKeywordParameterNode::name.
Definition ast.h:7070
RequiredParameterNode.
Definition ast.h:7094
pm_constant_id_t name
RequiredParameterNode::name.
Definition ast.h:7102
pm_node_t base
The embedded base node.
Definition ast.h:7096
RescueModifierNode.
Definition ast.h:7117
pm_node_t base
The embedded base node.
Definition ast.h:7119
struct pm_node * rescue_expression
RescueModifierNode::rescue_expression.
Definition ast.h:7135
pm_location_t keyword_loc
RescueModifierNode::keyword_loc.
Definition ast.h:7130
struct pm_node * expression
RescueModifierNode::expression.
Definition ast.h:7125
RescueNode.
Definition ast.h:7155
pm_location_t keyword_loc
RescueNode::keyword_loc.
Definition ast.h:7163
struct pm_rescue_node * subsequent
RescueNode::subsequent.
Definition ast.h:7193
pm_location_t then_keyword_loc
RescueNode::then_keyword_loc.
Definition ast.h:7183
pm_location_t operator_loc
RescueNode::operator_loc.
Definition ast.h:7173
struct pm_node * reference
RescueNode::reference.
Definition ast.h:7178
struct pm_node_list exceptions
RescueNode::exceptions.
Definition ast.h:7168
struct pm_statements_node * statements
RescueNode::statements.
Definition ast.h:7188
pm_node_t base
The embedded base node.
Definition ast.h:7157
RestParameterNode.
Definition ast.h:7212
pm_constant_id_t name
RestParameterNode::name.
Definition ast.h:7220
pm_location_t name_loc
RestParameterNode::name_loc.
Definition ast.h:7225
pm_node_t base
The embedded base node.
Definition ast.h:7214
pm_location_t operator_loc
RestParameterNode::operator_loc.
Definition ast.h:7230
RetryNode.
Definition ast.h:7245
pm_node_t base
The embedded base node.
Definition ast.h:7247
ReturnNode.
Definition ast.h:7263
pm_location_t keyword_loc
ReturnNode::keyword_loc.
Definition ast.h:7271
pm_node_t base
The embedded base node.
Definition ast.h:7265
struct pm_arguments_node * arguments
ReturnNode::arguments.
Definition ast.h:7276
SelfNode.
Definition ast.h:7291
pm_node_t base
The embedded base node.
Definition ast.h:7293
ShareableConstantNode.
Definition ast.h:7315
struct pm_node * write
ShareableConstantNode::write.
Definition ast.h:7325
pm_node_t base
The embedded base node.
Definition ast.h:7317
SingletonClassNode.
Definition ast.h:7340
pm_node_t base
The embedded base node.
Definition ast.h:7342
pm_constant_id_list_t locals
SingletonClassNode::locals.
Definition ast.h:7348
pm_location_t operator_loc
SingletonClassNode::operator_loc.
Definition ast.h:7358
struct pm_node * expression
SingletonClassNode::expression.
Definition ast.h:7363
pm_location_t end_keyword_loc
SingletonClassNode::end_keyword_loc.
Definition ast.h:7373
pm_location_t class_keyword_loc
SingletonClassNode::class_keyword_loc.
Definition ast.h:7353
struct pm_node * body
SingletonClassNode::body.
Definition ast.h:7368
SourceEncodingNode.
Definition ast.h:7388
pm_node_t base
The embedded base node.
Definition ast.h:7390
SourceFileNode.
Definition ast.h:7412
pm_string_t filepath
SourceFileNode::filepath.
Definition ast.h:7422
pm_node_t base
The embedded base node.
Definition ast.h:7414
SourceLineNode.
Definition ast.h:7437
pm_node_t base
The embedded base node.
Definition ast.h:7439
SplatNode.
Definition ast.h:7455
struct pm_node * expression
SplatNode::expression.
Definition ast.h:7468
pm_node_t base
The embedded base node.
Definition ast.h:7457
pm_location_t operator_loc
SplatNode::operator_loc.
Definition ast.h:7463
StatementsNode.
Definition ast.h:7483
struct pm_node_list body
StatementsNode::body.
Definition ast.h:7491
pm_node_t base
The embedded base node.
Definition ast.h:7485
StringNode.
Definition ast.h:7518
pm_node_t base
The embedded base node.
Definition ast.h:7520
pm_string_t unescaped
StringNode::unescaped.
Definition ast.h:7541
pm_location_t content_loc
StringNode::content_loc.
Definition ast.h:7531
pm_location_t closing_loc
StringNode::closing_loc.
Definition ast.h:7536
pm_location_t opening_loc
StringNode::opening_loc.
Definition ast.h:7526
A generic string type that can have various ownership semantics.
Definition pm_string.h:33
SuperNode.
Definition ast.h:7559
struct pm_arguments_node * arguments
SuperNode::arguments.
Definition ast.h:7577
pm_location_t lparen_loc
SuperNode::lparen_loc.
Definition ast.h:7572
pm_node_t base
The embedded base node.
Definition ast.h:7561
pm_location_t keyword_loc
SuperNode::keyword_loc.
Definition ast.h:7567
pm_location_t rparen_loc
SuperNode::rparen_loc.
Definition ast.h:7582
struct pm_node * block
SuperNode::block.
Definition ast.h:7587
SymbolNode.
Definition ast.h:7610
pm_location_t opening_loc
SymbolNode::opening_loc.
Definition ast.h:7618
pm_location_t value_loc
SymbolNode::value_loc.
Definition ast.h:7623
pm_location_t closing_loc
SymbolNode::closing_loc.
Definition ast.h:7628
pm_string_t unescaped
SymbolNode::unescaped.
Definition ast.h:7633
pm_node_t base
The embedded base node.
Definition ast.h:7612
This struct represents a token in the Ruby source.
Definition ast.h:534
const uint8_t * end
A pointer to the end location of the token in the source.
Definition ast.h:542
const uint8_t * start
A pointer to the start location of the token in the source.
Definition ast.h:539
pm_token_type_t type
The type of the token.
Definition ast.h:536
TrueNode.
Definition ast.h:7648
pm_node_t base
The embedded base node.
Definition ast.h:7650
UndefNode.
Definition ast.h:7666
pm_node_t base
The embedded base node.
Definition ast.h:7668
pm_location_t keyword_loc
UndefNode::keyword_loc.
Definition ast.h:7679
struct pm_node_list names
UndefNode::names.
Definition ast.h:7674
UnlessNode.
Definition ast.h:7697
pm_location_t keyword_loc
UnlessNode::keyword_loc.
Definition ast.h:7713
pm_location_t then_keyword_loc
UnlessNode::then_keyword_loc.
Definition ast.h:7736
pm_location_t end_keyword_loc
UnlessNode::end_keyword_loc.
Definition ast.h:7767
pm_node_t base
The embedded base node.
Definition ast.h:7699
struct pm_statements_node * statements
UnlessNode::statements.
Definition ast.h:7747
struct pm_node * predicate
UnlessNode::predicate.
Definition ast.h:7726
struct pm_else_node * else_clause
UnlessNode::else_clause.
Definition ast.h:7757
UntilNode.
Definition ast.h:7788
struct pm_statements_node * statements
UntilNode::statements.
Definition ast.h:7816
pm_location_t closing_loc
UntilNode::closing_loc.
Definition ast.h:7806
struct pm_node * predicate
UntilNode::predicate.
Definition ast.h:7811
pm_location_t keyword_loc
UntilNode::keyword_loc.
Definition ast.h:7796
pm_node_t base
The embedded base node.
Definition ast.h:7790
pm_location_t do_keyword_loc
UntilNode::do_keyword_loc.
Definition ast.h:7801
WhenNode.
Definition ast.h:7833
struct pm_statements_node * statements
WhenNode::statements.
Definition ast.h:7856
pm_node_t base
The embedded base node.
Definition ast.h:7835
pm_location_t then_keyword_loc
WhenNode::then_keyword_loc.
Definition ast.h:7851
pm_location_t keyword_loc
WhenNode::keyword_loc.
Definition ast.h:7841
struct pm_node_list conditions
WhenNode::conditions.
Definition ast.h:7846
WhileNode.
Definition ast.h:7877
pm_location_t closing_loc
WhileNode::closing_loc.
Definition ast.h:7895
pm_location_t keyword_loc
WhileNode::keyword_loc.
Definition ast.h:7885
struct pm_statements_node * statements
WhileNode::statements.
Definition ast.h:7905
pm_node_t base
The embedded base node.
Definition ast.h:7879
pm_location_t do_keyword_loc
WhileNode::do_keyword_loc.
Definition ast.h:7890
struct pm_node * predicate
WhileNode::predicate.
Definition ast.h:7900
XStringNode.
Definition ast.h:7924
pm_location_t closing_loc
XStringNode::closing_loc.
Definition ast.h:7942
pm_location_t opening_loc
XStringNode::opening_loc.
Definition ast.h:7932
pm_location_t content_loc
XStringNode::content_loc.
Definition ast.h:7937
pm_string_t unescaped
XStringNode::unescaped.
Definition ast.h:7947
pm_node_t base
The embedded base node.
Definition ast.h:7926
YieldNode.
Definition ast.h:7962
pm_location_t keyword_loc
YieldNode::keyword_loc.
Definition ast.h:7970
pm_location_t lparen_loc
YieldNode::lparen_loc.
Definition ast.h:7975
pm_node_t base
The embedded base node.
Definition ast.h:7964
pm_location_t rparen_loc
YieldNode::rparen_loc.
Definition ast.h:7985
struct pm_arguments_node * arguments
YieldNode::arguments.
Definition ast.h:7980