diff options
author | Hiroya Fujinami <make.just.on@gmail.com> | 2023-11-22 07:10:31 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-11-21 22:10:35 +0000 |
commit | bad351a93032941c2f19939440cb1bd283309501 (patch) | |
tree | b3c8284813cb08d6edf863ab0ccc85f32dcfbf27 /prism/templates | |
parent | c34d23fcc85dc7c0fc95fa7683a85f37b13e5a36 (diff) | |
download | ruby-bad351a93032941c2f19939440cb1bd283309501.tar.gz |
[ruby/prism] Remove handling OptionalNodeField in set_newline_flag
template
(https://github.com/ruby/prism/pull/1905)
https://github.com/ruby/prism/commit/6f7cbc1ca9
Diffstat (limited to 'prism/templates')
-rw-r--r-- | prism/templates/lib/prism/node.rb.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prism/templates/lib/prism/node.rb.erb b/prism/templates/lib/prism/node.rb.erb index 5b89b3ab36..7148710238 100644 --- a/prism/templates/lib/prism/node.rb.erb +++ b/prism/templates/lib/prism/node.rb.erb @@ -70,7 +70,7 @@ module Prism def set_newline_flag(newline_marked) # :nodoc: <%- field = node.fields.find { |f| f.name == node.newline } or raise node.newline -%> <%- case field -%> - <%- when Prism::NodeField, Prism::OptionalNodeField -%> + <%- when Prism::NodeField -%> <%= field.name %>.set_newline_flag(newline_marked) <%- when Prism::NodeListField -%> first = <%= field.name %>.first |