(commentPos, commentEnd, _kind, hasTrailingNewLine)
| 114950 | } |
| 114951 | } |
| 114952 | function emitTrailingCommentOfPosition(commentPos, commentEnd, _kind, hasTrailingNewLine) { |
| 114953 | if (!currentSourceFile) |
| 114954 | return; |
| 114955 | // trailing comments of a position are emitted at /*trailing comment1 */space/*trailing comment*/space |
| 114956 | emitPos(commentPos); |
| 114957 | ts.writeCommentRange(currentSourceFile.text, getCurrentLineMap(), writer, commentPos, commentEnd, newLine); |
| 114958 | emitPos(commentEnd); |
| 114959 | if (hasTrailingNewLine) { |
| 114960 | writer.writeLine(); |
| 114961 | } |
| 114962 | else { |
| 114963 | writer.writeSpace(" "); |
| 114964 | } |
| 114965 | } |
| 114966 | function forEachLeadingCommentToEmit(pos, cb) { |
| 114967 | // Emit the leading comments only if the container's pos doesn't match because the container should take care of emitting these comments |
| 114968 | if (currentSourceFile && (containerPos === -1 || pos !== containerPos)) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…