github.com/evanw/esbuild/internal/bundler.file.source (field)
58 uses
github.com/evanw/esbuild/internal/bundler (current package)
bundler.go#L36: source logger.Source
bundler.go#L212: source: source,
bundler.go#L909: s.resultChannel <- parseResult{file: file{source: source, repr: &reprJS{ast: ast}}, ok: ok}
bundler.go#L1080: source: source,
bundler.go#L1261: &result.file.source, record.Range, resolveResult.PluginData, inputKindNormal, nil)
bundler.go#L1284: s.results[result.file.source.Index] = result
bundler.go#L1300: j.AddBytes(js_printer.QuoteForJSON(result.file.source.PrettyPath, s.options.ASCIIOnly))
bundler.go#L1301: j.AddString(fmt.Sprintf(": {\n \"bytes\": %d,\n \"imports\": [", len(result.file.source.Contents)))
bundler.go#L1344: js_printer.QuoteForJSON(s.results[record.SourceIndex.GetIndex()].file.source.PrettyPath, s.options.ASCIIOnly),
bundler.go#L1353: s.log.AddRangeError(&result.file.source, record.Range,
bundler.go#L1354: fmt.Sprintf("Cannot import %q into a CSS file", otherFile.source.PrettyPath))
bundler.go#L1362: s.log.AddRangeError(&result.file.source, record.Range,
bundler.go#L1363: fmt.Sprintf("Cannot use %q as a URL", otherFile.source.PrettyPath))
bundler.go#L1367: s.log.AddRangeError(&result.file.source, record.Range,
bundler.go#L1368: fmt.Sprintf("Cannot use %q as a URL", otherFile.source.PrettyPath))
bundler.go#L1380: s.log.AddRangeError(&result.file.source, record.Range,
bundler.go#L1381: fmt.Sprintf("Cannot import %q into a JavaScript file without an output path configured", otherFile.source.PrettyPath))
bundler.go#L1383: stubKey := otherFile.source.KeyPath
bundler.go#L1390: PrettyPath: otherFile.source.PrettyPath,
bundler.go#L1399: source: source,
bundler.go#L1426: s.log.AddRangeWarningWithNotes(&result.file.source, record.Range,
bundler.go#L1428: otherFile.source.PrettyPath), notes)
bundler.go#L1566: keyPath := b.files[sourceIndex].source.KeyPath
bundler.go#L1575: log.AddError(nil, logger.Loc{}, "Refusing to overwrite input file: "+b.files[sourceIndex].source.PrettyPath)
bundler.go#L1643: result.lineOffsetTables = js_printer.GenerateLineOffsetTables(f.source.Contents, repr.ast.ApproximateLineCount)
bundler.go#L1648: result.quotedContents = [][]byte{js_printer.QuoteForJSON(f.source.Contents, options.ASCIIOnly)}
bundler.go#L1705: keyPath := b.files[entryPoint].source.KeyPath
linker.go#L1100: result = append(result, crossChunkExportItem{ref: ref, keyPath: c.files[ref.OuterIndex].source.KeyPath})
linker.go#L1367: name := file.source.IdentifierName
linker.go#L1509: generateExport(file.source.IdentifierName+"_default", "default", jsonValue, prevExports)
linker.go#L1891: c.addRangeError(file.source, js_lexer.RangeOfIdentifier(file.source, namedImport.AliasLoc),
linker.go#L1899: r := js_lexer.RangeOfIdentifier(file.source, namedImport.AliasLoc)
linker.go#L1904: a := c.files[result.sourceIndex].source
linker.go#L1905: b := c.files[result.otherSourceIndex].source
linker.go#L1923: c.log.AddRangeWarningWithNotes(&file.source, r, msg, notes)
linker.go#L1926: c.addRangeErrorWithNotes(file.source, r, msg, notes)
linker.go#L2023: source := trackerFile.source
linker.go#L2028: namedImport.Alias, c.files[nextTracker.sourceIndex].source.PrettyPath))
linker.go#L2034: source := trackerFile.source
linker.go#L2282: if c.files[otherSourceIndex].source.KeyPath.IsDisabled() {
linker.go#L2736: source := file.source
linker.go#L2907: path: file.source.KeyPath,
linker.go#L3842: entryPoint := c.files[chunk.sourceIndex].source.PrettyPath
linker.go#L3883: path := c.files[compileResult.sourceIndex].source.PrettyPath
linker.go#L3923: path := c.files[compileResult.sourceIndex].source.PrettyPath
linker.go#L4248: js_printer.QuoteForJSON(file.source.PrettyPath, c.options.ASCIIOnly)))
linker.go#L4264: j.AddString(fmt.Sprintf("/* %s */\n", c.files[compileResult.sourceIndex].source.PrettyPath))
linker.go#L4279: js_printer.QuoteForJSON(c.files[compileResult.sourceIndex].source.PrettyPath, c.options.ASCIIOnly),
linker.go#L4474: path: file.source.KeyPath,
linker.go#L4475: prettyPath: file.source.PrettyPath,
linker.go#L4486: Namespace: file.source.KeyPath.Namespace,
linker.go#L4493: path.Text = c.fs.Join(c.fs.Dir(file.source.KeyPath.Text), source)
linker.go#L4607: if file.source.KeyPath.Namespace == "file" {
linker.go#L4610: filePath = file.source.PrettyPath
linker.go#L4616: filePath = file.source.KeyPath.Text
linker.go#L4620: binary.LittleEndian.PutUint32(lengthBytes[:], uint32(len(file.source.KeyPath.Namespace)))
linker.go#L4622: hash.Write([]byte(file.source.KeyPath.Namespace))
 |
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. |