summaryrefslogtreecommitdiff
path: root/lib/prism/translation/ripper.rb
diff options
context:
space:
mode:
authorUfuk Kayserilioglu <ufuk.kayserilioglu@shopify.com>2024-03-06 15:17:38 -0500
committergit <svn-admin@ruby-lang.org>2024-03-06 21:37:55 +0000
commit06fca8dbcae62b673279f0088ae8d327df28904a (patch)
tree8431ee1a2f37f28acc02ee474cdccc89cf11b378 /lib/prism/translation/ripper.rb
parentde411ef0b611b171b4055a5f469637fdb77487a6 (diff)
[ruby/prism] Fix parsing errors for `:!@` and `:~@` in Sorbet
https://github.com/ruby/prism/commit/dc070b44bc
Diffstat (limited to 'lib/prism/translation/ripper.rb')
-rw-r--r--lib/prism/translation/ripper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/prism/translation/ripper.rb b/lib/prism/translation/ripper.rb
index 5079b97025..b56ca40ea1 100644
--- a/lib/prism/translation/ripper.rb
+++ b/lib/prism/translation/ripper.rb
@@ -1007,16 +1007,16 @@ module Prism
bounds(last_argument.location)
on_assign(call, value)
- when :-@, :+@, :~@
+ when :-@, :+@, :~
receiver = visit(node.receiver)
bounds(node.location)
on_unary(node.name, receiver)
- when :!@
+ when :!
receiver = visit(node.receiver)
bounds(node.location)
- on_unary(node.message == "not" ? :not : :!@, receiver)
+ on_unary(node.message == "not" ? :not : :!, receiver)
when *BINARY_OPERATORS
receiver = visit(node.receiver)
value = visit(node.arguments.arguments.first)