MCPcopy Index your code
hub / github.com/microsoft/typescript-go / commentWillEmitNewLine

Method commentWillEmitNewLine

internal/printer/printer.go:3048–3050  ·  view source on GitHub ↗
(comment ast.CommentRange)

Source from the content-addressed store, hash-verified

3046}
3047
3048func (p *Printer) commentWillEmitNewLine(comment ast.CommentRange) bool {
3049 return comment.Kind == ast.KindSingleLineCommentTrivia || comment.HasTrailingNewLine
3050}
3051
3052func (p *Printer) syntheticCommentWillEmitNewLine(comment SynthesizedComment) bool {
3053 return comment.Kind == ast.KindSingleLineCommentTrivia || comment.HasTrailingNewLine

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected