MCPcopy Index your code
hub / github.com/apache/tomcat / doSmap

Method doSmap

java/org/apache/jasper/compiler/SmapUtil.java:602–612  ·  view source on GitHub ↗
(Node n, int inLineCount, int outIncrement, int skippedLines)

Source from the content-addressed store, hash-verified

600 }
601
602 private void doSmap(Node n, int inLineCount, int outIncrement, int skippedLines) {
603 Mark mark = n.getStart();
604 if (mark == null) {
605 return;
606 }
607
608 String unqualifiedName = unqualify(mark.getFile());
609 smap.addFile(unqualifiedName, mark.getFile());
610 smap.addLineData(mark.getLineNumber() + skippedLines, mark.getFile(), inLineCount - skippedLines,
611 n.getBeginJavaLine() + skippedLines, outIncrement);
612 }
613
614 private void doSmap(Node n) {
615 doSmap(n, 1, n.getEndJavaLine() - n.getBeginJavaLine(), 0);

Callers 2

visitMethod · 0.95
doSmapTextMethod · 0.95

Calls 8

getFileMethod · 0.95
getLineNumberMethod · 0.95
unqualifyMethod · 0.80
addFileMethod · 0.80
addLineDataMethod · 0.80
getBeginJavaLineMethod · 0.80
getEndJavaLineMethod · 0.80
getStartMethod · 0.45

Tested by

no test coverage detected