github.com/evanw/esbuild/internal/ast.Index32.IsValid (method)
41 uses
github.com/evanw/esbuild/internal/ast (current package)
ast.go#L105: func (i Index32) IsValid() bool {
github.com/evanw/esbuild/internal/bundler
bundler.go#L402: if record.SourceIndex.IsValid() {
bundler.go#L1312: if resolveResult == nil || !record.SourceIndex.IsValid() {
bundler.go#L1382: } else if !css.jsSourceIndex.IsValid() {
bundler.go#L1406: if !css.jsSourceIndex.IsValid() {
bundler.go#L1694: if record := &repr.ast.ImportRecords[importRecordIndex]; record.SourceIndex.IsValid() && record.Kind == ast.ImportDynamic {
linker.go#L560: if repr, ok := file.repr.(*reprJS); ok && repr.cssSourceIndex.IsValid() {
linker.go#L564: if record.SourceIndex.IsValid() {
linker.go#L833: if record.SourceIndex.IsValid() && c.isExternalDynamicImport(record) {
linker.go#L912: if otherChunkIndex := c.symbols.Get(importRef).ChunkIndex; otherChunkIndex.IsValid() {
linker.go#L1119: if record := &repr.ast.ImportRecords[importRecordIndex]; record.SourceIndex.IsValid() {
linker.go#L1135: if !record.SourceIndex.IsValid() {
linker.go#L1232: if record.SourceIndex.IsValid() {
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#L2276: if !record.SourceIndex.IsValid() {
linker.go#L2462: if repr.cssSourceIndex.IsValid() {
linker.go#L2482: if record.SourceIndex.IsValid() {
linker.go#L2537: if record.SourceIndex.IsValid() {
linker.go#L2617: if !record.SourceIndex.IsValid() || c.isExternalDynamicImport(record) {
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#L2987: if record.SourceIndex.IsValid() {
linker.go#L3018: if record.SourceIndex.IsValid() {
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() {
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#L1530: if e.ImportRecordIndex.IsValid() {
github.com/evanw/esbuild/internal/renamer
renamer.go#L109: if !i.IsValid() {
renamer.go#L162: if !i.IsValid() {
renamer.go#L263: if ns := symbol.SlotNamespace(); ns != js_ast.SlotMustNotBeRenamed && !symbol.NestedScopeSlot.IsValid() {
renamer.go#L270: if ns := symbol.SlotNamespace(); ns != js_ast.SlotMustNotBeRenamed && !symbol.NestedScopeSlot.IsValid() {
![]() |
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. |