github.com/evanw/esbuild/internal/js_ast.Ref.InnerIndex (field)

123 uses

	github.com/evanw/esbuild/internal/js_ast (current package)
		js_ast.go#L1364: 	InnerIndex uint32
		js_ast.go#L1576: 	return &sm.Outer[ref.OuterIndex][ref.InnerIndex]

	github.com/evanw/esbuild/internal/bundler
		linker.go#L532: 		c.unboundModuleRef = js_ast.Ref{OuterIndex: runtime.SourceIndex, InnerIndex: uint32(len(*runtimeSymbols))}
		linker.go#L1092: 	return ai.ref.InnerIndex < aj.ref.InnerIndex ||
		linker.go#L1093: 		(ai.ref.InnerIndex == aj.ref.InnerIndex && ai.keyPath.ComesBeforeInSortedOrder(aj.keyPath))
		linker.go#L1453: 		ref := js_ast.Ref{OuterIndex: sourceIndex, InnerIndex: uint32(len(*inner))}
		linker.go#L1561: 				tempRef := js_ast.Ref{OuterIndex: sourceIndex, InnerIndex: uint32(len(*inner))}
		linker.go#L1854: 		sortedImportRefs = append(sortedImportRefs, int(ref.InnerIndex))
		linker.go#L1863: 		importRef := js_ast.Ref{OuterIndex: sourceIndex, InnerIndex: uint32(innerIndex)}

	github.com/evanw/esbuild/internal/js_parser
		js_parser.go#L563: 		return hashCombine(6, e.Ref.InnerIndex), true
		js_parser.go#L1051: 			kind := p.symbols[member.Ref.InnerIndex].Kind
		js_parser.go#L1109: 				p.symbols[member.Ref.InnerIndex].Kind == js_ast.SymbolImport {
		js_parser.go#L1113: 			p.symbols[member.Ref.InnerIndex].MustNotBeRenamed = true
		js_parser.go#L1188: 	ref := js_ast.Ref{OuterIndex: p.source.Index, InnerIndex: uint32(len(p.symbols))}
		js_parser.go#L1205: 	oldSymbol := &p.symbols[old.InnerIndex]
		js_parser.go#L1206: 	newSymbol := &p.symbols[new.InnerIndex]
		js_parser.go#L1308: 		symbol := &p.symbols[existing.Ref.InnerIndex]
		js_parser.go#L1345: 			symbol := &p.symbols[member.Ref.InnerIndex]
		js_parser.go#L1385: 				symbol = &p.symbols[hoistedRef.InnerIndex]
		js_parser.go#L1408: 					existingSymbol := &p.symbols[existingMember.Ref.InnerIndex]
		js_parser.go#L1495: 		p.symbols[ref.InnerIndex].UseCountEstimate++
		js_parser.go#L1505: 		p.tsUseCounts[ref.InnerIndex]++
		js_parser.go#L1512: 		p.symbols[ref.InnerIndex].UseCountEstimate--
		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#L1583: 		return p.allocatedNames[ref.InnerIndex]
		js_parser.go#L1588: 		return p.source.Contents[ref.InnerIndex : int32(ref.InnerIndex)-int32(ref.OuterIndex)]
		js_parser.go#L4298: 					p.symbols[id.Ref.InnerIndex].OriginalName))
		js_parser.go#L4718: 		p.symbols[fn.ArgumentsRef.InnerIndex].MustNotBeRenamed = true
		js_parser.go#L6351: 		p.symbols[ref.InnerIndex].MustNotBeRenamed = true
		js_parser.go#L6361: 		if s.Kind == js_ast.ScopeLabel && name == p.symbols[s.LabelRef.InnerIndex].OriginalName {
		js_parser.go#L6555: 			if !p.currentScope.Kind.StopsHoisting() && p.symbols[int(s.Fn.Name.Ref.InnerIndex)].Kind == js_ast.SymbolHoistedFunction {
		js_parser.go#L6718: 						if id, ok := last.Binding.Data.(*js_ast.BIdentifier); ok && p.symbols[id.Ref.InnerIndex].UseCountEstimate == 1 {
		js_parser.go#L7474: 		name := p.symbols[b.Ref.InnerIndex].OriginalName
		js_parser.go#L7496: 						*item.DefaultValue, p.symbols[id.Ref.InnerIndex].OriginalName, wasAnonymousNamedExpr)
		js_parser.go#L7514: 						*property.DefaultValue, p.symbols[id.Ref.InnerIndex].OriginalName, wasAnonymousNamedExpr)
		js_parser.go#L7985: 			if p.symbols[ref.InnerIndex].Kind == js_ast.SymbolUnbound {
		js_parser.go#L8068: 					symbol := p.symbols[id.Ref.InnerIndex]
		js_parser.go#L8086: 						name = p.symbols[s2.Fn.Name.Ref.InnerIndex].OriginalName
		js_parser.go#L8171: 						*d.Value, p.symbols[id.Ref.InnerIndex].OriginalName, wasAnonymousNamedExpr)
		js_parser.go#L8203: 					Name:    p.symbols[ref.InnerIndex].OriginalName,
		js_parser.go#L8509: 					Name:    p.symbols[s.Fn.Name.Ref.InnerIndex].OriginalName,
		js_parser.go#L8520: 			stmts = append(stmts, p.keepStmtSymbolName(s.Fn.Name.Loc, s.Fn.Name.Ref, p.symbols[s.Fn.Name.Ref.InnerIndex].OriginalName))
		js_parser.go#L8542: 					Name:    p.symbols[s.Class.Name.Ref.InnerIndex].OriginalName,
		js_parser.go#L8988: 		name := p.symbols[classNameRef.InnerIndex].OriginalName
		js_parser.go#L9036: 			nameToKeep = p.symbols[private.Ref.InnerIndex].OriginalName
		js_parser.go#L9079: 		if p.symbols[shadowRef.InnerIndex].UseCountEstimate == 0 {
		js_parser.go#L9194: 			return p.symbols[result.ref.InnerIndex].Kind == js_ast.SymbolUnbound
		js_parser.go#L9404: 					symbol := &p.symbols[item.Ref.InnerIndex]
		js_parser.go#L9901: 		if in.assignTarget != js_ast.AssignTargetNone && p.symbols[result.ref.InnerIndex].Kind == js_ast.SymbolConst {
		js_parser.go#L9916: 		if p.symbols[e.Ref.InnerIndex].Kind == js_ast.SymbolUnbound && !result.isInsideWithScope && e != p.deleteTarget {
		js_parser.go#L10381: 				e.Right = p.maybeKeepExprSymbolName(e.Right, p.symbols[id.Ref.InnerIndex].OriginalName, wasAnonymousNamedExpr)
		js_parser.go#L10520: 			kind := p.symbols[result.ref.InnerIndex].Kind
		js_parser.go#L10580: 			if id, ok := e.Target.Data.(*js_ast.EIdentifier); ok && p.symbols[id.Ref.InnerIndex].Kind == js_ast.SymbolImport {
		js_parser.go#L10582: 				p.log.AddRangeError(&p.source, r, fmt.Sprintf("Cannot assign to property on import %q", p.symbols[id.Ref.InnerIndex].OriginalName))
		js_parser.go#L10599: 			if !idBefore && idAfter && p.symbols[id.Ref.InnerIndex].Kind == js_ast.SymbolUnbound {
		js_parser.go#L10927: 							e2.Right, p.symbols[id.Ref.InnerIndex].OriginalName, wasAnonymousNamedExpr)
		js_parser.go#L10999: 							*property.Initializer, p.symbols[id.Ref.InnerIndex].OriginalName, wasAnonymousNamedExpr)
		js_parser.go#L11264: 				if symbol := p.symbols[id.Ref.InnerIndex]; symbol.OriginalName == "eval" {
		js_parser.go#L11462: 		if p.options.mangleSyntax && name != nil && p.symbols[name.Ref.InnerIndex].UseCountEstimate == 0 {
		js_parser.go#L11468: 			expr = p.keepExprSymbolName(expr, p.symbols[name.Ref.InnerIndex].OriginalName)
		js_parser.go#L11493: 			name := p.symbols[id.Ref.InnerIndex].OriginalName
		js_parser.go#L11514: 				p.symbols[id.Ref.InnerIndex].OriginalName,
		js_parser.go#L11558: 		if p.symbols[ref.InnerIndex].Kind == js_ast.SymbolImport {
		js_parser.go#L11561: 			p.log.AddRangeError(&p.source, r, fmt.Sprintf("Cannot assign to import %q", p.symbols[ref.InnerIndex].OriginalName))
		js_parser.go#L11581: 			name := p.symbols[ref.InnerIndex].OriginalName
		js_parser.go#L11643: 		if name := p.symbols[fn.Name.Ref.InnerIndex].OriginalName; isEvalOrArguments(name) {
		js_parser.go#L11681: 		p.recordExport(binding.Loc, p.symbols[b.Ref.InnerIndex].OriginalName, b.Ref)
		js_parser.go#L11779: 					symbol := p.symbols[s.DefaultName.Ref.InnerIndex]
		js_parser.go#L11782: 					if p.options.ts.Parse && p.tsUseCounts[s.DefaultName.Ref.InnerIndex] != 0 {
		js_parser.go#L11795: 					symbol := p.symbols[s.NamespaceRef.InnerIndex]
		js_parser.go#L11798: 					if p.options.ts.Parse && p.tsUseCounts[s.NamespaceRef.InnerIndex] != 0 {
		js_parser.go#L11818: 						symbol := p.symbols[item.Name.Ref.InnerIndex]
		js_parser.go#L11821: 						if p.options.ts.Parse && p.tsUseCounts[item.Name.Ref.InnerIndex] != 0 {
		js_parser.go#L11890: 					convertStarToClause := p.symbols[s.NamespaceRef.InnerIndex].UseCountEstimate == 0
		js_parser.go#L11910: 								originalName := p.symbols[name.Ref.InnerIndex].OriginalName
		js_parser.go#L11945: 								p.symbols[name.Ref.InnerIndex].NamespaceAlias = &js_ast.NamespaceAlias{
		js_parser.go#L11992: 				p.recordExport(s.Fn.Name.Loc, p.symbols[s.Fn.Name.Ref.InnerIndex].OriginalName, s.Fn.Name.Ref)
		js_parser.go#L11997: 				p.recordExport(s.Class.Name.Loc, p.symbols[s.Class.Name.Ref.InnerIndex].OriginalName, s.Class.Name.Ref)
		js_parser.go#L12025: 					if ref := decl.Binding.Data.(*js_ast.BIdentifier).Ref; p.symbols[ref.InnerIndex].UseCountEstimate == 0 {
		js_parser.go#L12110: 				link := p.symbols[local.Ref.InnerIndex].Link
		js_parser.go#L12298: 		if e.CanBeRemovedIfUnused || p.symbols[e.Ref.InnerIndex].Kind != js_ast.SymbolUnbound {
		js_parser.go#L12406: 		if e.CanBeRemovedIfUnused || p.symbols[e.Ref.InnerIndex].Kind != js_ast.SymbolUnbound {
		js_parser.go#L12933: 	if ok && p.symbols[member.Ref.InnerIndex].Kind == js_ast.SymbolHoisted &&
		js_parser.go#L12979: 			symbol := &p.symbols[member.Ref.InnerIndex]
		js_parser.go#L12985: 			symbol := &p.symbols[scope.LabelRef.InnerIndex]
		js_parser.go#L13171: 		UsesExportsRef:    p.symbols[p.exportsRef.InnerIndex].UseCountEstimate > 0,
		js_parser.go#L13172: 		UsesModuleRef:     p.symbols[p.moduleRef.InnerIndex].UseCountEstimate > 0,
		js_parser_lower.go#L203: 	return p.options.unsupportedJSFeatures.Has(p.symbols[private.Ref.InnerIndex].Kind.Feature())
		js_parser_lower.go#L961: 	switch p.symbols[private.Ref.InnerIndex].Kind {
		js_parser_lower.go#L998: 	switch p.symbols[private.Ref.InnerIndex].Kind {
		js_parser_lower.go#L1547: 			symbol := &p.symbols[class.Name.Ref.InnerIndex]
		js_parser_lower.go#L1569: 		nameToKeep = p.symbols[class.Name.Ref.InnerIndex].OriginalName
		js_parser_lower.go#L1577: 			nameToKeep = p.symbols[class.Name.Ref.InnerIndex].OriginalName
		js_parser_lower.go#L1823: 					ref := p.generateTempRef(tempRefNeedsDeclare, "_"+p.symbols[private.Ref.InnerIndex].OriginalName[1:])
		js_parser_lower.go#L1824: 					p.symbols[private.Ref.InnerIndex].Link = ref
		js_parser_lower.go#L1897: 				if p.symbols[private.Ref.InnerIndex].Link == js_ast.InvalidRef {
		js_parser_lower.go#L1899: 					ref := p.generateTempRef(tempRefNeedsDeclare, "_"+p.symbols[private.Ref.InnerIndex].OriginalName[1:])
		js_parser_lower.go#L1900: 					p.symbols[private.Ref.InnerIndex].Link = ref
		js_parser_lower.go#L1954: 					p.symbols[methodRef.InnerIndex].Link = p.privateSetters[private.Ref]
		js_parser_lower.go#L1956: 					p.symbols[methodRef.InnerIndex].Link = p.privateGetters[private.Ref]
		js_parser_lower.go#L1975: 											Name:    p.symbols[id.Ref.InnerIndex].OriginalName,
		js_parser_lower.go#L2155: 			captureRef := p.newSymbol(js_ast.SymbolOther, p.symbols[shadowRef.InnerIndex].OriginalName)
		ts_parser.go#L979: 	symbol := p.symbols[nameRef.InnerIndex]
		ts_parser.go#L982: 		symbol = p.symbols[nameRef.InnerIndex]
		ts_parser.go#L1008: 		name := p.symbols[nameRef.InnerIndex].OriginalName

	github.com/evanw/esbuild/internal/renamer
		renamer.go#L228: 		symbols[member.Ref.InnerIndex].NestedScopeSlot = validSlot
		renamer.go#L231: 		symbols[ref.InnerIndex].NestedScopeSlot = validSlot
		renamer.go#L242: 		symbols[member.Ref.InnerIndex].NestedScopeSlot = ast.Index32{}
		renamer.go#L245: 		symbols[ref.InnerIndex].NestedScopeSlot = ast.Index32{}
		renamer.go#L254: 		sortedMembers = append(sortedMembers, int(member.Ref.InnerIndex))
		renamer.go#L269: 		symbol := &symbols[ref.InnerIndex]
		renamer.go#L278: 		symbol := &symbols[scope.LabelRef.InnerIndex]
		renamer.go#L318: 	return ai.StableOuterIndex > aj.StableOuterIndex || (ai.StableOuterIndex == aj.StableOuterIndex && ai.Ref.InnerIndex < aj.Ref.InnerIndex)
		renamer.go#L341: 		if name := inner[ref.InnerIndex]; name != "" {
		renamer.go#L357: 	if inner != nil && inner[ref.InnerIndex] != "" {
		renamer.go#L384: 	inner[ref.InnerIndex] = name
		renamer.go#L393: 		*sorted = append(*sorted, int(member.Ref.InnerIndex))
		renamer.go#L399: 		r.assignName(s, js_ast.Ref{OuterIndex: sourceIndex, InnerIndex: uint32(innerIndex)})