func github.com/evanw/esbuild/internal/js_printer.QuoteForJSON
21 uses
github.com/evanw/esbuild/internal/js_printer (current package)
js_printer.go#L186: func QuoteForJSON(text string, asciiOnly bool) []byte {
github.com/evanw/esbuild/internal/bundler
bundler.go#L336: js_printer.QuoteForJSON(source.PrettyPath, args.options.ASCIIOnly),
bundler.go#L1300: j.AddBytes(js_printer.QuoteForJSON(result.file.source.PrettyPath, s.options.ASCIIOnly))
bundler.go#L1344: js_printer.QuoteForJSON(s.results[record.SourceIndex.GetIndex()].file.source.PrettyPath, s.options.ASCIIOnly),
bundler.go#L1345: js_printer.QuoteForJSON(record.Kind.StringForMetafile(), s.options.ASCIIOnly)))
bundler.go#L1648: result.quotedContents = [][]byte{js_printer.QuoteForJSON(f.source.Contents, options.ASCIIOnly)}
bundler.go#L1660: quotedContents = js_printer.QuoteForJSON(js_lexer.UTF16ToString(value.Value), options.ASCIIOnly)
bundler.go#L1794: j.AddString(fmt.Sprintf("%s: ", js_printer.QuoteForJSON(path, asciiOnly)))
linker.go#L3746: quoted := string(js_printer.QuoteForJSON(repr.ast.Directive, c.options.ASCIIOnly)) + ";" + newline
linker.go#L3797: js_printer.QuoteForJSON(c.res.PrettyPath(logger.Path{Text: importAbsPath, Namespace: "file"}), c.options.ASCIIOnly),
linker.go#L3798: js_printer.QuoteForJSON(continueData.crossChunkImportRecords[i].Kind.StringForMetafile(), c.options.ASCIIOnly)))
linker.go#L3836: js_printer.QuoteForJSON(alias, c.options.ASCIIOnly)))
linker.go#L3843: jMeta.AddString(fmt.Sprintf("],\n \"entryPoint\": %s,\n \"inputs\": {", js_printer.QuoteForJSON(entryPoint, c.options.ASCIIOnly)))
linker.go#L4075: js_printer.QuoteForJSON(path, c.options.ASCIIOnly), metaByteCount[path]))
linker.go#L4111: prefix = fmt.Sprintf("this[%s]", js_printer.QuoteForJSON(prefix, c.options.ASCIIOnly))
linker.go#L4123: prefix = fmt.Sprintf("%s[%s]", prefix, js_printer.QuoteForJSON(name, c.options.ASCIIOnly))
linker.go#L4234: js_printer.QuoteForJSON(c.res.PrettyPath(logger.Path{Text: importAbsPath, Namespace: "file"}), c.options.ASCIIOnly),
linker.go#L4235: js_printer.QuoteForJSON(continueData.crossChunkImportRecords[i].Kind.StringForMetafile(), c.options.ASCIIOnly)))
linker.go#L4248: js_printer.QuoteForJSON(file.source.PrettyPath, c.options.ASCIIOnly)))
linker.go#L4279: js_printer.QuoteForJSON(c.files[compileResult.sourceIndex].source.PrettyPath, c.options.ASCIIOnly),
linker.go#L4525: j.AddBytes(js_printer.QuoteForJSON(item.prettyPath, c.options.ASCIIOnly))
 |
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. |