Skip to content

Commit

Permalink
Change generated code for Java to use Javadoc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
paracycle committed Oct 29, 2023
1 parent 5736711 commit dee76b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/java/org/prism/Nodes.java.erb
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,11 @@ public abstract class Nodes {
<%# NODES -%>
<%- nodes.each do |node| -%>

/**
<%- node.comment.each_line do |line| -%>
//<%= line.prepend(" ").rstrip %>
*<%= line.prepend(" ").rstrip %>
<%- end -%>
*/
public static final class <%= node.name -%> extends Node {
<%- if node.needs_serialized_length? -%>
public final int serializedLength;
Expand Down

0 comments on commit dee76b5

Please sign in to comment.