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

Method sourceMap

output/java/1.4.19/BytecodeDisassembler.java:155–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153 }
154
155 public String sourceMap() {
156 StringBuilder buf = new StringBuilder();
157 int addr = 0;
158 for (Interval I : code.sourceMap) {
159 if ( I!=null ) {
160 String chunk = code.template.substring(I.a, I.b+1);
161 buf.append(String.format("%04d: %s\t\"%s\"\n", addr, I, chunk));
162 }
163 addr++;
164 }
165 return buf.toString();
166 }
167}

Callers 2

dumpMethod · 0.95
disasmMethod · 0.95

Calls 3

toStringMethod · 0.65
appendMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected