MCPcopy Create free account
hub / github.com/antlr/codebuff / indent

Method indent

output/java/1.4.19/Interpreter.java:658–666  ·  view source on GitHub ↗
(STWriter out, InstanceScope scope, int strIndex)

Source from the content-addressed store, hash-verified

656 }
657
658 protected void indent(STWriter out, InstanceScope scope, int strIndex) {
659 String indent = scope.st.impl.strings[strIndex];
660 if ( debug ) {
661 int start = out.index(); // track char we're about to write
662 EvalExprEvent e = new IndentEvent(scope, start, start+indent.length()-1, getExprStartChar(scope), getExprStopChar(scope));
663 trackDebugEvent(scope, e);
664 }
665 out.pushIndentation(indent);
666 }
667
668 /** Write out an expression result that doesn't use expression options.
669 * E.g., {@code <name>}

Callers 1

_execMethod · 0.95

Calls 6

getExprStartCharMethod · 0.95
getExprStopCharMethod · 0.95
trackDebugEventMethod · 0.95
indexMethod · 0.65
pushIndentationMethod · 0.65
lengthMethod · 0.45

Tested by

no test coverage detected