MCPcopy
hub / github.com/evanw/esbuild / printIdentifier

Method printIdentifier

internal/js_printer/js_printer.go:444–450  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

442}
443
444func (p *printer) printIdentifier(name string) {
445 if p.options.ASCIIOnly {
446 p.js = QuoteIdentifier(p.js, name, p.options.UnsupportedFeatures)
447 } else {
448 p.print(name)
449 }
450}
451
452// This is the same as "printIdentifier(StringToUTF16(bytes))" without any
453// unnecessary temporary allocations

Callers 7

printClauseAliasMethod · 0.95
printBindingMethod · 0.95
printPropertyMethod · 0.95
printExprMethod · 0.95
printStmtMethod · 0.95
checkAndPrepareMethod · 0.80

Calls 2

printMethod · 0.95
QuoteIdentifierFunction · 0.85

Tested by

no test coverage detected