github.com/evanw/esbuild/internal/js_ast.Fn.Body (field)
21 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L316: Body FnBody
github.com/evanw/esbuild/internal/bundler
linker.go#L1657: getter = js_ast.Expr{Data: &js_ast.EFunction{Fn: js_ast.Fn{Body: body}}}
linker.go#L3409: Args: []js_ast.Expr{{Data: &js_ast.EFunction{Fn: js_ast.Fn{Args: args, Body: js_ast.FnBody{Stmts: stmts}}}}},
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L4736: fn.Body = p.parseFnBody(data)
js_parser.go#L11152: then = js_ast.Expr{Loc: arg.Loc, Data: &js_ast.EFunction{Fn: js_ast.Fn{Body: body}}}
js_parser.go#L11450: Body: e.Body,
js_parser.go#L11651: body: fn.Body.Stmts,
js_parser.go#L11654: p.pushScopeForVisitPass(js_ast.ScopeFunctionBody, fn.Body.Loc)
js_parser.go#L11655: fn.Body.Stmts = p.visitStmtsAndPrependTempRefs(fn.Body.Stmts, prependTempRefsOpts{fnBodyLoc: &fn.Body.Loc, kind: stmtsFnBody})
js_parser.go#L11657: p.lowerFunction(&fn.IsAsync, &fn.Args, fn.Body.Loc, &fn.Body.Stmts, nil, &fn.HasRestArg, false /* isArrow */)
js_parser_lower.go#L304: Body: js_ast.FnBody{Loc: bodyLoc, Stmts: *bodyStmts},
js_parser_lower.go#L2013: ctor.Fn.Body.Stmts = append(ctor.Fn.Body.Stmts, js_ast.Stmt{Loc: classLoc, Data: &js_ast.SExpr{Value: js_ast.Expr{Loc: classLoc, Data: &js_ast.ECall{
js_parser_lower.go#L2021: stmtsFrom := ctor.Fn.Body.Stmts
js_parser_lower.go#L2033: ctor.Fn.Body.Stmts = append(stmtsTo, stmtsFrom...)
ts_parser.go#L1049: Body: js_ast.FnBody{Loc: stmtLoc, Stmts: stmtsInsideClosure},
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L1049: p.printBlock(fn.Body.Loc, fn.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. |