MCPcopy Index your code
hub / github.com/processing/processing / if_levSafe

Method if_levSafe

java/src/processing/mode/java/AutoFormat.java:396–412  ·  view source on GitHub ↗

Allows you to increase if_lev safely. Enlarges related arrays where needed; does not change if_lev itself.

()

Source from the content-addressed store, hash-verified

394 * does not change if_lev itself.
395 */
396 private void if_levSafe() {
397 if (s_tabs[0].length <= if_lev) {
398 for (int i = 0; i < s_tabs.length; i++) {
399 s_tabs[i] = PApplet.expand(s_tabs[i]);
400 }
401 }
402 if (sp_flg[0].length <= if_lev) {
403 for (int i = 0; i < sp_flg.length; i++) {
404 sp_flg[i] = PApplet.expand(sp_flg[i]);
405 }
406 }
407 if (s_ind[0].length <= if_lev) {
408 for (int i = 0; i < s_ind.length; i++) {
409 s_ind[i] = PApplet.expand(s_ind[i]);
410 }
411 }
412 }
413
414
415 /**

Callers 1

formatMethod · 0.95

Calls 1

expandMethod · 0.95

Tested by

no test coverage detected