instance method
Prism::BeginNode#compact_child_nodes
compact_child_nodes
lib/prism/node.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/node.rb, line 1521
def compact_child_nodes
compact = [] #: Array[Prism::node]
compact << statements if statements
compact << rescue_clause if rescue_clause
compact << else_clause if else_clause
compact << ensure_clause if ensure_clause
compact
end
def compact_child_nodes: () -> Array[Node]