@@ -88,14 +88,14 @@ public abstract class Nodes {
8888
8989 public static final Node[] EMPTY_ARRAY = {};
9090
91- <%- unless Prism ::Template ::OMIT_NODE_ID -%>
91+ <%- if Prism ::Template ::INCLUDE_NODE_ID -%>
9292 public final int nodeId;
9393 <%- end -%>
9494 public final int startOffset;
9595 public final int length;
9696 private boolean newLineFlag = false;
9797
98- <%- unless Prism ::Template ::OMIT_NODE_ID -%>
98+ <%- if Prism ::Template ::INCLUDE_NODE_ID -%>
9999 public Node(int nodeId, int startOffset, int length) {
100100 this.nodeId = nodeId;
101101 <%- else -%>
@@ -245,7 +245,7 @@ public abstract class Nodes {
245245
246246 <%-
247247 params = [ ]
248- params << "int nodeId" unless Prism ::Template ::OMIT_NODE_ID
248+ params << "int nodeId" if Prism ::Template ::INCLUDE_NODE_ID
249249 params << "int startOffset" << "int length"
250250 if node . needs_serialized_length?
251251 params << "int serializedLength"
@@ -255,7 +255,7 @@ public abstract class Nodes {
255255 params . concat ( node . semantic_fields . map { |field | "#{ field . java_type } #{ field . name } " } )
256256 -%>
257257 public <%= node . name -%> (<%= params . join ( ", " ) %> ) {
258- <%- unless Prism ::Template ::OMIT_NODE_ID -%>
258+ <%- if Prism ::Template ::INCLUDE_NODE_ID -%>
259259 super(nodeId, startOffset, length);
260260 <%- else -%>
261261 super(startOffset, length);
@@ -280,7 +280,7 @@ public abstract class Nodes {
280280
281281 public <%= node.name -%> getNonLazy() {
282282 if (isLazy()) {
283- return loader.createDefNodeFromSavedPosition(<%= "nodeId, " unless Prism::Template::OMIT_NODE_ID %> startOffset, length, -serializedLength);
283+ return loader.createDefNodeFromSavedPosition(<%= "nodeId, " if Prism::Template::INCLUDE_NODE_ID %> startOffset, length, -serializedLength);
284284 } else {
285285 return this;
286286 }
0 commit comments