github.com/evanw/esbuild/internal/js_ast.EArrow.Body (field)
22 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L497: Body FnBody
github.com/evanw/esbuild/internal/bundler
linker.go#L1659: getter = js_ast.Expr{Data: &js_ast.EArrow{PreferExpr: true, Body: body}}
linker.go#L3414: Args: []js_ast.Expr{{Data: &js_ast.EArrow{Args: args, Body: js_ast.FnBody{Stmts: stmts}}}},
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L2168: return &js_ast.EArrow{Args: args, Body: body}
js_parser.go#L2181: Body: js_ast.FnBody{Loc: arrowLoc, Stmts: []js_ast.Stmt{{Loc: expr.Loc, Data: &js_ast.SReturn{Value: &expr}}}},
js_parser.go#L8927: Body: js_ast.FnBody{Loc: loc, Stmts: []js_ast.Stmt{{Loc: loc, Data: &js_ast.SReturn{Value: &expr}}}},
js_parser.go#L11154: then = js_ast.Expr{Loc: arg.Loc, Data: &js_ast.EArrow{Body: body, PreferExpr: true}}
js_parser.go#L11422: body: e.Body.Stmts,
js_parser.go#L11425: p.pushScopeForVisitPass(js_ast.ScopeFunctionBody, e.Body.Loc)
js_parser.go#L11426: e.Body.Stmts = p.visitStmtsAndPrependTempRefs(e.Body.Stmts, prependTempRefsOpts{kind: stmtsFnBody})
js_parser.go#L11428: p.lowerFunction(&e.IsAsync, &e.Args, e.Body.Loc, &e.Body.Stmts, &e.PreferExpr, &e.HasRestArg, true /* isArrow */)
js_parser.go#L11431: if p.options.mangleSyntax && len(e.Body.Stmts) == 1 {
js_parser.go#L11432: if s, ok := e.Body.Stmts[0].Data.(*js_ast.SReturn); ok {
js_parser.go#L11435: e.Body.Stmts = []js_ast.Stmt{}
js_parser.go#L11450: Body: e.Body,
js_parser_lower.go#L430: Body: js_ast.FnBody{
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L1656: if len(e.Body.Stmts) == 1 && e.PreferExpr {
js_printer.go#L1657: if s, ok := e.Body.Stmts[0].Data.(*js_ast.SReturn); ok && s.Value != nil {
js_printer.go#L1664: p.printBlock(e.Body.Loc, e.Body.Stmts)
 |
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. |