github.com/evanw/esbuild/internal/js_parser.parser.currentScope (field)

75 uses

	github.com/evanw/esbuild/internal/js_parser (current package)
		js_parser.go#L52: 	currentScope             *js_ast.Scope
		js_parser.go#L1004: 	if p.options.mode == config.ModeBundle && p.currentScope.Parent == nil {
		js_parser.go#L1019: 	parent := p.currentScope
		js_parser.go#L1030: 	p.currentScope = scope
		js_parser.go#L1066: 	if p.currentScope.ContainsDirectEval {
		js_parser.go#L1067: 		for _, member := range p.currentScope.Members {
		js_parser.go#L1108: 			if p.options.mode == config.ModeBundle && p.currentScope.Parent == nil &&
		js_parser.go#L1117: 	p.currentScope = p.currentScope.Parent
		js_parser.go#L1122: 	toDiscard := p.currentScope
		js_parser.go#L1124: 	p.currentScope = parent
		js_parser.go#L1139: 	toFlatten := p.currentScope
		js_parser.go#L1141: 	p.currentScope = parent
		js_parser.go#L1170: 	children := p.currentScope.Children
		js_parser.go#L1172: 		if child.scope.Parent == p.currentScope {
		js_parser.go#L1181: 	p.currentScope.Children = children
		js_parser.go#L1307: 	if existing, ok := p.currentScope.Members[name]; ok {
		js_parser.go#L1310: 		switch p.canMergeSymbols(p.currentScope, symbol.Kind, kind) {
		js_parser.go#L1337: 	p.currentScope.Members[name] = js_ast.ScopeMember{Ref: ref, Loc: loc}
		js_parser.go#L4716: 	if _, ok := p.currentScope.Members["arguments"]; !ok {
		js_parser.go#L5158: 				p.currentScope.Generated = append(p.currentScope.Generated, defaultName.Ref)
		js_parser.go#L5559: 					p.currentScope.Generated = append(p.currentScope.Generated, ref)
		js_parser.go#L5886: 			p.currentScope.Generated = append(p.currentScope.Generated, stmt.NamespaceRef)
		js_parser.go#L6217: 						p.currentScope.StrictMode = js_ast.ExplicitStrictMode
		js_parser.go#L6270: 	scope := p.currentScope
		js_parser.go#L6298: 	p.currentScope = order.scope
		js_parser.go#L6313: 	s := p.currentScope
		js_parser.go#L6360: 	for s := p.currentScope; s != nil && !s.Kind.StopsHoisting(); s = s.Parent {
		js_parser.go#L6489: 			p.currentScope.Generated = append(p.currentScope.Generated, *ref)
		js_parser.go#L6498: 			p.currentScope.Generated = append(p.currentScope.Generated, *ref)
		js_parser.go#L6555: 			if !p.currentScope.Kind.StopsHoisting() && p.symbols[int(s.Fn.Name.Ref.InnerIndex)].Kind == js_ast.SymbolHoistedFunction {
		js_parser.go#L6692: 		if p.currentScope != p.moduleScope && !p.currentScope.ContainsDirectEval {
		js_parser.go#L7460: 		IsTopLevel: p.currentScope == p.moduleScope,
		js_parser.go#L8008: 		p.currentScope.Generated = append(p.currentScope.Generated, s.NamespaceRef)
		js_parser.go#L8016: 			p.currentScope.Generated = append(p.currentScope.Generated, ref)
		js_parser.go#L8026: 		p.currentScope.Generated = append(p.currentScope.Generated, s.NamespaceRef)
		js_parser.go#L8153: 		p.currentScope.LabelRef = ref
		js_parser.go#L8156: 			p.currentScope.LabelStmtIsLoop = true
		js_parser.go#L8723: 	if p.options.mode != config.ModeBundle || p.currentScope == p.moduleScope {
		js_parser.go#L8728: 	scope := p.currentScope
		js_parser.go#L8905: 	if p.currentScope.Kind == js_ast.ScopeFunctionArgs {
		js_parser.go#L8963: 		(p.options.mode == config.ModeBundle && p.currentScope.Parent == nil)
		js_parser.go#L8968: 	p.currentScope.RecursiveSetStrictMode(js_ast.ImplicitStrictModeClass)
		js_parser.go#L8992: 			p.currentScope.Members[name] = js_ast.ScopeMember{Loc: class.Name.Loc, Ref: shadowRef}
		js_parser.go#L9024: 		p.currentScope.ForbidArguments = true
		js_parser.go#L9072: 		p.currentScope.ForbidArguments = false
		js_parser.go#L9087: 			p.currentScope.Generated = append(p.currentScope.Generated, classNameRef)
		js_parser.go#L11277: 					for s := p.currentScope; s != nil; s = s.Parent {
		js_parser.go#L12867: 	p.moduleScope = p.currentScope
		js_parser_lower.go#L121: 	return p.currentScope.StrictMode != js_ast.SloppyMode
		js_parser_lower.go#L169: 		switch p.currentScope.StrictMode {
		js_parser_lower.go#L366: 				p.currentScope.Generated = append(p.currentScope.Generated, argRef)
		js_parser_lower.go#L391: 					p.currentScope.Generated = append(p.currentScope.Generated, argRef)
		js_parser_lower.go#L422: 			p.currentScope.Generated = append(p.currentScope.Generated, *p.fnOrArrowDataVisit.superIndexRef, argRef)
		js_parser_lower.go#L1663: 	avoidTDZ := p.options.mode == config.ModeBundle && p.currentScope.Parent == nil
		js_parser_lower.go#L2012: 				p.currentScope.Generated = append(p.currentScope.Generated, argumentsRef)
		js_parser_lower.go#L2156: 			p.currentScope.Generated = append(p.currentScope.Generated, captureRef)
		ts_parser.go#L951: 		if _, ok := p.currentScope.Members[nameText]; ok {
		ts_parser.go#L956: 			p.currentScope.Generated = append(p.currentScope.Generated, argRef)