MCPcopy Create free account
hub / github.com/microsoft/typescript-go / isComment

Function isComment

internal/format/span.go:864–866  ·  view source on GitHub ↗
(kind ast.Kind)

Source from the content-addressed store, hash-verified

862}
863
864func isComment(kind ast.Kind) bool {
865 return kind == ast.KindSingleLineCommentTrivia || kind == ast.KindMultiLineCommentTrivia
866}
867
868func (w *formatSpanWorker) insertIndentation(pos int, indentation int, lineAdded bool) {
869 indentationString := getIndentationString(indentation, w.formattingContext.Options)

Calls

no outgoing calls

Tested by

no test coverage detected