instance method
Prism::DSL#call_node_flag
call_node_flag(name)
lib/prism/dsl.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/dsl.rb, line 855
def call_node_flag(name)
case name
when :safe_navigation then CallNodeFlags::SAFE_NAVIGATION
when :variable_call then CallNodeFlags::VARIABLE_CALL
when :attribute_write then CallNodeFlags::ATTRIBUTE_WRITE
when :ignore_visibility then CallNodeFlags::IGNORE_VISIBILITY
else Kernel.raise ArgumentError, "invalid CallNodeFlags flag: #{name.inspect}"
end
end
Retrieve the value of one of the CallNodeFlags flags.