MCPcopy Index your code
hub / github.com/antlr/codebuff / indent

Method indent

output/java8/1.4.12/Interpreter.java:610–618  ·  view source on GitHub ↗
(STWriter out, InstanceScope scope, int strIndex)

Source from the content-addressed store, hash-verified

608 }
609
610 protected void indent(STWriter out, InstanceScope scope, int strIndex) {
611 String indent = scope.st.impl.strings[strIndex];
612 if ( debug ) {
613 int start = out.index(); // track char we're about to write
614 EvalExprEvent e = new IndentEvent(scope, start, start+indent.length()-1, getExprStartChar(scope), getExprStopChar(scope));
615 trackDebugEvent(scope, e);
616 }
617 out.pushIndentation(indent);
618 }
619
620 /** Write out an expression result that doesn't use expression options.
621 * 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