Skip to content

Commit

Permalink
Add parameter default values operations
Browse files Browse the repository at this point in the history
  • Loading branch information
5pilow committed Jul 31, 2024
1 parent 4a83f22 commit 8fb0ec3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ public void declareJava(MainLeekBlock mainblock, JavaWriter writer) {
writer.addCode("p_" + arg.getToken());
} else {
block.getDefaultValues().get(a).writeJavaCode(mainblock, writer);
writer.addCode(", " + block.getDefaultValues().get(a).operations);
}
writer.addLine(");");
} else {
Expand All @@ -613,6 +614,7 @@ public void declareJava(MainLeekBlock mainblock, JavaWriter writer) {
writer.addCode("final " + arg.getType().getJavaName(mainblock.getVersion()) + " u_" + arg.getName() + " = ");
defaultValue.writeJavaCode(mainblock, writer);
writer.addLine(";");
writer.addCounter(defaultValue.operations);
}
}
}
Expand Down Expand Up @@ -683,6 +685,7 @@ public void declareJava(MainLeekBlock mainblock, JavaWriter writer) {
writer.addCode("p_" + arg.getToken());
} else {
block.getDefaultValues().get(a).writeJavaCode(mainblock, writer);
writer.addCode(", " + block.getDefaultValues().get(a).operations);
}
writer.addLine(");");
} else {
Expand All @@ -692,6 +695,7 @@ public void declareJava(MainLeekBlock mainblock, JavaWriter writer) {
writer.addCode("final " + arg.getType().getJavaName(mainblock.getVersion()) + " u_" + arg.getName() + " = ");
defaultValue.writeJavaCode(mainblock, writer);
writer.addLine(";");
writer.addCounter(defaultValue.operations);
}
}
}
Expand Down Expand Up @@ -760,6 +764,7 @@ public void declareJava(MainLeekBlock mainblock, JavaWriter writer) {
writer.addCode("p_" + arg.getToken());
} else {
block.getDefaultValues().get(a).writeJavaCode(mainblock, writer);
writer.addCode(", " + block.getDefaultValues().get(a).operations);
}
writer.addLine(");");
} else {
Expand All @@ -769,6 +774,7 @@ public void declareJava(MainLeekBlock mainblock, JavaWriter writer) {
writer.addCode("final " + arg.getType().getJavaPrimitiveName(mainblock.getVersion()) + " u_" + arg.getName() + " = ");
defaultValue.writeJavaCode(mainblock, writer);
writer.addLine(";");
writer.addCounter(defaultValue.operations);
}
}
}
Expand Down

0 comments on commit 8fb0ec3

Please sign in to comment.