github.com/evanw/esbuild/internal/ast.ImportRecord.SourceIndex (field)
66 uses
github.com/evanw/esbuild/internal/ast (current package)
ast.go#L65: SourceIndex Index32
github.com/evanw/esbuild/internal/bundler
bundler.go#L402: if record.SourceIndex.IsValid() {
bundler.go#L1262: record.SourceIndex = ast.MakeIndex32(sourceIndex)
bundler.go#L1312: if resolveResult == nil || !record.SourceIndex.IsValid() {
bundler.go#L1331: record.SourceIndex = ast.MakeIndex32(secondarySourceIndex)
bundler.go#L1344: js_printer.QuoteForJSON(s.results[record.SourceIndex.GetIndex()].file.source.PrettyPath, s.options.ASCIIOnly),
bundler.go#L1351: otherFile := &s.results[record.SourceIndex.GetIndex()].file
bundler.go#L1359: otherFile := &s.results[record.SourceIndex.GetIndex()].file
bundler.go#L1377: otherFile := &s.results[record.SourceIndex.GetIndex()].file
bundler.go#L1397: cssSourceIndex: ast.MakeIndex32(record.SourceIndex.GetIndex()),
bundler.go#L1405: record.SourceIndex = css.jsSourceIndex
bundler.go#L1415: if otherFile := &s.results[record.SourceIndex.GetIndex()].file; otherFile.ignoreIfUnused {
bundler.go#L1694: if record := &repr.ast.ImportRecords[importRecordIndex]; record.SourceIndex.IsValid() && record.Kind == ast.ImportDynamic {
bundler.go#L1695: isEntryPoint[record.SourceIndex.GetIndex()] = true
linker.go#L564: if record.SourceIndex.IsValid() {
linker.go#L565: visit(record.SourceIndex.GetIndex())
linker.go#L833: if record.SourceIndex.IsValid() && c.isExternalDynamicImport(record) {
linker.go#L834: record.Path.Text = c.pathBetweenChunks(chunk.relDir, c.files[record.SourceIndex.GetIndex()].entryPointRelPath)
linker.go#L835: record.SourceIndex = ast.Index32{}
linker.go#L1119: if record := &repr.ast.ImportRecords[importRecordIndex]; record.SourceIndex.IsValid() {
linker.go#L1120: otherFile := &c.files[record.SourceIndex.GetIndex()]
linker.go#L1124: record.SourceIndex = ast.Index32{}
linker.go#L1135: if !record.SourceIndex.IsValid() {
linker.go#L1139: otherFile := &c.files[record.SourceIndex.GetIndex()]
linker.go#L1174: c.entryPoints = append(c.entryPoints, record.SourceIndex.GetIndex())
linker.go#L1232: if record.SourceIndex.IsValid() {
linker.go#L1233: otherRepr := c.files[record.SourceIndex.GetIndex()].repr.(*reprJS)
linker.go#L2145: if (!record.SourceIndex.IsValid() && (!c.files[sourceIndex].isEntryPoint || !c.options.OutputFormat.KeepES6ImportExportSyntax())) ||
linker.go#L2146: (record.SourceIndex.IsValid() && record.SourceIndex.GetIndex() != sourceIndex && c.isCommonJSDueToExportStar(record.SourceIndex.GetIndex(), visited)) {
linker.go#L2171: if !record.SourceIndex.IsValid() {
linker.go#L2175: otherSourceIndex := record.SourceIndex.GetIndex()
linker.go#L2276: if !record.SourceIndex.IsValid() {
linker.go#L2281: otherSourceIndex := record.SourceIndex.GetIndex()
linker.go#L2482: if record.SourceIndex.IsValid() {
linker.go#L2483: otherSourceIndex := record.SourceIndex.GetIndex()
linker.go#L2537: if record.SourceIndex.IsValid() {
linker.go#L2538: c.includeFile(record.SourceIndex.GetIndex(), entryPointBit, distanceFromEntryPoint)
linker.go#L2577: return record.Kind == ast.ImportDynamic && c.files[record.SourceIndex.GetIndex()].isEntryPoint
linker.go#L2617: if !record.SourceIndex.IsValid() || c.isExternalDynamicImport(record) {
linker.go#L2627: otherSourceIndex := record.SourceIndex.GetIndex()
linker.go#L2660: if (!record.SourceIndex.IsValid() && (!file.isEntryPoint || !c.options.OutputFormat.KeepES6ImportExportSyntax())) ||
linker.go#L2661: (record.SourceIndex.IsValid() && record.SourceIndex.GetIndex() != sourceIndex && c.files[record.SourceIndex.GetIndex()].repr.(*reprJS).meta.cjsStyleExports) {
linker.go#L2890: if record.SourceIndex.IsValid() && !c.files[record.SourceIndex.GetIndex()].repr.(*reprJS).meta.cjsStyleExports {
linker.go#L2948: if record.SourceIndex.IsValid() && (record.Kind == ast.ImportStmt || isPartInThisChunk) {
linker.go#L2953: visit(record.SourceIndex.GetIndex())
linker.go#L2987: if record.SourceIndex.IsValid() {
linker.go#L2988: visit(record.SourceIndex.GetIndex())
linker.go#L3018: if record.SourceIndex.IsValid() {
linker.go#L3019: if !c.files[record.SourceIndex.GetIndex()].repr.(*reprJS).meta.cjsStyleExports {
linker.go#L3074: if !record.SourceIndex.IsValid() && c.options.OutputFormat.KeepES6ImportExportSyntax() {
linker.go#L3594: if !repr.ast.ImportRecords[s.ImportRecordIndex].SourceIndex.IsValid() {
linker.go#L3607: if !repr.ast.ImportRecords[s.ImportRecordIndex].SourceIndex.IsValid() {
linker.go#L3612: if !repr.ast.ImportRecords[s.ImportRecordIndex].SourceIndex.IsValid() {
linker.go#L4165: if record := ast.ImportRecords[r.ImportRecordIndex]; !record.SourceIndex.IsValid() {
linker.go#L4391: if record.SourceIndex.IsValid() && record.SourceIndex.GetIndex() == runtime.SourceIndex {
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L11856: if record := &p.importRecords[s.ImportRecordIndex]; !record.SourceIndex.IsValid() {
js_parser.go#L13011: p.importRecords[importRecordIndex].SourceIndex = ast.MakeIndex32(sourceIndex)
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L1276: if !record.SourceIndex.IsValid() && record.Kind == ast.ImportDynamic && p.options.OutputFormat.KeepES6ImportExportSyntax() {
js_printer.go#L1325: if record.SourceIndex.IsValid() {
js_printer.go#L1326: p.printSymbol(p.options.WrapperRefForSource(record.SourceIndex.GetIndex()))
![]() |
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. |