package renamer
Import Path
github.com/evanw/esbuild/internal/renamer (on go.dev)
Dependency Relation
imports 6 packages, and imported by 3 packages
Involved Source Files
renamer.go
Package-Level Type Names (total 12, in which 6 are exported)
count int
used map[string]uint32
(*T) NextMinifiedName() string
(*T) NextRenamedName(name string) string
reservedNames map[string]uint32
slots [3][]symbolSlot
sortedBuffer StableRefArray
symbolToSlot map[js_ast.Ref]ast.Index32
symbols js_ast.SymbolMap
(*T) AccumulateSymbolCount(ref js_ast.Ref, count uint32)
(*T) AccumulateSymbolUseCounts(symbolUses map[js_ast.Ref]js_ast.SymbolUse, stableSourceIndices []uint32)
(*T) AssignNamesByFrequency(minifier *js_ast.NameMinifier)
(*T) NameForSymbol(ref js_ast.Ref) string
*T : Renamer
func NewMinifyRenamer(symbols js_ast.SymbolMap, firstTopLevelSlots js_ast.SlotCounts, reservedNames map[string]uint32) *MinifyRenamer
names [][]string
root numberScope
symbols js_ast.SymbolMap
(*T) AddTopLevelSymbol(ref js_ast.Ref)
(*T) AssignNamesByScope(nestedScopes map[uint32][]*js_ast.Scope)
(*T) NameForSymbol(ref js_ast.Ref) string
(*T) assignName(scope *numberScope, ref js_ast.Ref)
(*T) assignNamesRecursive(scope *js_ast.Scope, sourceIndex uint32, parent *numberScope, sorted *[]int)
*T : Renamer
func NewNumberRenamer(symbols js_ast.SymbolMap, reservedNames map[string]uint32) *NumberRenamer
( T) NameForSymbol(ref js_ast.Ref) string
*MinifyRenamer
*NumberRenamer
*noOpRenamer
func NewNoOpRenamer(symbols js_ast.SymbolMap) Renamer
func github.com/evanw/esbuild/internal/js_printer.Print(tree js_ast.AST, symbols js_ast.SymbolMap, r Renamer, options js_printer.Options) js_printer.PrintResult
Package-Level Functions (total 6, in which 5 are exported)
Returns the number of nested slots
func NewMinifyRenamer(symbols js_ast.SymbolMap, firstTopLevelSlots js_ast.SlotCounts, reservedNames map[string]uint32) *MinifyRenamer func NewNoOpRenamer(symbols js_ast.SymbolMap) Renamer func NewNumberRenamer(symbols js_ast.SymbolMap, reservedNames map[string]uint32) *NumberRenamer
Package-Level Constants (total 3, none are exported)
![]() |
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. |