класс Prism::Visitor
Посетитель — это класс, предоставляющий реализацию по умолчанию для каждого метода accept, определённого в узлах. Это означает, что он может обходить дерево без необходимости определять специальную обработку для каждого случая. Это позволяет обрабатывать часть дерева, продолжая обход всего дерева.
Например, чтобы найти все вызовы методов, вызывающие метод foo, можно написать:
class FooCalls < Prism::Visitor
def visit_call_node(node)
if node.name == :foo
# Do something with the node
end
# Call super so that the visitor continues walking the tree
super
end
end
Открытые методы экземпляра
# File lib/prism/visitor.rb, line 59
def visit_alias_global_variable_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел AliasGlobalVariableNode
# File lib/prism/visitor.rb, line 64
def visit_alias_method_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел AliasMethodNode
# File lib/prism/visitor.rb, line 69
def visit_alternation_pattern_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел AlternationPatternNode
# File lib/prism/visitor.rb, line 74
def visit_and_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел AndNode
# File lib/prism/visitor.rb, line 79
def visit_arguments_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ArgumentsNode
# File lib/prism/visitor.rb, line 84
def visit_array_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ArrayNode
# File lib/prism/visitor.rb, line 89
def visit_array_pattern_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ArrayPatternNode
# File lib/prism/visitor.rb, line 94
def visit_assoc_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел AssocNode
# File lib/prism/visitor.rb, line 99
def visit_assoc_splat_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел AssocSplatNode
# File lib/prism/visitor.rb, line 104
def visit_back_reference_read_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел BackReferenceReadNode
# File lib/prism/visitor.rb, line 109
def visit_begin_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел BeginNode
# File lib/prism/visitor.rb, line 114
def visit_block_argument_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел BlockArgumentNode
# File lib/prism/visitor.rb, line 119
def visit_block_local_variable_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел BlockLocalVariableNode
# File lib/prism/visitor.rb, line 124
def visit_block_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел BlockNode
# File lib/prism/visitor.rb, line 129
def visit_block_parameter_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел BlockParameterNode
# File lib/prism/visitor.rb, line 134
def visit_block_parameters_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел BlockParametersNode
# File lib/prism/visitor.rb, line 139
def visit_break_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел BreakNode
# File lib/prism/visitor.rb, line 144
def visit_call_and_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел CallAndWriteNode
# File lib/prism/visitor.rb, line 149
def visit_call_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел CallNode
# File lib/prism/visitor.rb, line 154
def visit_call_operator_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел CallOperatorWriteNode
# File lib/prism/visitor.rb, line 159
def visit_call_or_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел CallOrWriteNode
# File lib/prism/visitor.rb, line 164
def visit_call_target_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел CallTargetNode
# File lib/prism/visitor.rb, line 169
def visit_capture_pattern_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел CapturePatternNode
# File lib/prism/visitor.rb, line 174
def visit_case_match_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел CaseMatchNode
# File lib/prism/visitor.rb, line 179
def visit_case_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел CaseNode
# File lib/prism/visitor.rb, line 184
def visit_class_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ClassNode
# File lib/prism/visitor.rb, line 189
def visit_class_variable_and_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ClassVariableAndWriteNode
# File lib/prism/visitor.rb, line 194
def visit_class_variable_operator_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ClassVariableOperatorWriteNode
# File lib/prism/visitor.rb, line 199
def visit_class_variable_or_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ClassVariableOrWriteNode
# File lib/prism/visitor.rb, line 204
def visit_class_variable_read_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ClassVariableReadNode
# File lib/prism/visitor.rb, line 209
def visit_class_variable_target_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ClassVariableTargetNode
# File lib/prism/visitor.rb, line 214
def visit_class_variable_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ClassVariableWriteNode
# File lib/prism/visitor.rb, line 219
def visit_constant_and_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ConstantAndWriteNode
# File lib/prism/visitor.rb, line 224
def visit_constant_operator_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ConstantOperatorWriteNode
# File lib/prism/visitor.rb, line 229
def visit_constant_or_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ConstantOrWriteNode
# File lib/prism/visitor.rb, line 234
def visit_constant_path_and_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ConstantPathAndWriteNode
# File lib/prism/visitor.rb, line 239
def visit_constant_path_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ConstantPathNode
# File lib/prism/visitor.rb, line 244
def visit_constant_path_operator_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ConstantPathOperatorWriteNode
# File lib/prism/visitor.rb, line 249
def visit_constant_path_or_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ConstantPathOrWriteNode
# File lib/prism/visitor.rb, line 254
def visit_constant_path_target_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ConstantPathTargetNode
# File lib/prism/visitor.rb, line 259
def visit_constant_path_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ConstantPathWriteNode
# File lib/prism/visitor.rb, line 264
def visit_constant_read_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ConstantReadNode
# File lib/prism/visitor.rb, line 269
def visit_constant_target_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ConstantTargetNode
# File lib/prism/visitor.rb, line 274
def visit_constant_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ConstantWriteNode
# File lib/prism/visitor.rb, line 279
def visit_def_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел DefNode
# File lib/prism/visitor.rb, line 284
def visit_defined_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел DefinedNode
# File lib/prism/visitor.rb, line 289
def visit_else_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ElseNode
# File lib/prism/visitor.rb, line 294
def visit_embedded_statements_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел EmbeddedStatementsNode
# File lib/prism/visitor.rb, line 299
def visit_embedded_variable_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел EmbeddedVariableNode
# File lib/prism/visitor.rb, line 304
def visit_ensure_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел EnsureNode
# File lib/prism/visitor.rb, line 309
def visit_false_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел FalseNode
# File lib/prism/visitor.rb, line 314
def visit_find_pattern_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел FindPatternNode
# File lib/prism/visitor.rb, line 319
def visit_flip_flop_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел FlipFlopNode
# File lib/prism/visitor.rb, line 324
def visit_float_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел FloatNode
# File lib/prism/visitor.rb, line 329
def visit_for_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ForNode
# File lib/prism/visitor.rb, line 334
def visit_forwarding_arguments_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ForwardingArgumentsNode
# File lib/prism/visitor.rb, line 339
def visit_forwarding_parameter_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ForwardingParameterNode
# File lib/prism/visitor.rb, line 344
def visit_forwarding_super_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ForwardingSuperNode
# File lib/prism/visitor.rb, line 349
def visit_global_variable_and_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел GlobalVariableAndWriteNode
# File lib/prism/visitor.rb, line 354
def visit_global_variable_operator_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел GlobalVariableOperatorWriteNode
# File lib/prism/visitor.rb, line 359
def visit_global_variable_or_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел GlobalVariableOrWriteNode
# File lib/prism/visitor.rb, line 364
def visit_global_variable_read_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел GlobalVariableReadNode
# File lib/prism/visitor.rb, line 369
def visit_global_variable_target_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел GlobalVariableTargetNode
# File lib/prism/visitor.rb, line 374
def visit_global_variable_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел GlobalVariableWriteNode
# File lib/prism/visitor.rb, line 379
def visit_hash_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел HashNode
# File lib/prism/visitor.rb, line 384
def visit_hash_pattern_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел HashPatternNode
# File lib/prism/visitor.rb, line 389
def visit_if_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел IfNode
# File lib/prism/visitor.rb, line 394
def visit_imaginary_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ImaginaryNode
# File lib/prism/visitor.rb, line 399
def visit_implicit_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ImplicitNode
# File lib/prism/visitor.rb, line 404
def visit_implicit_rest_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ImplicitRestNode
# File lib/prism/visitor.rb, line 409
def visit_in_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел InNode
# File lib/prism/visitor.rb, line 414
def visit_index_and_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел IndexAndWriteNode
# File lib/prism/visitor.rb, line 419
def visit_index_operator_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел IndexOperatorWriteNode
# File lib/prism/visitor.rb, line 424
def visit_index_or_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел IndexOrWriteNode
# File lib/prism/visitor.rb, line 429
def visit_index_target_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел IndexTargetNode
# File lib/prism/visitor.rb, line 434
def visit_instance_variable_and_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел InstanceVariableAndWriteNode
# File lib/prism/visitor.rb, line 439
def visit_instance_variable_operator_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел InstanceVariableOperatorWriteNode
# File lib/prism/visitor.rb, line 444
def visit_instance_variable_or_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел InstanceVariableOrWriteNode
# File lib/prism/visitor.rb, line 449
def visit_instance_variable_read_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел InstanceVariableReadNode
# File lib/prism/visitor.rb, line 454
def visit_instance_variable_target_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел InstanceVariableTargetNode
# File lib/prism/visitor.rb, line 459
def visit_instance_variable_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел InstanceVariableWriteNode
# File lib/prism/visitor.rb, line 464
def visit_integer_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел IntegerNode
# File lib/prism/visitor.rb, line 469
def visit_interpolated_match_last_line_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел InterpolatedMatchLastLineNode
# File lib/prism/visitor.rb, line 474
def visit_interpolated_regular_expression_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел InterpolatedRegularExpressionNode
# File lib/prism/visitor.rb, line 479
def visit_interpolated_string_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел InterpolatedStringNode
# File lib/prism/visitor.rb, line 484
def visit_interpolated_symbol_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел InterpolatedSymbolNode
# File lib/prism/visitor.rb, line 489
def visit_interpolated_x_string_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел InterpolatedXStringNode
# File lib/prism/visitor.rb, line 494
def visit_it_local_variable_read_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ItLocalVariableReadNode
# File lib/prism/visitor.rb, line 499
def visit_it_parameters_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел ItParametersNode
# File lib/prism/visitor.rb, line 504
def visit_keyword_hash_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел KeywordHashNode
# File lib/prism/visitor.rb, line 509
def visit_keyword_rest_parameter_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел KeywordRestParameterNode
# File lib/prism/visitor.rb, line 514
def visit_lambda_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел LambdaNode
# File lib/prism/visitor.rb, line 519
def visit_local_variable_and_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел LocalVariableAndWriteNode
# File lib/prism/visitor.rb, line 524
def visit_local_variable_operator_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел LocalVariableOperatorWriteNode
# File lib/prism/visitor.rb, line 529
def visit_local_variable_or_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел LocalVariableOrWriteNode
# File lib/prism/visitor.rb, line 534
def visit_local_variable_read_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел LocalVariableReadNode
# File lib/prism/visitor.rb, line 539
def visit_local_variable_target_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел LocalVariableTargetNode
# File lib/prism/visitor.rb, line 544
def visit_local_variable_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел LocalVariableWriteNode
# File lib/prism/visitor.rb, line 549
def visit_match_last_line_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел MatchLastLineNode
# File lib/prism/visitor.rb, line 554
def visit_match_predicate_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел MatchPredicateNode
# File lib/prism/visitor.rb, line 559
def visit_match_required_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел MatchRequiredNode
# File lib/prism/visitor.rb, line 564
def visit_match_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел MatchWriteNode
# File lib/prism/visitor.rb, line 569
def visit_missing_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить узел MissingNode
# File lib/prism/visitor.rb, line 574
def visit_module_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить ModuleNode узел
# File lib/prism/visitor.rb, line 579
def visit_multi_target_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить MultiTargetNode узел
# File lib/prism/visitor.rb, line 584
def visit_multi_write_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить MultiWriteNode узел
# File lib/prism/visitor.rb, line 589
def visit_next_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить NextNode узел
# File lib/prism/visitor.rb, line 594
def visit_nil_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить NilNode узел
# File lib/prism/visitor.rb, line 599
def visit_no_keywords_parameter_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить NoKeywordsParameterNode узел
# File lib/prism/visitor.rb, line 604
def visit_numbered_parameters_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить NumberedParametersNode узел
# File lib/prism/visitor.rb, line 609
def visit_numbered_reference_read_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить NumberedReferenceReadNode узел
# File lib/prism/visitor.rb, line 614
def visit_optional_keyword_parameter_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить OptionalKeywordParameterNode узел
# File lib/prism/visitor.rb, line 619
def visit_optional_parameter_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить OptionalParameterNode узел
# File lib/prism/visitor.rb, line 624
def visit_or_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить OrNode узел
# File lib/prism/visitor.rb, line 629
def visit_parameters_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить ParametersNode узел
# File lib/prism/visitor.rb, line 634
def visit_parentheses_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить ParenthesesNode узел
# File lib/prism/visitor.rb, line 639
def visit_pinned_expression_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить PinnedExpressionNode узел
# File lib/prism/visitor.rb, line 644
def visit_pinned_variable_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить PinnedVariableNode узел
# File lib/prism/visitor.rb, line 649
def visit_post_execution_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить PostExecutionNode узел
# File lib/prism/visitor.rb, line 654
def visit_pre_execution_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить PreExecutionNode узел
# File lib/prism/visitor.rb, line 659
def visit_program_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить ProgramNode узел
# File lib/prism/visitor.rb, line 664
def visit_range_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить RangeNode узел
# File lib/prism/visitor.rb, line 669
def visit_rational_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить RationalNode узел
# File lib/prism/visitor.rb, line 674
def visit_redo_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить RedoNode узел
# File lib/prism/visitor.rb, line 679
def visit_regular_expression_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить RegularExpressionNode узел
# File lib/prism/visitor.rb, line 684
def visit_required_keyword_parameter_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить RequiredKeywordParameterNode узел
# File lib/prism/visitor.rb, line 689
def visit_required_parameter_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить RequiredParameterNode узел
# File lib/prism/visitor.rb, line 694
def visit_rescue_modifier_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить RescueModifierNode узел
# File lib/prism/visitor.rb, line 699
def visit_rescue_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить RescueNode узел
# File lib/prism/visitor.rb, line 704
def visit_rest_parameter_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить RestParameterNode узел
# File lib/prism/visitor.rb, line 709
def visit_retry_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить RetryNode узел
# File lib/prism/visitor.rb, line 714
def visit_return_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить ReturnNode узел
# File lib/prism/visitor.rb, line 719
def visit_self_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить SelfNode узел
Посетить ShareableConstantNode узел
# File lib/prism/visitor.rb, line 729
def visit_singleton_class_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить SingletonClassNode узел
# File lib/prism/visitor.rb, line 734
def visit_source_encoding_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить SourceEncodingNode узел
# File lib/prism/visitor.rb, line 739
def visit_source_file_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить SourceFileNode узел
# File lib/prism/visitor.rb, line 744
def visit_source_line_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить SourceLineNode узел
# File lib/prism/visitor.rb, line 749
def visit_splat_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить SplatNode узел
# File lib/prism/visitor.rb, line 754
def visit_statements_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить StatementsNode узел
# File lib/prism/visitor.rb, line 759
def visit_string_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить StringNode узел
# File lib/prism/visitor.rb, line 764
def visit_super_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить SuperNode узел
# File lib/prism/visitor.rb, line 769
def visit_symbol_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить SymbolNode узел
# File lib/prism/visitor.rb, line 774
def visit_true_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить TrueNode узел
# File lib/prism/visitor.rb, line 779
def visit_undef_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить UndefNode узел
# File lib/prism/visitor.rb, line 784
def visit_unless_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить UnlessNode узел
# File lib/prism/visitor.rb, line 789
def visit_until_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить UntilNode узел
# File lib/prism/visitor.rb, line 794
def visit_when_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить WhenNode узел
# File lib/prism/visitor.rb, line 799
def visit_while_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить WhileNode узел
# File lib/prism/visitor.rb, line 804
def visit_x_string_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить XStringNode узел
# File lib/prism/visitor.rb, line 809
def visit_yield_node(node)
node.compact_child_nodes.each { |node| node.accept(self) }
end Посетить YieldNode узел
Ruby Core © 1993–2025 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.