[ruby/prism] Render node comments into their ast.h
https://github.com/ruby/prism/commit/b17c3241d3
This commit is contained in:
parent
d57486cb10
commit
0ef703b91c
@ -151,10 +151,12 @@ typedef struct pm_node {
|
|||||||
<%- nodes.each do |node| -%>
|
<%- nodes.each do |node| -%>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <%= node.name %>
|
<%- node.each_comment_line do |line| -%>
|
||||||
*
|
*<%= line %>
|
||||||
* Type: <%= node.type %>
|
<%- end -%>
|
||||||
|
* <%= node.name %> (type: <%= node.type %>)
|
||||||
<%- if (node_flags = node.flags) -%>
|
<%- 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