32typedef enum pm_token_type {
52 PM_TOKEN_KEYWORD_ELSE,
55 PM_TOKEN_KEYWORD_ELSIF,
61 PM_TOKEN_KEYWORD_ENSURE,
67 PM_TOKEN_KEYWORD_RESCUE,
70 PM_TOKEN_KEYWORD_THEN,
73 PM_TOKEN_KEYWORD_WHEN,
79 PM_TOKEN_NEWLINE_TERMINATOR,
82 PM_TOKEN_PARENTHESIS_RIGHT,
94 PM_TOKEN_AMPERSAND_AMPERSAND,
97 PM_TOKEN_AMPERSAND_AMPERSAND_EQUAL,
100 PM_TOKEN_AMPERSAND_DOT,
103 PM_TOKEN_AMPERSAND_EQUAL,
109 PM_TOKEN_BACK_REFERENCE,
124 PM_TOKEN_BRACE_LEFT_ARGUMENT,
127 PM_TOKEN_BRACE_LEFT_HASH,
130 PM_TOKEN_BRACKET_LEFT,
133 PM_TOKEN_BRACKET_LEFT_ARRAY,
136 PM_TOKEN_BRACKET_LEFT_RIGHT,
139 PM_TOKEN_BRACKET_LEFT_RIGHT_EQUAL,
142 PM_TOKEN_BRACKET_RIGHT,
148 PM_TOKEN_CARET_EQUAL,
151 PM_TOKEN_CHARACTER_LITERAL,
154 PM_TOKEN_CLASS_VARIABLE,
160 PM_TOKEN_COLON_COLON,
175 PM_TOKEN_DOT_DOT_DOT,
178 PM_TOKEN_EMBDOC_BEGIN,
184 PM_TOKEN_EMBDOC_LINE,
187 PM_TOKEN_EMBEXPR_BEGIN,
196 PM_TOKEN_EQUAL_EQUAL,
199 PM_TOKEN_EQUAL_EQUAL_EQUAL,
202 PM_TOKEN_EQUAL_GREATER,
205 PM_TOKEN_EQUAL_TILDE,
211 PM_TOKEN_FLOAT_IMAGINARY,
214 PM_TOKEN_FLOAT_RATIONAL,
217 PM_TOKEN_FLOAT_RATIONAL_IMAGINARY,
220 PM_TOKEN_GLOBAL_VARIABLE,
226 PM_TOKEN_GREATER_EQUAL,
229 PM_TOKEN_GREATER_GREATER,
232 PM_TOKEN_GREATER_GREATER_EQUAL,
235 PM_TOKEN_HEREDOC_START,
241 PM_TOKEN_IGNORED_NEWLINE,
244 PM_TOKEN_INSTANCE_VARIABLE,
250 PM_TOKEN_INTEGER_IMAGINARY,
253 PM_TOKEN_INTEGER_RATIONAL,
256 PM_TOKEN_INTEGER_RATIONAL_IMAGINARY,
259 PM_TOKEN_KEYWORD_ALIAS,
262 PM_TOKEN_KEYWORD_AND,
265 PM_TOKEN_KEYWORD_BEGIN,
268 PM_TOKEN_KEYWORD_BEGIN_UPCASE,
271 PM_TOKEN_KEYWORD_BREAK,
274 PM_TOKEN_KEYWORD_CASE,
277 PM_TOKEN_KEYWORD_CLASS,
280 PM_TOKEN_KEYWORD_DEF,
283 PM_TOKEN_KEYWORD_DEFINED,
286 PM_TOKEN_KEYWORD_DO_BLOCK,
289 PM_TOKEN_KEYWORD_DO_LAMBDA,
292 PM_TOKEN_KEYWORD_DO_LOOP,
295 PM_TOKEN_KEYWORD_END_UPCASE,
298 PM_TOKEN_KEYWORD_FALSE,
301 PM_TOKEN_KEYWORD_FOR,
307 PM_TOKEN_KEYWORD_IF_MODIFIER,
310 PM_TOKEN_KEYWORD_MODULE,
313 PM_TOKEN_KEYWORD_NEXT,
316 PM_TOKEN_KEYWORD_NIL,
319 PM_TOKEN_KEYWORD_NOT,
325 PM_TOKEN_KEYWORD_REDO,
328 PM_TOKEN_KEYWORD_RESCUE_MODIFIER,
331 PM_TOKEN_KEYWORD_RETRY,
334 PM_TOKEN_KEYWORD_RETURN,
337 PM_TOKEN_KEYWORD_SELF,
340 PM_TOKEN_KEYWORD_SUPER,
343 PM_TOKEN_KEYWORD_TRUE,
346 PM_TOKEN_KEYWORD_UNDEF,
349 PM_TOKEN_KEYWORD_UNLESS,
352 PM_TOKEN_KEYWORD_UNLESS_MODIFIER,
355 PM_TOKEN_KEYWORD_UNTIL,
358 PM_TOKEN_KEYWORD_UNTIL_MODIFIER,
361 PM_TOKEN_KEYWORD_WHILE,
364 PM_TOKEN_KEYWORD_WHILE_MODIFIER,
367 PM_TOKEN_KEYWORD_YIELD,
370 PM_TOKEN_KEYWORD___ENCODING__,
373 PM_TOKEN_KEYWORD___FILE__,
376 PM_TOKEN_KEYWORD___LINE__,
385 PM_TOKEN_LAMBDA_BEGIN,
394 PM_TOKEN_LESS_EQUAL_GREATER,
400 PM_TOKEN_LESS_LESS_EQUAL,
403 PM_TOKEN_METHOD_NAME,
409 PM_TOKEN_MINUS_EQUAL,
412 PM_TOKEN_MINUS_GREATER,
415 PM_TOKEN_NUMBERED_REFERENCE,
418 PM_TOKEN_PARENTHESIS_LEFT,
421 PM_TOKEN_PARENTHESIS_LEFT_GROUPING,
424 PM_TOKEN_PARENTHESIS_LEFT_PARENTHESES,
430 PM_TOKEN_PERCENT_EQUAL,
433 PM_TOKEN_PERCENT_LOWER_I,
436 PM_TOKEN_PERCENT_LOWER_W,
439 PM_TOKEN_PERCENT_LOWER_X,
442 PM_TOKEN_PERCENT_UPPER_I,
445 PM_TOKEN_PERCENT_UPPER_W,
454 PM_TOKEN_PIPE_PIPE_EQUAL,
463 PM_TOKEN_QUESTION_MARK,
466 PM_TOKEN_REGEXP_BEGIN,
475 PM_TOKEN_SLASH_EQUAL,
487 PM_TOKEN_STAR_STAR_EQUAL,
490 PM_TOKEN_STRING_BEGIN,
493 PM_TOKEN_STRING_CONTENT,
499 PM_TOKEN_SYMBOL_BEGIN,
508 PM_TOKEN_UCOLON_COLON,
514 PM_TOKEN_UDOT_DOT_DOT,
535 PM_TOKEN_WORDS_SEP_IMPLICIT,
538 PM_TOKEN_XSTRING_BEGIN,
609 PM_ALIAS_GLOBAL_VARIABLE_NODE = 1,
612 PM_ALIAS_METHOD_NODE = 2,
615 PM_ALTERNATION_PATTERN_NODE = 3,
621 PM_ARGUMENTS_NODE = 5,
627 PM_ARRAY_PATTERN_NODE = 7,
633 PM_ASSOC_SPLAT_NODE = 9,
636 PM_BACK_REFERENCE_READ_NODE = 10,
642 PM_BLOCK_ARGUMENT_NODE = 12,
645 PM_BLOCK_LOCAL_VARIABLE_NODE = 13,
651 PM_BLOCK_PARAMETER_NODE = 15,
654 PM_BLOCK_PARAMETERS_NODE = 16,
660 PM_CALL_AND_WRITE_NODE = 18,
666 PM_CALL_OPERATOR_WRITE_NODE = 20,
669 PM_CALL_OR_WRITE_NODE = 21,
672 PM_CALL_TARGET_NODE = 22,
675 PM_CAPTURE_PATTERN_NODE = 23,
678 PM_CASE_MATCH_NODE = 24,
687 PM_CLASS_VARIABLE_AND_WRITE_NODE = 27,
690 PM_CLASS_VARIABLE_OPERATOR_WRITE_NODE = 28,
693 PM_CLASS_VARIABLE_OR_WRITE_NODE = 29,
696 PM_CLASS_VARIABLE_READ_NODE = 30,
699 PM_CLASS_VARIABLE_TARGET_NODE = 31,
702 PM_CLASS_VARIABLE_WRITE_NODE = 32,
705 PM_CONSTANT_AND_WRITE_NODE = 33,
708 PM_CONSTANT_OPERATOR_WRITE_NODE = 34,
711 PM_CONSTANT_OR_WRITE_NODE = 35,
714 PM_CONSTANT_PATH_AND_WRITE_NODE = 36,
717 PM_CONSTANT_PATH_NODE = 37,
720 PM_CONSTANT_PATH_OPERATOR_WRITE_NODE = 38,
723 PM_CONSTANT_PATH_OR_WRITE_NODE = 39,
726 PM_CONSTANT_PATH_TARGET_NODE = 40,
729 PM_CONSTANT_PATH_WRITE_NODE = 41,
732 PM_CONSTANT_READ_NODE = 42,
735 PM_CONSTANT_TARGET_NODE = 43,
738 PM_CONSTANT_WRITE_NODE = 44,
744 PM_DEFINED_NODE = 46,
750 PM_EMBEDDED_STATEMENTS_NODE = 48,
753 PM_EMBEDDED_VARIABLE_NODE = 49,
759 PM_ERROR_RECOVERY_NODE = 51,
765 PM_FIND_PATTERN_NODE = 53,
768 PM_FLIP_FLOP_NODE = 54,
777 PM_FORWARDING_ARGUMENTS_NODE = 57,
780 PM_FORWARDING_PARAMETER_NODE = 58,
783 PM_FORWARDING_SUPER_NODE = 59,
786 PM_GLOBAL_VARIABLE_AND_WRITE_NODE = 60,
789 PM_GLOBAL_VARIABLE_OPERATOR_WRITE_NODE = 61,
792 PM_GLOBAL_VARIABLE_OR_WRITE_NODE = 62,
795 PM_GLOBAL_VARIABLE_READ_NODE = 63,
798 PM_GLOBAL_VARIABLE_TARGET_NODE = 64,
801 PM_GLOBAL_VARIABLE_WRITE_NODE = 65,
807 PM_HASH_PATTERN_NODE = 67,
813 PM_IMAGINARY_NODE = 69,
816 PM_IMPLICIT_NODE = 70,
819 PM_IMPLICIT_REST_NODE = 71,
825 PM_INDEX_AND_WRITE_NODE = 73,
828 PM_INDEX_OPERATOR_WRITE_NODE = 74,
831 PM_INDEX_OR_WRITE_NODE = 75,
834 PM_INDEX_TARGET_NODE = 76,
837 PM_INSTANCE_VARIABLE_AND_WRITE_NODE = 77,
840 PM_INSTANCE_VARIABLE_OPERATOR_WRITE_NODE = 78,
843 PM_INSTANCE_VARIABLE_OR_WRITE_NODE = 79,
846 PM_INSTANCE_VARIABLE_READ_NODE = 80,
849 PM_INSTANCE_VARIABLE_TARGET_NODE = 81,
852 PM_INSTANCE_VARIABLE_WRITE_NODE = 82,
855 PM_INTEGER_NODE = 83,
858 PM_INTERPOLATED_MATCH_LAST_LINE_NODE = 84,
861 PM_INTERPOLATED_REGULAR_EXPRESSION_NODE = 85,
864 PM_INTERPOLATED_STRING_NODE = 86,
867 PM_INTERPOLATED_SYMBOL_NODE = 87,
870 PM_INTERPOLATED_X_STRING_NODE = 88,
873 PM_IT_LOCAL_VARIABLE_READ_NODE = 89,
876 PM_IT_PARAMETERS_NODE = 90,
879 PM_KEYWORD_HASH_NODE = 91,
882 PM_KEYWORD_REST_PARAMETER_NODE = 92,
888 PM_LOCAL_VARIABLE_AND_WRITE_NODE = 94,
891 PM_LOCAL_VARIABLE_OPERATOR_WRITE_NODE = 95,
894 PM_LOCAL_VARIABLE_OR_WRITE_NODE = 96,
897 PM_LOCAL_VARIABLE_READ_NODE = 97,
900 PM_LOCAL_VARIABLE_TARGET_NODE = 98,
903 PM_LOCAL_VARIABLE_WRITE_NODE = 99,
906 PM_MATCH_LAST_LINE_NODE = 100,
909 PM_MATCH_PREDICATE_NODE = 101,
912 PM_MATCH_REQUIRED_NODE = 102,
915 PM_MATCH_WRITE_NODE = 103,
918 PM_MODULE_NODE = 104,
921 PM_MULTI_TARGET_NODE = 105,
924 PM_MULTI_WRITE_NODE = 106,
933 PM_NO_BLOCK_PARAMETER_NODE = 109,
936 PM_NO_KEYWORDS_PARAMETER_NODE = 110,
939 PM_NUMBERED_PARAMETERS_NODE = 111,
942 PM_NUMBERED_REFERENCE_READ_NODE = 112,
945 PM_OPTIONAL_KEYWORD_PARAMETER_NODE = 113,
948 PM_OPTIONAL_PARAMETER_NODE = 114,
954 PM_PARAMETERS_NODE = 116,
957 PM_PARENTHESES_NODE = 117,
960 PM_PINNED_EXPRESSION_NODE = 118,
963 PM_PINNED_VARIABLE_NODE = 119,
966 PM_POST_EXECUTION_NODE = 120,
969 PM_PRE_EXECUTION_NODE = 121,
972 PM_PROGRAM_NODE = 122,
978 PM_RATIONAL_NODE = 124,
984 PM_REGULAR_EXPRESSION_NODE = 126,
987 PM_REQUIRED_KEYWORD_PARAMETER_NODE = 127,
990 PM_REQUIRED_PARAMETER_NODE = 128,
993 PM_RESCUE_MODIFIER_NODE = 129,
996 PM_RESCUE_NODE = 130,
999 PM_REST_PARAMETER_NODE = 131,
1002 PM_RETRY_NODE = 132,
1005 PM_RETURN_NODE = 133,
1011 PM_SHAREABLE_CONSTANT_NODE = 135,
1014 PM_SINGLETON_CLASS_NODE = 136,
1017 PM_SOURCE_ENCODING_NODE = 137,
1020 PM_SOURCE_FILE_NODE = 138,
1023 PM_SOURCE_LINE_NODE = 139,
1026 PM_SPLAT_NODE = 140,
1029 PM_STATEMENTS_NODE = 141,
1032 PM_STRING_NODE = 142,
1035 PM_SUPER_NODE = 143,
1038 PM_SYMBOL_NODE = 144,
1044 PM_UNDEF_NODE = 146,
1047 PM_UNLESS_NODE = 147,
1050 PM_UNTIL_NODE = 148,
1056 PM_WHILE_NODE = 150,
1059 PM_X_STRING_NODE = 151,
1062 PM_YIELD_NODE = 152,
1072typedef uint16_t pm_node_type_t;
1078typedef uint16_t pm_node_flags_t;
1084static const pm_node_flags_t PM_NODE_FLAG_NEWLINE = 0x1;
1085static const pm_node_flags_t PM_NODE_FLAG_STATIC_LITERAL = 0x2;
1122#define PM_NODE_UPCAST(node_) ((pm_node_t *) (node_))
1128#define PM_NODE_TYPE(node_) ((enum pm_node_type) (node_)->type)
1133#define PM_NODE_TYPE_P(node_, type_) (PM_NODE_TYPE(node_) == (type_))
1138#define PM_NODE_FLAGS(node_) (PM_NODE_UPCAST(node_)->flags)
1143#define PM_NODE_FLAG_P(node_, flag_) ((PM_NODE_FLAGS(node_) & (flag_)) != 0)
1149#define PM_NODE_ALIGNAS __declspec(align(8))
1151#define PM_NODE_ALIGNAS PRISM_ALIGNAS(PRISM_ALIGNOF(void *))
1199} pm_alias_global_variable_node_t;
1258} pm_alias_method_node_t;
1305} pm_alternation_pattern_node_t;
1392} pm_arguments_node_t;
1538} pm_array_pattern_node_t;
1631} pm_assoc_splat_node_t;
1659} pm_back_reference_read_node_t;
1775} pm_block_argument_node_t;
1805} pm_block_local_variable_node_t;
1929} pm_block_parameter_node_t;
2006} pm_block_parameters_node_t;
2136} pm_call_and_write_node_t;
2379} pm_call_operator_write_node_t;
2472} pm_call_or_write_node_t;
2543} pm_call_target_node_t;
2590} pm_capture_pattern_node_t;
2659} pm_case_match_node_t;
2871} pm_class_variable_and_write_node_t;
2913} pm_class_variable_operator_write_node_t;
2950} pm_class_variable_or_write_node_t;
2978} pm_class_variable_read_node_t;
3000} pm_class_variable_target_node_t;
3061} pm_class_variable_write_node_t;
3098} pm_constant_and_write_node_t;
3140} pm_constant_operator_write_node_t;
3177} pm_constant_or_write_node_t;
3209} pm_constant_path_and_write_node_t;
3275} pm_constant_path_node_t;
3312} pm_constant_path_operator_write_node_t;
3344} pm_constant_path_or_write_node_t;
3381} pm_constant_path_target_node_t;
3437} pm_constant_path_write_node_t;
3465} pm_constant_read_node_t;
3487} pm_constant_target_node_t;
3548} pm_constant_write_node_t;
3727} pm_embedded_statements_node_t;
3754} pm_embedded_variable_node_t;
3811} pm_error_recovery_node_t;
3929} pm_find_pattern_node_t;
3964} pm_flip_flop_node_t;
4096} pm_forwarding_arguments_node_t;
4114} pm_forwarding_parameter_node_t;
4154} pm_forwarding_super_node_t;
4191} pm_global_variable_and_write_node_t;
4233} pm_global_variable_operator_write_node_t;
4270} pm_global_variable_or_write_node_t;
4298} pm_global_variable_read_node_t;
4320} pm_global_variable_target_node_t;
4381} pm_global_variable_write_node_t;
4522} pm_hash_pattern_node_t;
4655} pm_imaginary_node_t;
4683} pm_implicit_node_t;
4709} pm_implicit_rest_node_t;
4809} pm_index_and_write_node_t;
4877} pm_index_operator_write_node_t;
4940} pm_index_or_write_node_t;
4996} pm_index_target_node_t;
5033} pm_instance_variable_and_write_node_t;
5075} pm_instance_variable_operator_write_node_t;
5112} pm_instance_variable_or_write_node_t;
5140} pm_instance_variable_read_node_t;
5162} pm_instance_variable_target_node_t;
5223} pm_instance_variable_write_node_t;
5298} pm_interpolated_match_last_line_node_t;
5343} pm_interpolated_regular_expression_node_t;
5379} pm_interpolated_string_node_t;
5411} pm_interpolated_symbol_node_t;
5443} pm_interpolated_x_string_node_t;
5460} pm_it_local_variable_read_node_t;
5477} pm_it_parameters_node_t;
5502} pm_keyword_hash_node_t;
5538} pm_keyword_rest_parameter_node_t;
5627} pm_local_variable_and_write_node_t;
5674} pm_local_variable_operator_write_node_t;
5716} pm_local_variable_or_write_node_t;
5761} pm_local_variable_read_node_t;
5791} pm_local_variable_target_node_t;
5869} pm_local_variable_write_node_t;
5919} pm_match_last_line_node_t;
5951} pm_match_predicate_node_t;
6037} pm_match_required_node_t;
6064} pm_match_write_node_t;
6198} pm_multi_target_node_t;
6300} pm_multi_write_node_t;
6372} pm_no_block_parameter_node_t;
6400} pm_no_keywords_parameter_node_t;
6422} pm_numbered_parameters_node_t;
6452} pm_numbered_reference_read_node_t;
6488} pm_optional_keyword_parameter_node_t;
6529} pm_optional_parameter_node_t;
6635} pm_parameters_node_t;
6670} pm_parentheses_node_t;
6727} pm_pinned_expression_node_t;
6764} pm_pinned_variable_node_t;
6801} pm_post_execution_node_t;
6838} pm_pre_execution_node_t;
6960} pm_rational_node_t;
7027} pm_regular_expression_node_t;
7058} pm_required_keyword_parameter_node_t;
7084} pm_required_parameter_node_t;
7116} pm_rescue_modifier_node_t;
7209} pm_rest_parameter_node_t;
7300} pm_shareable_constant_node_t;
7347} pm_singleton_class_node_t;
7364} pm_source_encoding_node_t;
7394} pm_source_file_node_t;
7411} pm_source_line_node_t;
7463} pm_statements_node_t;
7913} pm_x_string_node_t;
7955typedef enum pm_arguments_node_flags {
7957 PM_ARGUMENTS_NODE_FLAGS_CONTAINS_FORWARDING = 4,
7960 PM_ARGUMENTS_NODE_FLAGS_CONTAINS_KEYWORDS = 8,
7963 PM_ARGUMENTS_NODE_FLAGS_CONTAINS_KEYWORD_SPLAT = 16,
7966 PM_ARGUMENTS_NODE_FLAGS_CONTAINS_SPLAT = 32,
7969 PM_ARGUMENTS_NODE_FLAGS_CONTAINS_MULTIPLE_SPLATS = 64,
7971 PM_ARGUMENTS_NODE_FLAGS_LAST,
7972} pm_arguments_node_flags_t;
7977typedef enum pm_array_node_flags {
7979 PM_ARRAY_NODE_FLAGS_CONTAINS_SPLAT = 4,
7981 PM_ARRAY_NODE_FLAGS_LAST,
7982} pm_array_node_flags_t;
7987typedef enum pm_call_node_flags {
7989 PM_CALL_NODE_FLAGS_SAFE_NAVIGATION = 4,
7992 PM_CALL_NODE_FLAGS_VARIABLE_CALL = 8,
7995 PM_CALL_NODE_FLAGS_ATTRIBUTE_WRITE = 16,
7998 PM_CALL_NODE_FLAGS_IGNORE_VISIBILITY = 32,
8000 PM_CALL_NODE_FLAGS_LAST,
8001} pm_call_node_flags_t;
8006typedef enum pm_encoding_flags {
8008 PM_ENCODING_FLAGS_FORCED_UTF8_ENCODING = 4,
8011 PM_ENCODING_FLAGS_FORCED_BINARY_ENCODING = 8,
8013 PM_ENCODING_FLAGS_LAST,
8014} pm_encoding_flags_t;
8019typedef enum pm_integer_base_flags {
8021 PM_INTEGER_BASE_FLAGS_BINARY = 4,
8024 PM_INTEGER_BASE_FLAGS_DECIMAL = 8,
8027 PM_INTEGER_BASE_FLAGS_OCTAL = 16,
8030 PM_INTEGER_BASE_FLAGS_HEXADECIMAL = 32,
8032 PM_INTEGER_BASE_FLAGS_LAST,
8033} pm_integer_base_flags_t;
8038typedef enum pm_interpolated_string_node_flags {
8040 PM_INTERPOLATED_STRING_NODE_FLAGS_FROZEN = 4,
8043 PM_INTERPOLATED_STRING_NODE_FLAGS_MUTABLE = 8,
8045 PM_INTERPOLATED_STRING_NODE_FLAGS_LAST,
8046} pm_interpolated_string_node_flags_t;
8051typedef enum pm_keyword_hash_node_flags {
8053 PM_KEYWORD_HASH_NODE_FLAGS_SYMBOL_KEYS = 4,
8055 PM_KEYWORD_HASH_NODE_FLAGS_LAST,
8056} pm_keyword_hash_node_flags_t;
8061typedef enum pm_loop_flags {
8063 PM_LOOP_FLAGS_BEGIN_MODIFIER = 4,
8071typedef enum pm_parameter_flags {
8073 PM_PARAMETER_FLAGS_REPEATED_PARAMETER = 4,
8075 PM_PARAMETER_FLAGS_LAST,
8076} pm_parameter_flags_t;
8081typedef enum pm_parentheses_node_flags {
8083 PM_PARENTHESES_NODE_FLAGS_MULTIPLE_STATEMENTS = 4,
8085 PM_PARENTHESES_NODE_FLAGS_LAST,
8086} pm_parentheses_node_flags_t;
8091typedef enum pm_range_flags {
8093 PM_RANGE_FLAGS_EXCLUDE_END = 4,
8095 PM_RANGE_FLAGS_LAST,
8101typedef enum pm_regular_expression_flags {
8103 PM_REGULAR_EXPRESSION_FLAGS_IGNORE_CASE = 4,
8106 PM_REGULAR_EXPRESSION_FLAGS_EXTENDED = 8,
8109 PM_REGULAR_EXPRESSION_FLAGS_MULTI_LINE = 16,
8112 PM_REGULAR_EXPRESSION_FLAGS_ONCE = 32,
8115 PM_REGULAR_EXPRESSION_FLAGS_EUC_JP = 64,
8118 PM_REGULAR_EXPRESSION_FLAGS_ASCII_8BIT = 128,
8121 PM_REGULAR_EXPRESSION_FLAGS_WINDOWS_31J = 256,
8124 PM_REGULAR_EXPRESSION_FLAGS_UTF_8 = 512,
8127 PM_REGULAR_EXPRESSION_FLAGS_FORCED_UTF8_ENCODING = 1024,
8130 PM_REGULAR_EXPRESSION_FLAGS_FORCED_BINARY_ENCODING = 2048,
8133 PM_REGULAR_EXPRESSION_FLAGS_FORCED_US_ASCII_ENCODING = 4096,
8135 PM_REGULAR_EXPRESSION_FLAGS_LAST,
8136} pm_regular_expression_flags_t;
8141typedef enum pm_shareable_constant_node_flags {
8143 PM_SHAREABLE_CONSTANT_NODE_FLAGS_LITERAL = 4,
8146 PM_SHAREABLE_CONSTANT_NODE_FLAGS_EXPERIMENTAL_EVERYTHING = 8,
8149 PM_SHAREABLE_CONSTANT_NODE_FLAGS_EXPERIMENTAL_COPY = 16,
8151 PM_SHAREABLE_CONSTANT_NODE_FLAGS_LAST,
8152} pm_shareable_constant_node_flags_t;
8157typedef enum pm_statements_flags {
8159 PM_STATEMENTS_FLAGS_CONTAINS_PRE_EXECUTION = 4,
8161 PM_STATEMENTS_FLAGS_LAST,
8162} pm_statements_flags_t;
8167typedef enum pm_string_flags {
8169 PM_STRING_FLAGS_FORCED_UTF8_ENCODING = 4,
8172 PM_STRING_FLAGS_FORCED_BINARY_ENCODING = 8,
8175 PM_STRING_FLAGS_FROZEN = 16,
8178 PM_STRING_FLAGS_MUTABLE = 32,
8180 PM_STRING_FLAGS_LAST,
8186typedef enum pm_symbol_flags {
8188 PM_SYMBOL_FLAGS_FORCED_UTF8_ENCODING = 4,
8191 PM_SYMBOL_FLAGS_FORCED_BINARY_ENCODING = 8,
8194 PM_SYMBOL_FLAGS_FORCED_US_ASCII_ENCODING = 16,
8196 PM_SYMBOL_FLAGS_LAST,
8453PRISM_EXPORTED_FUNCTION pm_call_and_write_node_t * pm_call_and_write_node_new(
pm_arena_t *arena, uint32_t
node_id, pm_node_flags_t
flags,
pm_location_t location,
struct pm_node *receiver,
pm_location_t call_operator_loc,
pm_location_t message_loc,
pm_constant_id_t read_name,
pm_constant_id_t write_name,
pm_location_t operator_loc,
struct pm_node *value);
8473PRISM_EXPORTED_FUNCTION pm_call_node_t * pm_call_node_new(
pm_arena_t *arena, uint32_t
node_id, pm_node_flags_t
flags,
pm_location_t location,
struct pm_node *receiver,
pm_location_t call_operator_loc,
pm_constant_id_t name,
pm_location_t message_loc,
pm_location_t opening_loc,
struct pm_arguments_node *
arguments,
pm_location_t closing_loc,
pm_location_t equal_loc,
struct pm_node *block);
8492PRISM_EXPORTED_FUNCTION pm_call_operator_write_node_t * pm_call_operator_write_node_new(
pm_arena_t *arena, uint32_t
node_id, pm_node_flags_t
flags,
pm_location_t location,
struct pm_node *receiver,
pm_location_t call_operator_loc,
pm_location_t message_loc,
pm_constant_id_t read_name,
pm_constant_id_t write_name,
pm_constant_id_t binary_operator,
pm_location_t binary_operator_loc,
struct pm_node *value);
8510PRISM_EXPORTED_FUNCTION pm_call_or_write_node_t * pm_call_or_write_node_new(
pm_arena_t *arena, uint32_t
node_id, pm_node_flags_t
flags,
pm_location_t location,
struct pm_node *receiver,
pm_location_t call_operator_loc,
pm_location_t message_loc,
pm_constant_id_t read_name,
pm_constant_id_t write_name,
pm_location_t operator_loc,
struct pm_node *value);
8590PRISM_EXPORTED_FUNCTION pm_class_node_t * pm_class_node_new(
pm_arena_t *arena, uint32_t
node_id, pm_node_flags_t
flags,
pm_location_t location,
pm_constant_id_list_t locals,
pm_location_t class_keyword_loc,
struct pm_node *constant_path,
pm_location_t inheritance_operator_loc,
struct pm_node *superclass,
struct pm_node *body,
pm_location_t end_keyword_loc,
pm_constant_id_t name);
8870PRISM_EXPORTED_FUNCTION pm_def_node_t * pm_def_node_new(
pm_arena_t *arena, uint32_t
node_id, pm_node_flags_t
flags,
pm_location_t location,
pm_constant_id_t name,
pm_location_t name_loc,
struct pm_node *receiver,
struct pm_parameters_node *parameters,
struct pm_node *body,
pm_constant_id_list_t locals,
pm_location_t def_keyword_loc,
pm_location_t operator_loc,
pm_location_t lparen_loc,
pm_location_t rparen_loc,
pm_location_t equal_loc,
pm_location_t end_keyword_loc);
9024PRISM_EXPORTED_FUNCTION pm_for_node_t * pm_for_node_new(
pm_arena_t *arena, uint32_t
node_id, pm_node_flags_t
flags,
pm_location_t location,
struct pm_node *index,
struct pm_node *collection,
struct pm_statements_node *statements,
pm_location_t for_keyword_loc,
pm_location_t in_keyword_loc,
pm_location_t do_keyword_loc,
pm_location_t end_keyword_loc);
9260PRISM_EXPORTED_FUNCTION pm_index_and_write_node_t * pm_index_and_write_node_new(
pm_arena_t *arena, uint32_t
node_id, pm_node_flags_t
flags,
pm_location_t location,
struct pm_node *receiver,
pm_location_t call_operator_loc,
pm_location_t opening_loc,
struct pm_arguments_node *
arguments,
pm_location_t closing_loc,
struct pm_block_argument_node *block,
pm_location_t operator_loc,
struct pm_node *value);
9280PRISM_EXPORTED_FUNCTION pm_index_operator_write_node_t * pm_index_operator_write_node_new(
pm_arena_t *arena, uint32_t
node_id, pm_node_flags_t
flags,
pm_location_t location,
struct pm_node *receiver,
pm_location_t call_operator_loc,
pm_location_t opening_loc,
struct pm_arguments_node *
arguments,
pm_location_t closing_loc,
struct pm_block_argument_node *block,
pm_constant_id_t binary_operator,
pm_location_t binary_operator_loc,
struct pm_node *value);
9299PRISM_EXPORTED_FUNCTION pm_index_or_write_node_t * pm_index_or_write_node_new(
pm_arena_t *arena, uint32_t
node_id, pm_node_flags_t
flags,
pm_location_t location,
struct pm_node *receiver,
pm_location_t call_operator_loc,
pm_location_t opening_loc,
struct pm_arguments_node *
arguments,
pm_location_t closing_loc,
struct pm_block_argument_node *block,
pm_location_t operator_loc,
struct pm_node *value);
9745PRISM_EXPORTED_FUNCTION pm_multi_write_node_t * pm_multi_write_node_new(
pm_arena_t *arena, uint32_t
node_id, pm_node_flags_t
flags,
pm_location_t location, pm_node_list_t lefts,
struct pm_node *rest, pm_node_list_t rights,
pm_location_t lparen_loc,
pm_location_t rparen_loc,
pm_location_t operator_loc,
struct pm_node *value);
9880PRISM_EXPORTED_FUNCTION pm_parameters_node_t * pm_parameters_node_new(
pm_arena_t *arena, uint32_t
node_id, pm_node_flags_t
flags,
pm_location_t location, pm_node_list_t requireds, pm_node_list_t optionals,
struct pm_node *rest, pm_node_list_t posts, pm_node_list_t keywords,
struct pm_node *keyword_rest,
struct pm_node *block);
10075PRISM_EXPORTED_FUNCTION pm_rescue_node_t * pm_rescue_node_new(
pm_arena_t *arena, uint32_t
node_id, pm_node_flags_t
flags,
pm_location_t location,
pm_location_t keyword_loc, pm_node_list_t exceptions,
pm_location_t operator_loc,
struct pm_node *reference,
pm_location_t then_keyword_loc,
struct pm_statements_node *statements,
struct pm_rescue_node *subsequent);
10384#define PRISM_SERIALIZE_ONLY_SEMANTICS_FIELDS 0
A bump allocator for the prism parser.
A data structure that stores a set of strings.
uint32_t pm_constant_id_t
A constant id is a unique identifier for a constant in the constant pool.
#define PRISM_EXPORTED_FUNCTION
By default, we compile with -fvisibility=hidden.
This module provides functions for working with arbitrary-sized integers.
A view of a sequence of bytes owned by someone else.
PM_NODE_ALIGNAS struct pm_node * new_name
AliasGlobalVariableNode::new_name.
pm_node_t base
The embedded base node.
pm_location_t keyword_loc
AliasGlobalVariableNode::keyword_loc.
PM_NODE_ALIGNAS struct pm_node * old_name
AliasGlobalVariableNode::old_name.
PM_NODE_ALIGNAS struct pm_node * old_name
AliasMethodNode::old_name.
pm_node_t base
The embedded base node.
pm_location_t keyword_loc
AliasMethodNode::keyword_loc.
PM_NODE_ALIGNAS struct pm_node * new_name
AliasMethodNode::new_name.
pm_location_t operator_loc
AlternationPatternNode::operator_loc.
PM_NODE_ALIGNAS struct pm_node * left
AlternationPatternNode::left.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * right
AlternationPatternNode::right.
PM_NODE_ALIGNAS struct pm_node * left
AndNode::left.
PM_NODE_ALIGNAS struct pm_node * right
AndNode::right.
pm_location_t operator_loc
AndNode::operator_loc.
pm_node_t base
The embedded base node.
pm_node_t base
The embedded base node.
struct pm_node_list arguments
ArgumentsNode::arguments.
pm_node_t base
The embedded base node.
pm_location_t closing_loc
ArrayNode::closing_loc.
struct pm_node_list elements
ArrayNode::elements.
pm_location_t opening_loc
ArrayNode::opening_loc.
struct pm_node_list requireds
ArrayPatternNode::requireds.
PM_NODE_ALIGNAS struct pm_node * rest
ArrayPatternNode::rest.
PM_NODE_ALIGNAS struct pm_node * constant
ArrayPatternNode::constant.
pm_location_t opening_loc
ArrayPatternNode::opening_loc.
pm_node_t base
The embedded base node.
pm_location_t closing_loc
ArrayPatternNode::closing_loc.
struct pm_node_list posts
ArrayPatternNode::posts.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * value
AssocNode::value.
PM_NODE_ALIGNAS struct pm_node * key
AssocNode::key.
pm_location_t operator_loc
AssocNode::operator_loc.
pm_node_t base
The embedded base node.
pm_location_t operator_loc
AssocSplatNode::operator_loc.
PM_NODE_ALIGNAS struct pm_node * value
AssocSplatNode::value.
pm_constant_id_t name
BackReferenceReadNode::name.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_else_node * else_clause
BeginNode::else_clause.
PM_NODE_ALIGNAS struct pm_ensure_node * ensure_clause
BeginNode::ensure_clause.
PM_NODE_ALIGNAS struct pm_statements_node * statements
BeginNode::statements.
PM_NODE_ALIGNAS struct pm_rescue_node * rescue_clause
BeginNode::rescue_clause.
pm_node_t base
The embedded base node.
pm_location_t end_keyword_loc
BeginNode::end_keyword_loc.
pm_location_t begin_keyword_loc
BeginNode::begin_keyword_loc.
PM_NODE_ALIGNAS struct pm_node * expression
BlockArgumentNode::expression.
pm_node_t base
The embedded base node.
pm_location_t operator_loc
BlockArgumentNode::operator_loc.
pm_node_t base
The embedded base node.
pm_constant_id_t name
BlockLocalVariableNode::name.
pm_node_t base
The embedded base node.
pm_location_t closing_loc
BlockNode::closing_loc.
PM_NODE_ALIGNAS struct pm_node * parameters
BlockNode::parameters.
pm_location_t opening_loc
BlockNode::opening_loc.
pm_constant_id_list_t locals
BlockNode::locals.
PM_NODE_ALIGNAS struct pm_node * body
BlockNode::body.
pm_location_t operator_loc
BlockParameterNode::operator_loc.
pm_location_t name_loc
BlockParameterNode::name_loc.
pm_constant_id_t name
BlockParameterNode::name.
pm_node_t base
The embedded base node.
pm_node_t base
The embedded base node.
struct pm_node_list locals
BlockParametersNode::locals.
PM_NODE_ALIGNAS struct pm_parameters_node * parameters
BlockParametersNode::parameters.
pm_location_t closing_loc
BlockParametersNode::closing_loc.
pm_location_t opening_loc
BlockParametersNode::opening_loc.
pm_location_t keyword_loc
BreakNode::keyword_loc.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
BreakNode::arguments.
pm_location_t operator_loc
CallAndWriteNode::operator_loc.
PM_NODE_ALIGNAS struct pm_node * receiver
CallAndWriteNode::receiver.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * value
CallAndWriteNode::value.
pm_location_t call_operator_loc
CallAndWriteNode::call_operator_loc.
pm_location_t message_loc
CallAndWriteNode::message_loc.
pm_constant_id_t read_name
CallAndWriteNode::read_name.
pm_constant_id_t write_name
CallAndWriteNode::write_name.
pm_location_t opening_loc
CallNode::opening_loc.
pm_location_t closing_loc
CallNode::closing_loc.
pm_constant_id_t name
CallNode::name.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
CallNode::arguments.
pm_location_t equal_loc
CallNode::equal_loc.
pm_location_t call_operator_loc
CallNode::call_operator_loc.
pm_location_t message_loc
CallNode::message_loc.
PM_NODE_ALIGNAS struct pm_node * block
CallNode::block.
PM_NODE_ALIGNAS struct pm_node * receiver
CallNode::receiver.
pm_constant_id_t read_name
CallOperatorWriteNode::read_name.
pm_constant_id_t binary_operator
CallOperatorWriteNode::binary_operator.
pm_location_t binary_operator_loc
CallOperatorWriteNode::binary_operator_loc.
pm_node_t base
The embedded base node.
pm_constant_id_t write_name
CallOperatorWriteNode::write_name.
pm_location_t message_loc
CallOperatorWriteNode::message_loc.
PM_NODE_ALIGNAS struct pm_node * receiver
CallOperatorWriteNode::receiver.
PM_NODE_ALIGNAS struct pm_node * value
CallOperatorWriteNode::value.
pm_location_t call_operator_loc
CallOperatorWriteNode::call_operator_loc.
pm_location_t operator_loc
CallOrWriteNode::operator_loc.
pm_location_t call_operator_loc
CallOrWriteNode::call_operator_loc.
PM_NODE_ALIGNAS struct pm_node * receiver
CallOrWriteNode::receiver.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * value
CallOrWriteNode::value.
pm_constant_id_t write_name
CallOrWriteNode::write_name.
pm_constant_id_t read_name
CallOrWriteNode::read_name.
pm_location_t message_loc
CallOrWriteNode::message_loc.
pm_node_t base
The embedded base node.
pm_constant_id_t name
CallTargetNode::name.
PM_NODE_ALIGNAS struct pm_node * receiver
CallTargetNode::receiver.
pm_location_t call_operator_loc
CallTargetNode::call_operator_loc.
pm_location_t message_loc
CallTargetNode::message_loc.
pm_location_t operator_loc
CapturePatternNode::operator_loc.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * value
CapturePatternNode::value.
PM_NODE_ALIGNAS struct pm_local_variable_target_node * target
CapturePatternNode::target.
pm_location_t end_keyword_loc
CaseMatchNode::end_keyword_loc.
struct pm_node_list conditions
CaseMatchNode::conditions.
pm_node_t base
The embedded base node.
pm_location_t case_keyword_loc
CaseMatchNode::case_keyword_loc.
PM_NODE_ALIGNAS struct pm_node * predicate
CaseMatchNode::predicate.
PM_NODE_ALIGNAS struct pm_else_node * else_clause
CaseMatchNode::else_clause.
PM_NODE_ALIGNAS struct pm_else_node * else_clause
CaseNode::else_clause.
struct pm_node_list conditions
CaseNode::conditions.
PM_NODE_ALIGNAS struct pm_node * predicate
CaseNode::predicate.
pm_node_t base
The embedded base node.
pm_location_t case_keyword_loc
CaseNode::case_keyword_loc.
pm_location_t end_keyword_loc
CaseNode::end_keyword_loc.
pm_location_t class_keyword_loc
ClassNode::class_keyword_loc.
pm_location_t end_keyword_loc
ClassNode::end_keyword_loc.
pm_constant_id_list_t locals
ClassNode::locals.
PM_NODE_ALIGNAS struct pm_node * superclass
ClassNode::superclass.
pm_location_t inheritance_operator_loc
ClassNode::inheritance_operator_loc.
pm_constant_id_t name
ClassNode::name.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * constant_path
ClassNode::constant_path.
PM_NODE_ALIGNAS struct pm_node * body
ClassNode::body.
ClassVariableAndWriteNode.
PM_NODE_ALIGNAS struct pm_node * value
ClassVariableAndWriteNode::value.
pm_constant_id_t name
ClassVariableAndWriteNode::name.
pm_location_t operator_loc
ClassVariableAndWriteNode::operator_loc.
pm_node_t base
The embedded base node.
pm_location_t name_loc
ClassVariableAndWriteNode::name_loc.
ClassVariableOperatorWriteNode.
pm_node_t base
The embedded base node.
pm_constant_id_t name
ClassVariableOperatorWriteNode::name.
PM_NODE_ALIGNAS struct pm_node * value
ClassVariableOperatorWriteNode::value.
pm_location_t name_loc
ClassVariableOperatorWriteNode::name_loc.
pm_constant_id_t binary_operator
ClassVariableOperatorWriteNode::binary_operator.
pm_location_t binary_operator_loc
ClassVariableOperatorWriteNode::binary_operator_loc.
ClassVariableOrWriteNode.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * value
ClassVariableOrWriteNode::value.
pm_location_t name_loc
ClassVariableOrWriteNode::name_loc.
pm_location_t operator_loc
ClassVariableOrWriteNode::operator_loc.
pm_constant_id_t name
ClassVariableOrWriteNode::name.
pm_node_t base
The embedded base node.
pm_constant_id_t name
ClassVariableReadNode::name.
pm_node_t base
The embedded base node.
pm_constant_id_t name
ClassVariableTargetNode::name.
pm_location_t name_loc
ClassVariableWriteNode::name_loc.
PM_NODE_ALIGNAS struct pm_node * value
ClassVariableWriteNode::value.
pm_node_t base
The embedded base node.
pm_location_t operator_loc
ClassVariableWriteNode::operator_loc.
pm_constant_id_t name
ClassVariableWriteNode::name.
pm_location_t operator_loc
ConstantAndWriteNode::operator_loc.
PM_NODE_ALIGNAS struct pm_node * value
ConstantAndWriteNode::value.
pm_location_t name_loc
ConstantAndWriteNode::name_loc.
pm_constant_id_t name
ConstantAndWriteNode::name.
pm_node_t base
The embedded base node.
ConstantOperatorWriteNode.
pm_constant_id_t name
ConstantOperatorWriteNode::name.
pm_location_t name_loc
ConstantOperatorWriteNode::name_loc.
pm_constant_id_t binary_operator
ConstantOperatorWriteNode::binary_operator.
pm_location_t binary_operator_loc
ConstantOperatorWriteNode::binary_operator_loc.
PM_NODE_ALIGNAS struct pm_node * value
ConstantOperatorWriteNode::value.
pm_node_t base
The embedded base node.
pm_location_t operator_loc
ConstantOrWriteNode::operator_loc.
PM_NODE_ALIGNAS struct pm_node * value
ConstantOrWriteNode::value.
pm_location_t name_loc
ConstantOrWriteNode::name_loc.
pm_constant_id_t name
ConstantOrWriteNode::name.
pm_node_t base
The embedded base node.
ConstantPathAndWriteNode.
PM_NODE_ALIGNAS struct pm_constant_path_node * target
ConstantPathAndWriteNode::target.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * value
ConstantPathAndWriteNode::value.
pm_location_t operator_loc
ConstantPathAndWriteNode::operator_loc.
pm_location_t delimiter_loc
ConstantPathNode::delimiter_loc.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * parent
ConstantPathNode::parent.
pm_location_t name_loc
ConstantPathNode::name_loc.
pm_constant_id_t name
ConstantPathNode::name.
ConstantPathOperatorWriteNode.
PM_NODE_ALIGNAS struct pm_constant_path_node * target
ConstantPathOperatorWriteNode::target.
pm_constant_id_t binary_operator
ConstantPathOperatorWriteNode::binary_operator.
pm_node_t base
The embedded base node.
pm_location_t binary_operator_loc
ConstantPathOperatorWriteNode::binary_operator_loc.
PM_NODE_ALIGNAS struct pm_node * value
ConstantPathOperatorWriteNode::value.
pm_location_t operator_loc
ConstantPathOrWriteNode::operator_loc.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * value
ConstantPathOrWriteNode::value.
PM_NODE_ALIGNAS struct pm_constant_path_node * target
ConstantPathOrWriteNode::target.
pm_node_t base
The embedded base node.
pm_location_t delimiter_loc
ConstantPathTargetNode::delimiter_loc.
pm_constant_id_t name
ConstantPathTargetNode::name.
PM_NODE_ALIGNAS struct pm_node * parent
ConstantPathTargetNode::parent.
pm_location_t name_loc
ConstantPathTargetNode::name_loc.
PM_NODE_ALIGNAS struct pm_node * value
ConstantPathWriteNode::value.
pm_location_t operator_loc
ConstantPathWriteNode::operator_loc.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_constant_path_node * target
ConstantPathWriteNode::target.
pm_node_t base
The embedded base node.
pm_constant_id_t name
ConstantReadNode::name.
pm_node_t base
The embedded base node.
pm_constant_id_t name
ConstantTargetNode::name.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * value
ConstantWriteNode::value.
pm_constant_id_t name
ConstantWriteNode::name.
pm_location_t name_loc
ConstantWriteNode::name_loc.
pm_location_t operator_loc
ConstantWriteNode::operator_loc.
pm_location_t end_keyword_loc
DefNode::end_keyword_loc.
pm_constant_id_t name
DefNode::name.
pm_location_t name_loc
DefNode::name_loc.
pm_location_t rparen_loc
DefNode::rparen_loc.
PM_NODE_ALIGNAS struct pm_parameters_node * parameters
DefNode::parameters.
pm_location_t equal_loc
DefNode::equal_loc.
pm_location_t def_keyword_loc
DefNode::def_keyword_loc.
pm_node_t base
The embedded base node.
pm_location_t lparen_loc
DefNode::lparen_loc.
PM_NODE_ALIGNAS struct pm_node * receiver
DefNode::receiver.
PM_NODE_ALIGNAS struct pm_node * body
DefNode::body.
pm_location_t operator_loc
DefNode::operator_loc.
pm_constant_id_list_t locals
DefNode::locals.
PM_NODE_ALIGNAS struct pm_node * value
DefinedNode::value.
pm_location_t lparen_loc
DefinedNode::lparen_loc.
pm_node_t base
The embedded base node.
pm_location_t rparen_loc
DefinedNode::rparen_loc.
pm_location_t keyword_loc
DefinedNode::keyword_loc.
pm_location_t else_keyword_loc
ElseNode::else_keyword_loc.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_statements_node * statements
ElseNode::statements.
pm_location_t end_keyword_loc
ElseNode::end_keyword_loc.
PM_NODE_ALIGNAS struct pm_statements_node * statements
EmbeddedStatementsNode::statements.
pm_location_t closing_loc
EmbeddedStatementsNode::closing_loc.
pm_node_t base
The embedded base node.
pm_location_t opening_loc
EmbeddedStatementsNode::opening_loc.
PM_NODE_ALIGNAS struct pm_node * variable
EmbeddedVariableNode::variable.
pm_location_t operator_loc
EmbeddedVariableNode::operator_loc.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_statements_node * statements
EnsureNode::statements.
pm_node_t base
The embedded base node.
pm_location_t ensure_keyword_loc
EnsureNode::ensure_keyword_loc.
pm_location_t end_keyword_loc
EnsureNode::end_keyword_loc.
PM_NODE_ALIGNAS struct pm_node * unexpected
ErrorRecoveryNode::unexpected.
pm_node_t base
The embedded base node.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_splat_node * left
FindPatternNode::left.
PM_NODE_ALIGNAS struct pm_splat_node * right
FindPatternNode::right.
pm_location_t opening_loc
FindPatternNode::opening_loc.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * constant
FindPatternNode::constant.
struct pm_node_list requireds
FindPatternNode::requireds.
pm_location_t closing_loc
FindPatternNode::closing_loc.
PM_NODE_ALIGNAS struct pm_node * left
FlipFlopNode::left.
pm_node_t base
The embedded base node.
pm_location_t operator_loc
FlipFlopNode::operator_loc.
PM_NODE_ALIGNAS struct pm_node * right
FlipFlopNode::right.
double value
FloatNode::value.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * index
ForNode::index.
PM_NODE_ALIGNAS struct pm_node * collection
ForNode::collection.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_statements_node * statements
ForNode::statements.
pm_location_t end_keyword_loc
ForNode::end_keyword_loc.
pm_location_t for_keyword_loc
ForNode::for_keyword_loc.
pm_location_t do_keyword_loc
ForNode::do_keyword_loc.
pm_location_t in_keyword_loc
ForNode::in_keyword_loc.
pm_node_t base
The embedded base node.
pm_node_t base
The embedded base node.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_block_node * block
ForwardingSuperNode::block.
pm_location_t keyword_loc
ForwardingSuperNode::keyword_loc.
GlobalVariableAndWriteNode.
pm_location_t operator_loc
GlobalVariableAndWriteNode::operator_loc.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * value
GlobalVariableAndWriteNode::value.
pm_location_t name_loc
GlobalVariableAndWriteNode::name_loc.
pm_constant_id_t name
GlobalVariableAndWriteNode::name.
GlobalVariableOperatorWriteNode.
PM_NODE_ALIGNAS struct pm_node * value
GlobalVariableOperatorWriteNode::value.
pm_constant_id_t name
GlobalVariableOperatorWriteNode::name.
pm_constant_id_t binary_operator
GlobalVariableOperatorWriteNode::binary_operator.
pm_location_t name_loc
GlobalVariableOperatorWriteNode::name_loc.
pm_node_t base
The embedded base node.
pm_location_t binary_operator_loc
GlobalVariableOperatorWriteNode::binary_operator_loc.
GlobalVariableOrWriteNode.
pm_constant_id_t name
GlobalVariableOrWriteNode::name.
pm_location_t name_loc
GlobalVariableOrWriteNode::name_loc.
pm_node_t base
The embedded base node.
pm_location_t operator_loc
GlobalVariableOrWriteNode::operator_loc.
PM_NODE_ALIGNAS struct pm_node * value
GlobalVariableOrWriteNode::value.
pm_node_t base
The embedded base node.
pm_constant_id_t name
GlobalVariableReadNode::name.
GlobalVariableTargetNode.
pm_constant_id_t name
GlobalVariableTargetNode::name.
pm_node_t base
The embedded base node.
pm_location_t name_loc
GlobalVariableWriteNode::name_loc.
pm_location_t operator_loc
GlobalVariableWriteNode::operator_loc.
pm_constant_id_t name
GlobalVariableWriteNode::name.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * value
GlobalVariableWriteNode::value.
struct pm_node_list elements
HashNode::elements.
pm_node_t base
The embedded base node.
pm_location_t closing_loc
HashNode::closing_loc.
pm_location_t opening_loc
HashNode::opening_loc.
PM_NODE_ALIGNAS struct pm_node * constant
HashPatternNode::constant.
struct pm_node_list elements
HashPatternNode::elements.
pm_location_t opening_loc
HashPatternNode::opening_loc.
pm_node_t base
The embedded base node.
pm_location_t closing_loc
HashPatternNode::closing_loc.
PM_NODE_ALIGNAS struct pm_node * rest
HashPatternNode::rest.
PM_NODE_ALIGNAS struct pm_node * predicate
IfNode::predicate.
pm_location_t end_keyword_loc
IfNode::end_keyword_loc.
pm_location_t if_keyword_loc
IfNode::if_keyword_loc.
PM_NODE_ALIGNAS struct pm_statements_node * statements
IfNode::statements.
pm_node_t base
The embedded base node.
pm_location_t then_keyword_loc
IfNode::then_keyword_loc.
PM_NODE_ALIGNAS struct pm_node * subsequent
IfNode::subsequent.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * numeric
ImaginaryNode::numeric.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * value
ImplicitNode::value.
pm_node_t base
The embedded base node.
pm_location_t in_keyword_loc
InNode::in_keyword_loc.
PM_NODE_ALIGNAS struct pm_node * pattern
InNode::pattern.
PM_NODE_ALIGNAS struct pm_statements_node * statements
InNode::statements.
pm_location_t then_keyword_loc
InNode::then_keyword_loc.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
IndexAndWriteNode::arguments.
pm_node_t base
The embedded base node.
pm_location_t operator_loc
IndexAndWriteNode::operator_loc.
pm_location_t closing_loc
IndexAndWriteNode::closing_loc.
pm_location_t opening_loc
IndexAndWriteNode::opening_loc.
pm_location_t call_operator_loc
IndexAndWriteNode::call_operator_loc.
PM_NODE_ALIGNAS struct pm_block_argument_node * block
IndexAndWriteNode::block.
PM_NODE_ALIGNAS struct pm_node * receiver
IndexAndWriteNode::receiver.
PM_NODE_ALIGNAS struct pm_node * value
IndexAndWriteNode::value.
PM_NODE_ALIGNAS struct pm_block_argument_node * block
IndexOperatorWriteNode::block.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * receiver
IndexOperatorWriteNode::receiver.
pm_location_t binary_operator_loc
IndexOperatorWriteNode::binary_operator_loc.
PM_NODE_ALIGNAS struct pm_node * value
IndexOperatorWriteNode::value.
pm_location_t opening_loc
IndexOperatorWriteNode::opening_loc.
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
IndexOperatorWriteNode::arguments.
pm_location_t call_operator_loc
IndexOperatorWriteNode::call_operator_loc.
pm_location_t closing_loc
IndexOperatorWriteNode::closing_loc.
pm_constant_id_t binary_operator
IndexOperatorWriteNode::binary_operator.
pm_location_t closing_loc
IndexOrWriteNode::closing_loc.
pm_location_t call_operator_loc
IndexOrWriteNode::call_operator_loc.
pm_node_t base
The embedded base node.
pm_location_t operator_loc
IndexOrWriteNode::operator_loc.
pm_location_t opening_loc
IndexOrWriteNode::opening_loc.
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
IndexOrWriteNode::arguments.
PM_NODE_ALIGNAS struct pm_node * value
IndexOrWriteNode::value.
PM_NODE_ALIGNAS struct pm_node * receiver
IndexOrWriteNode::receiver.
PM_NODE_ALIGNAS struct pm_block_argument_node * block
IndexOrWriteNode::block.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
IndexTargetNode::arguments.
pm_location_t closing_loc
IndexTargetNode::closing_loc.
PM_NODE_ALIGNAS struct pm_block_argument_node * block
IndexTargetNode::block.
pm_location_t opening_loc
IndexTargetNode::opening_loc.
PM_NODE_ALIGNAS struct pm_node * receiver
IndexTargetNode::receiver.
InstanceVariableAndWriteNode.
PM_NODE_ALIGNAS struct pm_node * value
InstanceVariableAndWriteNode::value.
pm_location_t operator_loc
InstanceVariableAndWriteNode::operator_loc.
pm_location_t name_loc
InstanceVariableAndWriteNode::name_loc.
pm_node_t base
The embedded base node.
pm_constant_id_t name
InstanceVariableAndWriteNode::name.
InstanceVariableOperatorWriteNode.
pm_constant_id_t binary_operator
InstanceVariableOperatorWriteNode::binary_operator.
PM_NODE_ALIGNAS struct pm_node * value
InstanceVariableOperatorWriteNode::value.
pm_location_t binary_operator_loc
InstanceVariableOperatorWriteNode::binary_operator_loc.
pm_constant_id_t name
InstanceVariableOperatorWriteNode::name.
pm_node_t base
The embedded base node.
pm_location_t name_loc
InstanceVariableOperatorWriteNode::name_loc.
InstanceVariableOrWriteNode.
pm_location_t operator_loc
InstanceVariableOrWriteNode::operator_loc.
pm_node_t base
The embedded base node.
pm_location_t name_loc
InstanceVariableOrWriteNode::name_loc.
pm_constant_id_t name
InstanceVariableOrWriteNode::name.
PM_NODE_ALIGNAS struct pm_node * value
InstanceVariableOrWriteNode::value.
InstanceVariableReadNode.
pm_constant_id_t name
InstanceVariableReadNode::name.
pm_node_t base
The embedded base node.
InstanceVariableTargetNode.
pm_constant_id_t name
InstanceVariableTargetNode::name.
pm_node_t base
The embedded base node.
InstanceVariableWriteNode.
pm_location_t operator_loc
InstanceVariableWriteNode::operator_loc.
PM_NODE_ALIGNAS struct pm_node * value
InstanceVariableWriteNode::value.
pm_constant_id_t name
InstanceVariableWriteNode::name.
pm_node_t base
The embedded base node.
pm_location_t name_loc
InstanceVariableWriteNode::name_loc.
pm_integer_t value
IntegerNode::value.
pm_node_t base
The embedded base node.
A structure represents an arbitrary-sized integer.
InterpolatedMatchLastLineNode.
pm_node_t base
The embedded base node.
pm_location_t closing_loc
InterpolatedMatchLastLineNode::closing_loc.
struct pm_node_list parts
InterpolatedMatchLastLineNode::parts.
pm_location_t opening_loc
InterpolatedMatchLastLineNode::opening_loc.
InterpolatedRegularExpressionNode.
pm_location_t opening_loc
InterpolatedRegularExpressionNode::opening_loc.
struct pm_node_list parts
InterpolatedRegularExpressionNode::parts.
pm_node_t base
The embedded base node.
pm_location_t closing_loc
InterpolatedRegularExpressionNode::closing_loc.
pm_node_t base
The embedded base node.
pm_location_t closing_loc
InterpolatedStringNode::closing_loc.
pm_location_t opening_loc
InterpolatedStringNode::opening_loc.
struct pm_node_list parts
InterpolatedStringNode::parts.
struct pm_node_list parts
InterpolatedSymbolNode::parts.
pm_location_t closing_loc
InterpolatedSymbolNode::closing_loc.
pm_location_t opening_loc
InterpolatedSymbolNode::opening_loc.
pm_node_t base
The embedded base node.
pm_location_t opening_loc
InterpolatedXStringNode::opening_loc.
pm_location_t closing_loc
InterpolatedXStringNode::closing_loc.
pm_node_t base
The embedded base node.
struct pm_node_list parts
InterpolatedXStringNode::parts.
pm_node_t base
The embedded base node.
pm_node_t base
The embedded base node.
pm_node_t base
The embedded base node.
struct pm_node_list elements
KeywordHashNode::elements.
KeywordRestParameterNode.
pm_node_t base
The embedded base node.
pm_constant_id_t name
KeywordRestParameterNode::name.
pm_location_t operator_loc
KeywordRestParameterNode::operator_loc.
pm_location_t name_loc
KeywordRestParameterNode::name_loc.
pm_location_t closing_loc
LambdaNode::closing_loc.
pm_node_t base
The embedded base node.
pm_location_t opening_loc
LambdaNode::opening_loc.
pm_location_t operator_loc
LambdaNode::operator_loc.
pm_constant_id_list_t locals
LambdaNode::locals.
PM_NODE_ALIGNAS struct pm_node * body
LambdaNode::body.
PM_NODE_ALIGNAS struct pm_node * parameters
LambdaNode::parameters.
LocalVariableAndWriteNode.
pm_constant_id_t name
LocalVariableAndWriteNode::name.
pm_node_t base
The embedded base node.
uint32_t depth
LocalVariableAndWriteNode::depth.
pm_location_t operator_loc
LocalVariableAndWriteNode::operator_loc.
PM_NODE_ALIGNAS struct pm_node * value
LocalVariableAndWriteNode::value.
pm_location_t name_loc
LocalVariableAndWriteNode::name_loc.
LocalVariableOperatorWriteNode.
uint32_t depth
LocalVariableOperatorWriteNode::depth.
pm_constant_id_t binary_operator
LocalVariableOperatorWriteNode::binary_operator.
pm_node_t base
The embedded base node.
pm_location_t name_loc
LocalVariableOperatorWriteNode::name_loc.
pm_location_t binary_operator_loc
LocalVariableOperatorWriteNode::binary_operator_loc.
PM_NODE_ALIGNAS struct pm_node * value
LocalVariableOperatorWriteNode::value.
pm_constant_id_t name
LocalVariableOperatorWriteNode::name.
LocalVariableOrWriteNode.
PM_NODE_ALIGNAS struct pm_node * value
LocalVariableOrWriteNode::value.
uint32_t depth
LocalVariableOrWriteNode::depth.
pm_location_t operator_loc
LocalVariableOrWriteNode::operator_loc.
pm_node_t base
The embedded base node.
pm_constant_id_t name
LocalVariableOrWriteNode::name.
pm_location_t name_loc
LocalVariableOrWriteNode::name_loc.
uint32_t depth
LocalVariableReadNode::depth.
pm_constant_id_t name
LocalVariableReadNode::name.
pm_node_t base
The embedded base node.
uint32_t depth
LocalVariableTargetNode::depth.
pm_constant_id_t name
LocalVariableTargetNode::name.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * value
LocalVariableWriteNode::value.
pm_location_t operator_loc
LocalVariableWriteNode::operator_loc.
pm_location_t name_loc
LocalVariableWriteNode::name_loc.
pm_node_t base
The embedded base node.
uint32_t depth
LocalVariableWriteNode::depth.
pm_constant_id_t name
LocalVariableWriteNode::name.
This struct represents a slice in the source code, defined by an offset and a length.
uint32_t start
The offset of the location from the start of the source.
uint32_t length
The length of the location.
pm_location_t content_loc
MatchLastLineNode::content_loc.
pm_location_t opening_loc
MatchLastLineNode::opening_loc.
pm_location_t closing_loc
MatchLastLineNode::closing_loc.
pm_string_t unescaped
MatchLastLineNode::unescaped.
pm_node_t base
The embedded base node.
pm_location_t keyword_loc
MatchPredicateNode::keyword_loc.
PM_NODE_ALIGNAS struct pm_node * pattern
MatchPredicateNode::pattern.
PM_NODE_ALIGNAS struct pm_node * value
MatchPredicateNode::value.
pm_node_t base
The embedded base node.
pm_node_t base
The embedded base node.
pm_location_t operator_loc
MatchRequiredNode::operator_loc.
PM_NODE_ALIGNAS struct pm_node * pattern
MatchRequiredNode::pattern.
PM_NODE_ALIGNAS struct pm_node * value
MatchRequiredNode::value.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_call_node * call
MatchWriteNode::call.
struct pm_node_list targets
MatchWriteNode::targets.
pm_location_t end_keyword_loc
ModuleNode::end_keyword_loc.
PM_NODE_ALIGNAS struct pm_node * constant_path
ModuleNode::constant_path.
PM_NODE_ALIGNAS struct pm_node * body
ModuleNode::body.
pm_constant_id_list_t locals
ModuleNode::locals.
pm_node_t base
The embedded base node.
pm_location_t module_keyword_loc
ModuleNode::module_keyword_loc.
pm_constant_id_t name
ModuleNode::name.
PM_NODE_ALIGNAS struct pm_node * rest
MultiTargetNode::rest.
pm_node_t base
The embedded base node.
pm_location_t lparen_loc
MultiTargetNode::lparen_loc.
struct pm_node_list lefts
MultiTargetNode::lefts.
pm_location_t rparen_loc
MultiTargetNode::rparen_loc.
struct pm_node_list rights
MultiTargetNode::rights.
pm_location_t rparen_loc
MultiWriteNode::rparen_loc.
PM_NODE_ALIGNAS struct pm_node * rest
MultiWriteNode::rest.
struct pm_node_list rights
MultiWriteNode::rights.
pm_location_t operator_loc
MultiWriteNode::operator_loc.
PM_NODE_ALIGNAS struct pm_node * value
MultiWriteNode::value.
pm_location_t lparen_loc
MultiWriteNode::lparen_loc.
struct pm_node_list lefts
MultiWriteNode::lefts.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
NextNode::arguments.
pm_node_t base
The embedded base node.
pm_location_t keyword_loc
NextNode::keyword_loc.
pm_node_t base
The embedded base node.
pm_location_t keyword_loc
NoBlockParameterNode::keyword_loc.
pm_node_t base
The embedded base node.
pm_location_t operator_loc
NoBlockParameterNode::operator_loc.
pm_location_t keyword_loc
NoKeywordsParameterNode::keyword_loc.
pm_location_t operator_loc
NoKeywordsParameterNode::operator_loc.
pm_node_t base
The embedded base node.
A list of nodes in the source, most often used for lists of children.
uint32_t size
The number of nodes in the list.
struct pm_node ** nodes
The nodes in the list.
This is the base structure that represents a node in the syntax tree.
pm_node_type_t type
This represents the type of the node.
uint32_t node_id
The unique identifier for this node, which is deterministic based on the source.
pm_node_flags_t flags
This represents any flags on the node.
pm_location_t location
This is the location of the node in the source.
pm_node_t base
The embedded base node.
uint8_t maximum
NumberedParametersNode::maximum.
NumberedReferenceReadNode.
pm_node_t base
The embedded base node.
uint32_t number
NumberedReferenceReadNode::number.
OptionalKeywordParameterNode.
pm_node_t base
The embedded base node.
pm_constant_id_t name
OptionalKeywordParameterNode::name.
PM_NODE_ALIGNAS struct pm_node * value
OptionalKeywordParameterNode::value.
pm_location_t name_loc
OptionalKeywordParameterNode::name_loc.
pm_location_t name_loc
OptionalParameterNode::name_loc.
pm_constant_id_t name
OptionalParameterNode::name.
pm_node_t base
The embedded base node.
pm_location_t operator_loc
OptionalParameterNode::operator_loc.
PM_NODE_ALIGNAS struct pm_node * value
OptionalParameterNode::value.
PM_NODE_ALIGNAS struct pm_node * right
OrNode::right.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * left
OrNode::left.
pm_location_t operator_loc
OrNode::operator_loc.
PM_NODE_ALIGNAS struct pm_node * block
ParametersNode::block.
struct pm_node_list requireds
ParametersNode::requireds.
struct pm_node_list optionals
ParametersNode::optionals.
struct pm_node_list posts
ParametersNode::posts.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * rest
ParametersNode::rest.
struct pm_node_list keywords
ParametersNode::keywords.
PM_NODE_ALIGNAS struct pm_node * keyword_rest
ParametersNode::keyword_rest.
pm_location_t closing_loc
ParenthesesNode::closing_loc.
pm_node_t base
The embedded base node.
pm_location_t opening_loc
ParenthesesNode::opening_loc.
PM_NODE_ALIGNAS struct pm_node * body
ParenthesesNode::body.
pm_node_t base
The embedded base node.
pm_location_t rparen_loc
PinnedExpressionNode::rparen_loc.
pm_location_t lparen_loc
PinnedExpressionNode::lparen_loc.
PM_NODE_ALIGNAS struct pm_node * expression
PinnedExpressionNode::expression.
pm_location_t operator_loc
PinnedExpressionNode::operator_loc.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * variable
PinnedVariableNode::variable.
pm_location_t operator_loc
PinnedVariableNode::operator_loc.
pm_location_t closing_loc
PostExecutionNode::closing_loc.
pm_node_t base
The embedded base node.
pm_location_t opening_loc
PostExecutionNode::opening_loc.
pm_location_t keyword_loc
PostExecutionNode::keyword_loc.
PM_NODE_ALIGNAS struct pm_statements_node * statements
PostExecutionNode::statements.
pm_location_t closing_loc
PreExecutionNode::closing_loc.
pm_location_t opening_loc
PreExecutionNode::opening_loc.
PM_NODE_ALIGNAS struct pm_statements_node * statements
PreExecutionNode::statements.
pm_node_t base
The embedded base node.
pm_location_t keyword_loc
PreExecutionNode::keyword_loc.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_statements_node * statements
ProgramNode::statements.
pm_constant_id_list_t locals
ProgramNode::locals.
pm_location_t operator_loc
RangeNode::operator_loc.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * right
RangeNode::right.
PM_NODE_ALIGNAS struct pm_node * left
RangeNode::left.
pm_node_t base
The embedded base node.
pm_integer_t denominator
RationalNode::denominator.
pm_integer_t numerator
RationalNode::numerator.
pm_node_t base
The embedded base node.
pm_location_t closing_loc
RegularExpressionNode::closing_loc.
pm_node_t base
The embedded base node.
pm_string_t unescaped
RegularExpressionNode::unescaped.
pm_location_t opening_loc
RegularExpressionNode::opening_loc.
pm_location_t content_loc
RegularExpressionNode::content_loc.
RequiredKeywordParameterNode.
pm_location_t name_loc
RequiredKeywordParameterNode::name_loc.
pm_node_t base
The embedded base node.
pm_constant_id_t name
RequiredKeywordParameterNode::name.
pm_constant_id_t name
RequiredParameterNode::name.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * expression
RescueModifierNode::expression.
pm_node_t base
The embedded base node.
pm_location_t keyword_loc
RescueModifierNode::keyword_loc.
PM_NODE_ALIGNAS struct pm_node * rescue_expression
RescueModifierNode::rescue_expression.
PM_NODE_ALIGNAS struct pm_statements_node * statements
RescueNode::statements.
PM_NODE_ALIGNAS struct pm_rescue_node * subsequent
RescueNode::subsequent.
pm_location_t keyword_loc
RescueNode::keyword_loc.
PM_NODE_ALIGNAS struct pm_node * reference
RescueNode::reference.
pm_location_t then_keyword_loc
RescueNode::then_keyword_loc.
pm_location_t operator_loc
RescueNode::operator_loc.
struct pm_node_list exceptions
RescueNode::exceptions.
pm_node_t base
The embedded base node.
pm_constant_id_t name
RestParameterNode::name.
pm_location_t name_loc
RestParameterNode::name_loc.
pm_node_t base
The embedded base node.
pm_location_t operator_loc
RestParameterNode::operator_loc.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
ReturnNode::arguments.
pm_location_t keyword_loc
ReturnNode::keyword_loc.
pm_node_t base
The embedded base node.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * write
ShareableConstantNode::write.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * body
SingletonClassNode::body.
pm_node_t base
The embedded base node.
pm_constant_id_list_t locals
SingletonClassNode::locals.
pm_location_t operator_loc
SingletonClassNode::operator_loc.
PM_NODE_ALIGNAS struct pm_node * expression
SingletonClassNode::expression.
pm_location_t end_keyword_loc
SingletonClassNode::end_keyword_loc.
pm_location_t class_keyword_loc
SingletonClassNode::class_keyword_loc.
pm_node_t base
The embedded base node.
pm_string_t filepath
SourceFileNode::filepath.
pm_node_t base
The embedded base node.
pm_node_t base
The embedded base node.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_node * expression
SplatNode::expression.
pm_location_t operator_loc
SplatNode::operator_loc.
struct pm_node_list body
StatementsNode::body.
pm_node_t base
The embedded base node.
pm_node_t base
The embedded base node.
pm_string_t unescaped
StringNode::unescaped.
pm_location_t content_loc
StringNode::content_loc.
pm_location_t closing_loc
StringNode::closing_loc.
pm_location_t opening_loc
StringNode::opening_loc.
A view of a sequence of bytes.
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
SuperNode::arguments.
pm_location_t lparen_loc
SuperNode::lparen_loc.
pm_node_t base
The embedded base node.
pm_location_t keyword_loc
SuperNode::keyword_loc.
pm_location_t rparen_loc
SuperNode::rparen_loc.
PM_NODE_ALIGNAS struct pm_node * block
SuperNode::block.
pm_location_t opening_loc
SymbolNode::opening_loc.
pm_location_t content_loc
SymbolNode::content_loc.
pm_location_t closing_loc
SymbolNode::closing_loc.
pm_string_t unescaped
SymbolNode::unescaped.
pm_node_t base
The embedded base node.
This struct represents a token in the Ruby source.
const uint8_t * end
A pointer to the end location of the token in the source.
const uint8_t * start
A pointer to the start location of the token in the source.
pm_token_type_t type
The type of the token.
pm_node_t base
The embedded base node.
pm_node_t base
The embedded base node.
pm_location_t keyword_loc
UndefNode::keyword_loc.
struct pm_node_list names
UndefNode::names.
pm_location_t then_keyword_loc
UnlessNode::then_keyword_loc.
PM_NODE_ALIGNAS struct pm_node * predicate
UnlessNode::predicate.
PM_NODE_ALIGNAS struct pm_statements_node * statements
UnlessNode::statements.
pm_location_t end_keyword_loc
UnlessNode::end_keyword_loc.
PM_NODE_ALIGNAS struct pm_else_node * else_clause
UnlessNode::else_clause.
pm_node_t base
The embedded base node.
pm_location_t unless_keyword_loc
UnlessNode::unless_keyword_loc.
pm_location_t end_keyword_loc
UntilNode::end_keyword_loc.
pm_location_t until_keyword_loc
UntilNode::until_keyword_loc.
pm_node_t base
The embedded base node.
PM_NODE_ALIGNAS struct pm_statements_node * statements
UntilNode::statements.
pm_location_t do_keyword_loc
UntilNode::do_keyword_loc.
PM_NODE_ALIGNAS struct pm_node * predicate
UntilNode::predicate.
pm_location_t when_keyword_loc
WhenNode::when_keyword_loc.
pm_node_t base
The embedded base node.
pm_location_t then_keyword_loc
WhenNode::then_keyword_loc.
PM_NODE_ALIGNAS struct pm_statements_node * statements
WhenNode::statements.
struct pm_node_list conditions
WhenNode::conditions.
PM_NODE_ALIGNAS struct pm_statements_node * statements
WhileNode::statements.
pm_location_t while_keyword_loc
WhileNode::while_keyword_loc.
pm_location_t end_keyword_loc
WhileNode::end_keyword_loc.
pm_node_t base
The embedded base node.
pm_location_t do_keyword_loc
WhileNode::do_keyword_loc.
PM_NODE_ALIGNAS struct pm_node * predicate
WhileNode::predicate.
pm_location_t closing_loc
XStringNode::closing_loc.
pm_location_t opening_loc
XStringNode::opening_loc.
pm_location_t content_loc
XStringNode::content_loc.
pm_string_t unescaped
XStringNode::unescaped.
pm_node_t base
The embedded base node.
pm_location_t keyword_loc
YieldNode::keyword_loc.
pm_location_t lparen_loc
YieldNode::lparen_loc.
pm_node_t base
The embedded base node.
pm_location_t rparen_loc
YieldNode::rparen_loc.
PM_NODE_ALIGNAS struct pm_arguments_node * arguments
YieldNode::arguments.