github.com/evanw/esbuild/internal/js_ast.SymbolUse.CountEstimate (field)
16 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L1799: CountEstimate uint32
github.com/evanw/esbuild/internal/bundler
linker.go#L1436: part.SymbolUses[repr.ast.ModuleRef] = js_ast.SymbolUse{CountEstimate: 1}
linker.go#L1477: SymbolUses: map[js_ast.Ref]js_ast.SymbolUse{repr.ast.ModuleRef: {CountEstimate: 1}},
linker.go#L1485: part.SymbolUses[export.ref] = js_ast.SymbolUse{CountEstimate: 1}
linker.go#L1617: entryPointExportSymbolUses[tempRef] = js_ast.SymbolUse{CountEstimate: 2}
linker.go#L1665: nsExportSymbolUses[export.ref] = js_ast.SymbolUse{CountEstimate: 1}
linker.go#L1667: entryPointExportSymbolUses[export.ref] = js_ast.SymbolUse{CountEstimate: 1}
linker.go#L1831: entryPointExportSymbolUses[repr.ast.WrapperRef] = js_ast.SymbolUse{CountEstimate: 1}
linker.go#L2358: repr.ast.WrapperRef: {CountEstimate: 1},
linker.go#L2359: commonJSRef: {CountEstimate: 1},
linker.go#L2568: use.CountEstimate += useCount
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L1497: use.CountEstimate++
js_parser.go#L1514: use.CountEstimate--
js_parser.go#L1515: if use.CountEstimate == 0 {
js_parser_lower.go#L319: usesArgumentsRef := !isArrow && p.fnOnlyDataVisit.argumentsRef != nil && p.symbolUses[*p.fnOnlyDataVisit.argumentsRef].CountEstimate > 0
github.com/evanw/esbuild/internal/renamer
renamer.go#L138: r.AccumulateSymbolCount(stable.Ref, symbolUses[stable.Ref].CountEstimate)
![]() |
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. |