github.com/evanw/esbuild/internal/js_parser.parser.requireRef (field)
13 uses
github.com/evanw/esbuild/internal/js_parser (current package)
js_parser.go#L57: requireRef js_ast.Ref
js_parser.go#L9445: p.recordUsage(p.requireRef)
js_parser.go#L9446: return js_ast.Expr{Loc: nameLoc, Data: &js_ast.EIdentifier{Ref: p.requireRef}}, true
js_parser.go#L10605: if id, ok := e.Value.Data.(*js_ast.EIdentifier); ok && id.Ref == p.requireRef {
js_parser.go#L10606: p.ignoreUsage(p.requireRef)
js_parser.go#L11147: Target: js_ast.Expr{Loc: arg.Loc, Data: &js_ast.EIdentifier{Ref: p.requireRef}},
js_parser.go#L11221: if id, ok := dot.Target.Data.(*js_ast.EIdentifier); ok && id.Ref == p.requireRef {
js_parser.go#L11236: p.ignoreUsage(p.requireRef)
js_parser.go#L11332: if id, ok := e.Target.Data.(*js_ast.EIdentifier); ok && id.Ref == p.requireRef {
js_parser.go#L11356: p.ignoreUsage(p.requireRef)
js_parser.go#L11604: if ref == p.requireRef && e != p.callTarget && e != p.typeofTarget && e != p.cjsDotTarget && p.fnOrArrowDataVisit.tryBodyCount == 0 {
js_parser.go#L12884: p.requireRef = p.declareCommonJSSymbol(js_ast.SymbolUnbound, "require")
js_parser.go#L12888: p.requireRef = p.newSymbol(js_ast.SymbolUnbound, "require")
![]() |
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. |