github.com/evanw/esbuild/internal/js_printer.printer.options (field)
84 uses
github.com/evanw/esbuild/internal/js_printer (current package)
js_printer.go#L415: if p.options.ASCIIOnly {
js_printer.go#L416: if !p.options.UnsupportedFeatures.Has(compat.UnicodeEscapes) {
js_printer.go#L438: case (c >= firstLowSurrogate && c <= lastLowSurrogate) || (p.options.ASCIIOnly && c > 0xFF):
js_printer.go#L442: case p.options.ASCIIOnly:
js_printer.go#L460: options Options
js_printer.go#L532: if !p.options.AddSourceMappings || loc == p.prevLoc {
js_printer.go#L714: if p.options.InputSourceMap != nil {
js_printer.go#L715: mapping := p.options.InputSourceMap.Find(
js_printer.go#L744: if !p.options.RemoveWhitespace {
js_printer.go#L745: for i := 0; i < p.options.Indent; i++ {
js_printer.go#L763: return js_lexer.IsIdentifier(name) && (!p.options.ASCIIOnly ||
js_printer.go#L764: !p.options.UnsupportedFeatures.Has(compat.UnicodeEscapes) ||
js_printer.go#L769: return js_lexer.IsIdentifierUTF16(name) && (!p.options.ASCIIOnly ||
js_printer.go#L770: !p.options.UnsupportedFeatures.Has(compat.UnicodeEscapes) ||
js_printer.go#L775: if p.options.ASCIIOnly {
js_printer.go#L776: p.js = QuoteIdentifier(p.js, name, p.options.UnsupportedFeatures)
js_printer.go#L798: if p.options.ASCIIOnly && c > lastASCII {
js_printer.go#L801: } else if !p.options.UnsupportedFeatures.Has(compat.UnicodeEscapes) {
js_printer.go#L827: p.options.Indent++
js_printer.go#L860: p.options.Indent--
js_printer.go#L871: p.options.Indent++
js_printer.go#L942: p.options.Indent--
js_printer.go#L955: if !p.options.RemoveWhitespace {
js_printer.go#L961: if !p.options.RemoveWhitespace {
js_printer.go#L987: if !p.options.RemoveWhitespace {
js_printer.go#L1013: if p.options.RemoveWhitespace && !hasRestArg && isArrow && len(args) == 1 {
js_printer.go#L1063: p.options.Indent++
js_printer.go#L1079: p.options.Indent--
js_printer.go#L1157: if !p.options.UnsupportedFeatures.Has(compat.ObjectExtensions) && item.Value != nil {
js_printer.go#L1224: if p.options.UnsupportedFeatures.Has(compat.TemplateLiteral) {
js_printer.go#L1235: if p.options.MangleSyntax {
js_printer.go#L1276: if !record.SourceIndex.IsValid() && record.Kind == ast.ImportDynamic && p.options.OutputFormat.KeepES6ImportExportSyntax() {
js_printer.go#L1280: p.options.Indent++
js_printer.go#L1289: p.options.Indent--
js_printer.go#L1298: if p.options.UnsupportedFeatures.Has(compat.Arrow) {
js_printer.go#L1303: p.options.Indent++
js_printer.go#L1307: if p.options.RemoveWhitespace {
js_printer.go#L1317: p.printSymbol(p.options.ToModuleRef)
js_printer.go#L1326: p.printSymbol(p.options.WrapperRefForSource(record.SourceIndex.GetIndex()))
js_printer.go#L1339: if p.options.UnsupportedFeatures.Has(compat.Arrow) {
js_printer.go#L1340: if !p.options.RemoveWhitespace {
js_printer.go#L1344: p.options.Indent--
js_printer.go#L1405: hasPureComment := !p.options.RemoveWhitespace && e.CanBeUnwrappedIfUnused
js_printer.go#L1424: if !p.options.RemoveWhitespace || len(e.Args) > 0 || level >= js_ast.LPostfix {
js_printer.go#L1449: hasPureComment := !p.options.RemoveWhitespace && e.CanBeUnwrappedIfUnused
js_printer.go#L1469: if p.options.RemoveWhitespace {
js_printer.go#L1526: if !p.options.RemoveWhitespace {
js_printer.go#L1538: p.options.Indent++
js_printer.go#L1547: p.options.Indent--
js_printer.go#L1713: p.options.Indent++
js_printer.go#L1737: p.options.Indent--
js_printer.go#L1753: p.options.Indent++
js_printer.go#L1771: p.options.Indent--
js_printer.go#L1782: if p.options.MangleSyntax {
js_printer.go#L1807: if e.PreferTemplate && !p.options.MangleSyntax && !p.options.UnsupportedFeatures.Has(compat.TemplateLiteral) {
js_printer.go#L1821: if p.options.MangleSyntax && e.Tag == nil && len(e.Parts) == 0 {
js_printer.go#L1942: if p.options.RemoveWhitespace {
js_printer.go#L2082: } else if p.options.MangleSyntax {
js_printer.go#L2228: if p.options.RemoveWhitespace {
js_printer.go#L2348: p.options.Indent++
js_printer.go#L2350: p.options.Indent--
js_printer.go#L2359: p.options.Indent++
js_printer.go#L2364: p.options.Indent--
js_printer.go#L2423: p.options.Indent++
js_printer.go#L2425: p.options.Indent--
js_printer.go#L2438: p.options.Indent++
js_printer.go#L2440: p.options.Indent--
js_printer.go#L2460: p.options.Indent++
js_printer.go#L2462: p.options.Indent--
js_printer.go#L2496: if p.options.ExtractComments {
js_printer.go#L2612: p.options.Indent++
js_printer.go#L2636: p.options.Indent--
js_printer.go#L2652: p.options.Indent++
js_printer.go#L2675: p.options.Indent--
js_printer.go#L2711: p.options.Indent++
js_printer.go#L2714: p.options.Indent--
js_printer.go#L2846: p.options.Indent++
js_printer.go#L2871: p.options.Indent++
js_printer.go#L2876: p.options.Indent--
js_printer.go#L2879: p.options.Indent--
js_printer.go#L2906: p.options.Indent++
js_printer.go#L2930: p.options.Indent--
js_printer.go#L3091: options: options,
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |