From d2e7a70ee6865a92992d4d793cd08a2805d2658a Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Wed, 15 Nov 2023 17:55:16 -0500 Subject: [ruby/prism] Track the then keyword for conditionals https://github.com/ruby/prism/commit/fef0019a25 --- lib/prism/desugar_compiler.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/prism/desugar_compiler.rb') 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, -- cgit v1.2.3