github.com/evanw/esbuild/internal/js_ast.Fn.HasRestArg (field)
12 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L321: HasRestArg bool
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L4597: fn.HasRestArg = false
js_parser.go#L4632: if !fn.HasRestArg && p.lexer.Token == js_lexer.TDotDotDot {
js_parser.go#L4635: fn.HasRestArg = true
js_parser.go#L4680: if !fn.HasRestArg && p.lexer.Token == js_lexer.TEquals {
js_parser.go#L4699: if fn.HasRestArg {
js_parser.go#L11453: HasRestArg: e.HasRestArg,
js_parser.go#L11650: hasRestArg: fn.HasRestArg,
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#L339: fn.HasRestArg = *hasRestArg
js_parser_lower.go#L359: if arg.Default != nil || fn.HasRestArg && i+1 == len(fn.Args) {
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L1047: p.printFnArgs(fn.Args, fn.HasRestArg, false /* isArrow */)
 |
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. |