(text, commentEnd, writer, newLine, pos, nextLineStart)
| 18845 | } |
| 18846 | ts.writeCommentRange = writeCommentRange; |
| 18847 | function writeTrimmedCurrentLine(text, commentEnd, writer, newLine, pos, nextLineStart) { |
| 18848 | var end = Math.min(commentEnd, nextLineStart - 1); |
| 18849 | var currentLineText = ts.trimString(text.substring(pos, end)); |
| 18850 | if (currentLineText) { |
| 18851 | // trimmed forward and ending spaces text |
| 18852 | writer.writeComment(currentLineText); |
| 18853 | if (end !== commentEnd) { |
| 18854 | writer.writeLine(); |
| 18855 | } |
| 18856 | } |
| 18857 | else { |
| 18858 | // Empty string - make sure we write empty line |
| 18859 | writer.rawWrite(newLine); |
| 18860 | } |
| 18861 | } |
| 18862 | function calculateIndent(text, pos, end) { |
| 18863 | var currentLineIndent = 0; |
| 18864 | for (; pos < end && ts.isWhiteSpaceSingleLine(text.charCodeAt(pos)); pos++) { |
no test coverage detected
searching dependent graphs…