github.com/evanw/esbuild/internal/js_ast.SFunction.Fn (field)
52 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L1019: Fn Fn
github.com/evanw/esbuild/internal/bundler
linker.go#L3221: s2 = &js_ast.SFunction{Fn: s2.Fn}
linker.go#L3222: s2.Fn.Name = &s.DefaultName
linker.go#L4407: c.symbols.Get(s.Fn.Name.Ref).Kind = js_ast.SymbolUnbound
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L5005: return js_ast.Stmt{Loc: loc, Data: &js_ast.SFunction{Fn: fn, IsExport: opts.isExport}}
js_parser.go#L5185: if s, ok := stmt.Data.(*js_ast.SFunction); ok && s.Fn.Name != nil {
js_parser.go#L5186: defaultName = js_ast.LocRef{Loc: defaultLoc, Ref: s.Fn.Name.Ref}
js_parser.go#L5214: if s.Fn.Name != nil {
js_parser.go#L5215: defaultName = js_ast.LocRef{Loc: defaultLoc, Ref: s.Fn.Name.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#L6576: index, ok := fnStmts[s.Fn.Name.Ref]
js_parser.go#L6579: fnStmts[s.Fn.Name.Ref] = index
js_parser.go#L6581: Loc: s.Fn.Name.Loc, Data: &js_ast.BIdentifier{Ref: s.Fn.Name.Ref}}})
js_parser.go#L6584: if hoistedRef, ok := p.hoistedRefForSloppyModeBlockFn[s.Fn.Name.Ref]; ok {
js_parser.go#L6585: p.recordUsage(s.Fn.Name.Ref)
js_parser.go#L6587: Binding: js_ast.Binding{Loc: s.Fn.Name.Loc, Data: &js_ast.BIdentifier{Ref: hoistedRef}},
js_parser.go#L6588: Value: &js_ast.Expr{Loc: s.Fn.Name.Loc, Data: &js_ast.EIdentifier{Ref: s.Fn.Name.Ref}},
js_parser.go#L6594: s.Fn.Name = nil
js_parser.go#L6595: letDecls[index].Value = &js_ast.Expr{Loc: stmt.Loc, Data: &js_ast.EFunction{Fn: s.Fn}}
js_parser.go#L7399: hasIfScope := ok && fn.Fn.HasIfScope
js_parser.go#L8081: if s2.Fn.Name == nil {
js_parser.go#L8083: s2.Fn.Name = &clone
js_parser.go#L8086: name = p.symbols[s2.Fn.Name.Ref.InnerIndex].OriginalName
js_parser.go#L8090: p.visitFn(&s2.Fn, s2.Fn.OpenParenLoc)
js_parser.go#L8094: if p.options.keepNames && s2.Fn.Name != nil {
js_parser.go#L8095: stmts = append(stmts, p.keepStmtSymbolName(s2.Fn.Name.Loc, s2.Fn.Name.Ref, name))
js_parser.go#L8501: p.visitFn(&s.Fn, s.Fn.OpenParenLoc)
js_parser.go#L8509: Name: p.symbols[s.Fn.Name.Ref.InnerIndex].OriginalName,
js_parser.go#L8510: NameLoc: s.Fn.Name.Loc,
js_parser.go#L8512: js_ast.Expr{Loc: s.Fn.Name.Loc, Data: &js_ast.EIdentifier{Ref: s.Fn.Name.Ref}},
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#L11992: p.recordExport(s.Fn.Name.Loc, p.symbols[s.Fn.Name.Ref.InnerIndex].OriginalName, s.Fn.Name.Ref)
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L2511: if s.Fn.IsAsync {
js_printer.go#L2515: if s.Fn.IsGenerator {
js_printer.go#L2519: p.printSymbol(s.Fn.Name.Ref)
js_printer.go#L2520: p.printFn(s.Fn)
js_printer.go#L2557: if s2.Fn.IsAsync {
js_printer.go#L2561: if s2.Fn.IsGenerator {
js_printer.go#L2565: if s2.Fn.Name != nil {
js_printer.go#L2566: p.printSymbol(s2.Fn.Name.Ref)
js_printer.go#L2568: p.printFn(s2.Fn)
 |
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. |