type github.com/evanw/esbuild/internal/js_ast.Ref
182 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L248: Ref Ref
js_ast.go#L317: ArgumentsRef Ref
js_ast.go#L358: type BIdentifier struct{ Ref Ref }
js_ast.go#L509: Ref Ref
js_ast.go#L548: Ref Ref
js_ast.go#L560: Ref Ref
js_ast.go#L952: NamespaceRef Ref
js_ast.go#L972: NamespaceRef Ref
js_ast.go#L999: Ref Ref
js_ast.go#L1006: Arg Ref
js_ast.go#L1013: Arg Ref
js_ast.go#L1121: NamespaceRef Ref
js_ast.go#L1349: var InvalidRef Ref = Ref{^uint32(0), ^uint32(0)}
js_ast.go#L1362: type Ref struct {
js_ast.go#L1403: Link Ref
js_ast.go#L1490: NamespaceRef Ref
js_ast.go#L1514: Ref Ref
js_ast.go#L1523: Generated []Ref
js_ast.go#L1526: LabelRef Ref
js_ast.go#L1575: func (sm SymbolMap) Get(ref Ref) *Symbol {
js_ast.go#L1604: ExportsRef Ref
js_ast.go#L1605: ModuleRef Ref
js_ast.go#L1606: WrapperRef Ref
js_ast.go#L1615: NamedImports map[Ref]NamedImport
js_ast.go#L1617: TopLevelSymbolToParts map[Ref][]uint32
js_ast.go#L1739: NamespaceRef Ref
js_ast.go#L1748: Ref Ref
js_ast.go#L1771: SymbolUses map[Ref]SymbolUse
js_ast.go#L1794: Ref Ref
js_ast.go#L1806: func FollowSymbols(symbols SymbolMap, ref Ref) Ref {
js_ast.go#L1829: FollowSymbols(symbols, Ref{uint32(sourceIndex), uint32(symbolIndex)})
js_ast.go#L1837: func MergeSymbols(symbols SymbolMap, old Ref, new Ref) Ref {
github.com/evanw/esbuild/internal/bundler
linker.go#L92: unboundModuleRef js_ast.Ref
linker.go#L136: isProbablyTypeScriptType map[js_ast.Ref]bool
linker.go#L153: importsToBind map[js_ast.Ref]importToBind
linker.go#L247: ref js_ast.Ref
linker.go#L251: ref js_ast.Ref
linker.go#L357: exportsToOtherChunks map[js_ast.Ref]string
linker.go#L426: clone := make(map[js_ast.Ref]js_ast.SymbolUse, len(part.SymbolUses))
linker.go#L437: namedImports := make(map[js_ast.Ref]js_ast.NamedImport, len(repr.ast.NamedImports))
linker.go#L454: topLevelSymbolToParts := make(map[js_ast.Ref][]uint32)
linker.go#L464: new.Generated = append([]js_ast.Ref{}, new.Generated...)
linker.go#L475: isProbablyTypeScriptType: make(map[js_ast.Ref]bool),
linker.go#L476: importsToBind: make(map[js_ast.Ref]importToBind),
linker.go#L532: c.unboundModuleRef = js_ast.Ref{OuterIndex: runtime.SourceIndex, InnerIndex: uint32(len(*runtimeSymbols))}
linker.go#L600: part.SymbolUses = make(map[js_ast.Ref]js_ast.SymbolUse)
linker.go#L803: imports map[js_ast.Ref]bool
linker.go#L804: exports map[js_ast.Ref]bool
linker.go#L816: imports := make(map[js_ast.Ref]bool)
linker.go#L817: chunkMetas[chunkIndex] = chunkMeta{imports: imports, exports: make(map[js_ast.Ref]bool)}
linker.go#L944: chunkRepr.exportsToOtherChunks = make(map[js_ast.Ref]string)
linker.go#L1054: ref js_ast.Ref
linker.go#L1069: ref js_ast.Ref
linker.go#L1097: func (c *linkerContext) sortedCrossChunkExportItems(exportRefs map[js_ast.Ref]bool) crossChunkExportItemArray {
linker.go#L1446: ref js_ast.Ref
linker.go#L1453: ref := js_ast.Ref{OuterIndex: sourceIndex, InnerIndex: uint32(len(*inner))}
linker.go#L1477: SymbolUses: map[js_ast.Ref]js_ast.SymbolUse{repr.ast.ModuleRef: {CountEstimate: 1}},
linker.go#L1535: nsExportSymbolUses := make(map[js_ast.Ref]js_ast.SymbolUse)
linker.go#L1536: entryPointExportSymbolUses := make(map[js_ast.Ref]js_ast.SymbolUse)
linker.go#L1561: tempRef := js_ast.Ref{OuterIndex: sourceIndex, InnerIndex: uint32(len(*inner))}
linker.go#L1863: importRef := js_ast.Ref{OuterIndex: sourceIndex, InnerIndex: uint32(innerIndex)}
linker.go#L1959: namespaceRef js_ast.Ref
linker.go#L1965: ref js_ast.Ref
linker.go#L2240: importRef js_ast.Ref
linker.go#L2357: SymbolUses: map[js_ast.Ref]js_ast.SymbolUse{
linker.go#L2565: ref js_ast.Ref, otherSourceIndex uint32,
linker.go#L3012: namespaceRef js_ast.Ref,
linker.go#L3329: commonJSRef js_ast.Ref,
linker.go#L3330: toModuleRef js_ast.Ref,
linker.go#L3456: WrapperRefForSource: func(sourceIndex uint32) js_ast.Ref {
github.com/evanw/esbuild/internal/config
globals.go#L814: FindSymbol func(logger.Loc, string) js_ast.Ref
globals.go#L815: SymbolForDefine func(int) js_ast.Ref
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L56: exportsRef js_ast.Ref
js_parser.go#L57: requireRef js_ast.Ref
js_parser.go#L58: moduleRef js_ast.Ref
js_parser.go#L59: importMetaRef js_ast.Ref
js_parser.go#L60: promiseRef js_ast.Ref
js_parser.go#L61: findSymbolHelper func(loc logger.Loc, name string) js_ast.Ref
js_parser.go#L62: symbolForDefineHelper func(int) js_ast.Ref
js_parser.go#L63: injectedDefineSymbols []js_ast.Ref
js_parser.go#L64: symbolUses map[js_ast.Ref]js_ast.SymbolUse
js_parser.go#L66: runtimeImports map[string]js_ast.Ref
js_parser.go#L73: hoistedRefForSloppyModeBlockFn map[js_ast.Ref]js_ast.Ref
js_parser.go#L76: weakMapRef js_ast.Ref
js_parser.go#L77: weakSetRef js_ast.Ref
js_parser.go#L78: privateGetters map[js_ast.Ref]js_ast.Ref
js_parser.go#L79: privateSetters map[js_ast.Ref]js_ast.Ref
js_parser.go#L83: emittedNamespaceVars map[js_ast.Ref]bool
js_parser.go#L84: isExportedInsideNamespace map[js_ast.Ref]js_ast.Ref
js_parser.go#L85: knownEnumValues map[js_ast.Ref]map[string]float64
js_parser.go#L102: enclosingNamespaceArgRef *js_ast.Ref
js_parser.go#L113: importItemsForNamespace map[js_ast.Ref]map[string]js_ast.LocRef
js_parser.go#L114: isImportItem map[js_ast.Ref]bool
js_parser.go#L115: namedImports map[js_ast.Ref]js_ast.NamedImport
js_parser.go#L117: topLevelSymbolToParts map[js_ast.Ref][]uint32
js_parser.go#L368: ref js_ast.Ref
js_parser.go#L406: superIndexRef *js_ast.Ref
js_parser.go#L436: argumentsRef *js_ast.Ref
js_parser.go#L442: thisCaptureRef *js_ast.Ref
js_parser.go#L443: argumentsCaptureRef *js_ast.Ref
js_parser.go#L447: thisClassStaticRef *js_ast.Ref
js_parser.go#L1187: func (p *parser) newSymbol(kind js_ast.SymbolKind, name string) js_ast.Ref {
js_parser.go#L1188: ref := js_ast.Ref{OuterIndex: p.source.Index, InnerIndex: uint32(len(p.symbols))}
js_parser.go#L1204: func (p *parser) mergeSymbols(old js_ast.Ref, new js_ast.Ref) {
js_parser.go#L1295: func (p *parser) declareSymbol(kind js_ast.SymbolKind, loc logger.Loc, name string) js_ast.Ref {
js_parser.go#L1382: p.hoistedRefForSloppyModeBlockFn = make(map[js_ast.Ref]js_ast.Ref)
js_parser.go#L1490: func (p *parser) recordUsage(ref js_ast.Ref) {
js_parser.go#L1509: func (p *parser) ignoreUsage(ref js_ast.Ref) {
js_parser.go#L1540: func (p *parser) makePromiseRef() js_ast.Ref {
js_parser.go#L1556: func (p *parser) storeNameInRef(name string) js_ast.Ref {
js_parser.go#L1568: return js_ast.Ref{OuterIndex: -uint32(n.Len), InnerIndex: uint32(n.Data - c.Data)}
js_parser.go#L1574: ref := js_ast.Ref{OuterIndex: 0x80000000, InnerIndex: uint32(len(p.allocatedNames))}
js_parser.go#L1581: func (p *parser) loadNameFromRef(ref js_ast.Ref) string {
js_parser.go#L2555: func (p *parser) convertBindingToExpr(binding js_ast.Binding, wrapIdentifier func(logger.Loc, js_ast.Ref) js_ast.Expr) js_ast.Expr {
js_parser.go#L5266: var namespaceRef js_ast.Ref
js_parser.go#L6269: func (p *parser) generateTempRef(declare generateTempRefArg, optionalName string) js_ast.Ref {
js_parser.go#L6303: ref js_ast.Ref
js_parser.go#L6309: var ref js_ast.Ref
js_parser.go#L6359: func (p *parser) findLabelSymbol(loc logger.Loc, name string) (ref js_ast.Ref, isLoop bool, ok bool) {
js_parser.go#L6568: fnStmts := make(map[js_ast.Ref]int)
js_parser.go#L7115: func (p *parser) substituteSingleUseSymbolInStmt(stmt js_ast.Stmt, ref js_ast.Ref, replacement js_ast.Expr) bool {
js_parser.go#L7176: ref js_ast.Ref,
js_parser.go#L7457: func (p *parser) recordDeclaredSymbol(ref js_ast.Ref) {
js_parser.go#L7939: func (p *parser) keepStmtSymbolName(loc logger.Loc, ref js_ast.Ref, name string) js_ast.Stmt {
js_parser.go#L8199: wrapIdentifier := func(loc logger.Loc, ref js_ast.Ref) js_ast.Expr {
js_parser.go#L8737: wrapIdentifier := func(loc logger.Loc, ref js_ast.Ref) js_ast.Expr {
js_parser.go#L8767: func (p *parser) markExportedDeclsInsideNamespace(nsRef js_ast.Ref, decls []js_ast.Decl) {
js_parser.go#L8773: func (p *parser) markExportedBindingInsideNamespace(nsRef js_ast.Ref, binding js_ast.Binding) {
js_parser.go#L8952: func (p *parser) visitClass(nameScopeLoc logger.Loc, class *js_ast.Class) js_ast.Ref {
js_parser.go#L11664: func (p *parser) recordExport(loc logger.Loc, alias string, ref js_ast.Ref) {
js_parser.go#L12095: p.symbolUses = make(map[js_ast.Ref]js_ast.SymbolUse)
js_parser.go#L12106: alreadyDeclared := make(map[js_ast.Ref]bool)
js_parser.go#L12635: runtimeImports: make(map[string]js_ast.Ref),
js_parser.go#L12642: privateGetters: make(map[js_ast.Ref]js_ast.Ref),
js_parser.go#L12643: privateSetters: make(map[js_ast.Ref]js_ast.Ref),
js_parser.go#L12646: emittedNamespaceVars: make(map[js_ast.Ref]bool),
js_parser.go#L12647: isExportedInsideNamespace: make(map[js_ast.Ref]js_ast.Ref),
js_parser.go#L12648: knownEnumValues: make(map[js_ast.Ref]map[string]float64),
js_parser.go#L12652: importItemsForNamespace: make(map[js_ast.Ref]map[string]js_ast.LocRef),
js_parser.go#L12653: isImportItem: make(map[js_ast.Ref]bool),
js_parser.go#L12654: namedImports: make(map[js_ast.Ref]js_ast.NamedImport),
js_parser.go#L12658: p.findSymbolHelper = func(loc logger.Loc, name string) js_ast.Ref {
js_parser.go#L12662: p.symbolForDefineHelper = func(index int) js_ast.Ref {
js_parser.go#L12760: symbols := make(map[string]js_ast.Ref)
js_parser.go#L12835: p.symbolUses = make(map[js_ast.Ref]js_ast.SymbolUse)
js_parser.go#L12912: func (p *parser) declareCommonJSSymbol(kind js_ast.SymbolKind, name string) js_ast.Ref {
js_parser.go#L13004: symbols map[string]js_ast.Ref,
js_parser.go#L13111: p.topLevelSymbolToParts = make(map[js_ast.Ref][]uint32)
js_parser_lower.go#L206: func (p *parser) captureThis() js_ast.Ref {
js_parser_lower.go#L214: func (p *parser) captureArguments() js_ast.Ref {
js_parser_lower.go#L1285: captureIntoRef := func(expr js_ast.Expr) js_ast.Ref {
js_parser_lower.go#L1527: func (p *parser) lowerClass(stmt js_ast.Stmt, expr js_ast.Expr, shadowRef js_ast.Ref) ([]js_ast.Stmt, js_ast.Expr) {
ts_parser.go#L976: nameRef js_ast.Ref, argRef js_ast.Ref, stmtsInsideClosure []js_ast.Stmt,
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L751: func (p *printer) printSymbol(ref js_ast.Ref) {
js_printer.go#L3047: ToModuleRef js_ast.Ref
js_printer.go#L3048: WrapperRefForSource func(uint32) js_ast.Ref
github.com/evanw/esbuild/internal/renamer
renamer.go#L44: NameForSymbol(ref js_ast.Ref) string
renamer.go#L60: func (r *noOpRenamer) NameForSymbol(ref js_ast.Ref) string {
renamer.go#L78: symbolToSlot map[js_ast.Ref]ast.Index32
renamer.go#L90: symbolToSlot: make(map[js_ast.Ref]ast.Index32),
renamer.go#L94: func (r *MinifyRenamer) NameForSymbol(ref js_ast.Ref) string {
renamer.go#L125: func (r *MinifyRenamer) AccumulateSymbolUseCounts(symbolUses map[js_ast.Ref]js_ast.SymbolUse, stableSourceIndices []uint32) {
renamer.go#L142: func (r *MinifyRenamer) AccumulateSymbolCount(ref js_ast.Ref, count uint32) {
renamer.go#L308: Ref js_ast.Ref
renamer.go#L338: func (r *NumberRenamer) NameForSymbol(ref js_ast.Ref) string {
renamer.go#L348: func (r *NumberRenamer) AddTopLevelSymbol(ref js_ast.Ref) {
renamer.go#L352: func (r *NumberRenamer) assignName(scope *numberScope, ref js_ast.Ref) {
renamer.go#L399: r.assignName(s, js_ast.Ref{OuterIndex: sourceIndex, InnerIndex: uint32(innerIndex)})
 |
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. |