github.com/evanw/esbuild/internal/js_ast.ArrayBinding.DefaultValue (field)
15 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L344: DefaultValue *Expr
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L2509: items = append(items, js_ast.ArrayBinding{Binding: binding, DefaultValue: initializer})
js_parser.go#L2574: } else if item.DefaultValue != nil {
js_parser.go#L2575: expr = js_ast.Assign(expr, *item.DefaultValue)
js_parser.go#L4510: items = append(items, js_ast.ArrayBinding{Binding: binding, DefaultValue: defaultValue})
js_parser.go#L7489: if item.DefaultValue != nil {
js_parser.go#L7490: wasAnonymousNamedExpr := p.isAnonymousNamedExpr(*item.DefaultValue)
js_parser.go#L7491: *item.DefaultValue = p.visitExpr(*item.DefaultValue)
js_parser.go#L7495: *item.DefaultValue = p.maybeKeepExprSymbolName(
js_parser.go#L7496: *item.DefaultValue, p.symbols[id.Ref.InnerIndex].OriginalName, wasAnonymousNamedExpr)
js_parser.go#L12240: if item.DefaultValue != nil && !p.exprCanBeRemovedIfUnused(*item.DefaultValue) {
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L846: if item.DefaultValue != nil {
js_printer.go#L850: p.printExpr(*item.DefaultValue, js_ast.LComma, 0)
![]() |
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. |