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

Function writeQuotedString

internal/ls/hover.go:1100–1108  ·  view source on GitHub ↗
(b *strings.Builder, str string, quote bool)

Source from the content-addressed store, hash-verified

1098}
1099
1100func writeQuotedString(b *strings.Builder, str string, quote bool) {
1101 if quote && !strings.Contains(str, "`") {
1102 b.WriteString("`")
1103 b.WriteString(str)
1104 b.WriteString("`")
1105 } else {
1106 b.WriteString(str)
1107 }
1108}
1109
1110func getEntityNameString(name *ast.Node) string {
1111 var b strings.Builder

Callers 4

writeJSDocLinkMethod · 0.85
writeNameLinkMethod · 0.85
writeMarkdownLinkFunction · 0.85
writeOptionalEntityNameFunction · 0.85

Calls 1

ContainsMethod · 0.65

Tested by

no test coverage detected