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 9a07fd7 commit 406dbd4
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.rjust(line.size + 1).rstrip %>
*<%= line.rjust(line.size + 1).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 406dbd4

Please sign in to comment.