instance method
Prism::DSL#shareable_constant_node_flag
shareable_constant_node_flag(name)
lib/prism/dsl.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/dsl.rb, line 953
def shareable_constant_node_flag(name)
case name
when :literal then ShareableConstantNodeFlags::LITERAL
when :experimental_everything then ShareableConstantNodeFlags::EXPERIMENTAL_EVERYTHING
when :experimental_copy then ShareableConstantNodeFlags::EXPERIMENTAL_COPY
else Kernel.raise ArgumentError, "invalid ShareableConstantNodeFlags flag: #{name.inspect}"
end
end
Retrieve the value of one of the ShareableConstantNodeFlags flags.