Skip to content

Commit

Permalink
Update shim for latest prism
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Oct 26, 2023
1 parent 5a1af46 commit 41e0514
Showing 1 changed file with 12 additions and 35 deletions.
47 changes: 12 additions & 35 deletions sorbet/rbi/shims/gems/prism.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,8 @@ module Prism
# $'
# ^^
class BackReferenceReadNode < Node
sig { params(location: Location).void }
def initialize(location); end
sig { params(name: T.untyped, location: Location).void }
def initialize(name, location); end

sig { params(visitor: Visitor).void }
def accept(visitor); end
Expand Down Expand Up @@ -921,9 +921,6 @@ module Prism
receiver: T.nilable(Node),
call_operator_loc: T.nilable(Location),
message_loc: T.nilable(Location),
opening_loc: T.nilable(Location),
arguments: T.nilable(ArgumentsNode),
closing_loc: T.nilable(Location),
flags: Integer,
read_name: Symbol,
write_name: Symbol,
Expand All @@ -932,8 +929,7 @@ module Prism
location: Location,
).void
end
def initialize(receiver, call_operator_loc, message_loc, opening_loc, arguments, closing_loc, flags, read_name,
write_name, operator_loc, value, location)
def initialize(receiver, call_operator_loc, message_loc, flags, read_name, write_name, operator_loc, value, location)
end

sig { params(visitor: Visitor).void }
Expand Down Expand Up @@ -1130,9 +1126,6 @@ module Prism
receiver: T.nilable(Node),
call_operator_loc: T.nilable(Location),
message_loc: T.nilable(Location),
opening_loc: T.nilable(Location),
arguments: T.nilable(ArgumentsNode),
closing_loc: T.nilable(Location),
flags: Integer,
read_name: Symbol,
write_name: Symbol,
Expand All @@ -1142,8 +1135,7 @@ module Prism
location: Location,
).void
end
def initialize(receiver, call_operator_loc, message_loc, opening_loc, arguments, closing_loc, flags, read_name,
write_name, operator, operator_loc, value, location)
def initialize(receiver, call_operator_loc, message_loc, flags, read_name, write_name, operator, operator_loc, value, location)
end

sig { params(visitor: Visitor).void }
Expand Down Expand Up @@ -1229,9 +1221,6 @@ module Prism
receiver: T.nilable(Node),
call_operator_loc: T.nilable(Location),
message_loc: T.nilable(Location),
opening_loc: T.nilable(Location),
arguments: T.nilable(ArgumentsNode),
closing_loc: T.nilable(Location),
flags: Integer,
read_name: Symbol,
write_name: Symbol,
Expand All @@ -1240,8 +1229,7 @@ module Prism
location: Location,
).void
end
def initialize(receiver, call_operator_loc, message_loc, opening_loc, arguments, closing_loc, flags, read_name,
write_name, operator_loc, value, location)
def initialize(receiver, call_operator_loc, message_loc, flags, read_name, write_name, operator_loc, value, location)
end

sig { params(visitor: Visitor).void }
Expand Down Expand Up @@ -7782,8 +7770,8 @@ module Prism
sig { params(value: T.nilable(Node), operator_loc: Location, location: Location).returns(AssocSplatNode) }
def AssocSplatNode(value, operator_loc, location); end
# Create a new BackReferenceReadNode node
sig { params(location: Location).returns(BackReferenceReadNode) }
def BackReferenceReadNode(location); end
sig { params(name: T.untyped, location: Location).returns(BackReferenceReadNode) }
def BackReferenceReadNode(name, location); end
# Create a new BeginNode node
sig do
params(
Expand Down Expand Up @@ -7846,9 +7834,6 @@ module Prism
receiver: T.nilable(Node),
call_operator_loc: T.nilable(Location),
message_loc: T.nilable(Location),
opening_loc: T.nilable(Location),
arguments: T.nilable(ArgumentsNode),
closing_loc: T.nilable(Location),
flags: Integer,
read_name: Symbol,
write_name: Symbol,
Expand All @@ -7857,8 +7842,8 @@ module Prism
location: Location,
).returns(CallAndWriteNode)
end
def CallAndWriteNode(receiver, call_operator_loc, message_loc, opening_loc, arguments, closing_loc, flags,
read_name, write_name, operator_loc, value, location)
def CallAndWriteNode(receiver, call_operator_loc, message_loc, flags, read_name, write_name, operator_loc,
value, location = nil)
end
# Create a new CallNode node
sig do
Expand All @@ -7884,9 +7869,6 @@ module Prism
receiver: T.nilable(Node),
call_operator_loc: T.nilable(Location),
message_loc: T.nilable(Location),
opening_loc: T.nilable(Location),
arguments: T.nilable(ArgumentsNode),
closing_loc: T.nilable(Location),
flags: Integer,
read_name: Symbol,
write_name: Symbol,
Expand All @@ -7896,18 +7878,15 @@ module Prism
location: Location,
).returns(CallOperatorWriteNode)
end
def CallOperatorWriteNode(receiver, call_operator_loc, message_loc, opening_loc, arguments, closing_loc, flags,
read_name, write_name, operator, operator_loc, value, location)
def CallOperatorWriteNode(receiver, call_operator_loc, message_loc, flags, read_name, write_name, operator,
operator_loc, value, location = nil)
end
# Create a new CallOrWriteNode node
sig do
params(
receiver: T.nilable(Node),
call_operator_loc: T.nilable(Location),
message_loc: T.nilable(Location),
opening_loc: T.nilable(Location),
arguments: T.nilable(ArgumentsNode),
closing_loc: T.nilable(Location),
flags: Integer,
read_name: Symbol,
write_name: Symbol,
Expand All @@ -7916,9 +7895,7 @@ module Prism
location: Location,
).returns(CallOrWriteNode)
end
def CallOrWriteNode(receiver, call_operator_loc, message_loc, opening_loc, arguments, closing_loc, flags,
read_name, write_name, operator_loc, value, location)
end
def CallOrWriteNode(receiver, call_operator_loc, message_loc, flags, read_name, write_name, operator_loc, value, location = nil); end
# Create a new CapturePatternNode node
sig { params(value: Node, target: Node, operator_loc: Location, location: Location).returns(CapturePatternNode) }
def CapturePatternNode(value, target, operator_loc, location); end
Expand Down

0 comments on commit 41e0514

Please sign in to comment.