instance method
Prism::DSL#self_node
self_node(source: default_source, node_id: 0, location: default_location, flags: 0)
lib/prism/dsl.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/dsl.rb, line 740
def self_node(source: default_source, node_id: 0, location: default_location, flags: 0)
SelfNode.new(source, node_id, location, flags)
end
Create a new SelfNode node.
See also
#return_node
#shareable_constant_node
#retry_node
#shareable_constant_node_flag
also in
3.4