diff options
author | Kevin Newton <kddnewton@gmail.com> | 2023-11-15 17:55:16 -0500 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-11-15 23:08:11 +0000 |
commit | d2e7a70ee6865a92992d4d793cd08a2805d2658a (patch) | |
tree | 7c1bdca081219e3daf2b2f443101729099f9650c /lib | |
parent | e9bc530795a13103ac5fd01475422cab632420cd (diff) | |
download | ruby-d2e7a70ee6865a92992d4d793cd08a2805d2658a.tar.gz |
[ruby/prism] Track the then keyword for conditionals
https://github.com/ruby/prism/commit/fef0019a25
Diffstat (limited to 'lib')
-rw-r--r-- | lib/prism/desugar_compiler.rb | 1 |
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, |