class method
Prism.scope
scope(locals: [], forwarding: [])
lib/prism/parse_result.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/parse_result.rb, line 895
def self.scope(locals: [], forwarding: [])
Scope.new(locals, forwarding)
end
Create a new scope with the given locals and forwarding options that is suitable for passing into one of the Prism.* methods that accepts the scopes option.