[ruby/prism] Update templates/include/prism/ast.h.erb
https://github.com/ruby/prism/commit/7f7620b6d5
This commit is contained in:
parent
0ef703b91c
commit
3f30c4df8c
@ -151,12 +151,14 @@ typedef struct pm_node {
|
|||||||
<%- nodes.each do |node| -%>
|
<%- nodes.each do |node| -%>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* <%= node.name %>
|
||||||
|
*
|
||||||
<%- node.each_comment_line do |line| -%>
|
<%- node.each_comment_line do |line| -%>
|
||||||
*<%= line %>
|
*<%= line %>
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
* <%= node.name %> (type: <%= node.type %>)
|
|
||||||
<%- if (node_flags = node.flags) -%>
|
|
||||||
*
|
*
|
||||||
|
* Type: <%= node.type %>
|
||||||
|
<%- if (node_flags = node.flags) -%>
|
||||||
* Flags:
|
* Flags:
|
||||||
<%- node_flags.values.each do |value| -%>
|
<%- node_flags.values.each do |value| -%>
|
||||||
* PM_<%= node_flags.human.upcase %>_<%= value.name %>
|
* PM_<%= node_flags.human.upcase %>_<%= value.name %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user