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

Method sourceMap

output/java/1.4.14/BytecodeDisassembler.java:154–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

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