@@ -89,14 +89,14 @@ public abstract class Nodes {
8989
9090 public static final Node[] EMPTY_ARRAY = {};
9191
92- <%- unless Prism ::Template ::OMIT_NODE_ID -%>
92+ <%- if Prism ::Template ::INCLUDE_NODE_ID -%>
9393 public final int nodeId;
9494 <%- end -%>
9595 public final int startOffset;
9696 public final int length;
9797 private boolean newLineFlag = false;
9898
99- <%- unless Prism ::Template ::OMIT_NODE_ID -%>
99+ <%- if Prism ::Template ::INCLUDE_NODE_ID -%>
100100 public Node(int nodeId, int startOffset, int length) {
101101 this.nodeId = nodeId;
102102 <%- else -%>
@@ -246,7 +246,7 @@ public abstract class Nodes {
246246
247247 <%-
248248 params = [ ]
249- params << "int nodeId" unless Prism ::Template ::OMIT_NODE_ID
249+ params << "int nodeId" if Prism ::Template ::INCLUDE_NODE_ID
250250 params << "int startOffset" << "int length"
251251 if node . needs_serialized_length?
252252 params << "int serializedLength"
@@ -256,7 +256,7 @@ public abstract class Nodes {
256256 params . concat ( node . semantic_fields . map { |field | "#{ field . java_type } #{ field . name } " } )
257257 -%>
258258 public <%= node . name -%> (<%= params . join ( ", " ) %> ) {
259- <%- unless Prism ::Template ::OMIT_NODE_ID -%>
259+ <%- if Prism ::Template ::INCLUDE_NODE_ID -%>
260260 super(nodeId, startOffset, length);
261261 <%- else -%>
262262 super(startOffset, length);
@@ -281,7 +281,7 @@ public abstract class Nodes {
281281
282282 public <%= node.name -%> getNonLazy() {
283283 if (isLazy()) {
284- return loader.createDefNodeFromSavedPosition(<%= "nodeId, " unless Prism::Template::OMIT_NODE_ID %> startOffset, length, -serializedLength);
284+ return loader.createDefNodeFromSavedPosition(<%= "nodeId, " if Prism::Template::INCLUDE_NODE_ID %> startOffset, length, -serializedLength);
285285 } else {
286286 return this;
287287 }
0 commit comments