github.com/evanw/esbuild/internal/js_ast.Catch.Binding (field)
12 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L1077: Binding *Binding
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L5586: catch = &js_ast.Catch{Loc: catchLoc, Binding: binding, Body: stmts}
js_parser.go#L8459: if s.Catch.Binding != nil {
js_parser.go#L8460: p.visitBinding(*s.Catch.Binding, bindingOpts{})
js_parser_lower.go#L1190: if catch.Binding != nil && bindingHasObjectRest(*catch.Binding) {
js_parser_lower.go#L1192: decl := js_ast.Decl{Binding: *catch.Binding, Value: &js_ast.Expr{Loc: catch.Binding.Loc, Data: &js_ast.EIdentifier{Ref: ref}}}
js_parser_lower.go#L1195: catch.Binding.Data = &js_ast.BIdentifier{Ref: ref}
js_parser_lower.go#L1197: stmts = append(stmts, js_ast.Stmt{Loc: catch.Binding.Loc, Data: &js_ast.SLocal{Kind: js_ast.LocalLet, Decls: decls}})
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L2794: if s.Catch.Binding != nil {
js_printer.go#L2797: p.printBinding(*s.Catch.Binding)
![]() |
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. |