summaryrefslogtreecommitdiff
path: root/lib/prism/desugar_compiler.rb
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-11-15 17:55:16 -0500
committergit <svn-admin@ruby-lang.org>2023-11-15 23:08:11 +0000
commitd2e7a70ee6865a92992d4d793cd08a2805d2658a (patch)
tree7c1bdca081219e3daf2b2f443101729099f9650c /lib/prism/desugar_compiler.rb
parente9bc530795a13103ac5fd01475422cab632420cd (diff)
[ruby/prism] Track the then keyword for conditionals
https://github.com/ruby/prism/commit/fef0019a25
Diffstat (limited to 'lib/prism/desugar_compiler.rb')
-rw-r--r--lib/prism/desugar_compiler.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/prism/desugar_compiler.rb b/lib/prism/desugar_compiler.rb
index 3624217686..1fba370613 100644
--- a/lib/prism/desugar_compiler.rb
+++ b/lib/prism/desugar_compiler.rb
@@ -188,6 +188,7 @@ module Prism
IfNode.new(
node.operator_loc,
DefinedNode.new(nil, read_class.new(*arguments, node.name_loc), nil, node.operator_loc, node.name_loc),
+ node.operator_loc,
StatementsNode.new([read_class.new(*arguments, node.name_loc)], node.location),
ElseNode.new(
node.operator_loc,