github.com/evanw/esbuild/internal/js_ast.SFor.Init (field)
20 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L1040: Init *Stmt // May be a SConst, SLet, SVar, or SExpr
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L5731: return js_ast.Stmt{Loc: loc, Data: &js_ast.SFor{Init: init, Test: test, Update: update, Body: body}}
js_parser.go#L6451: return (s.Init != nil && shouldKeepStmtInDeadControlFlow(*s.Init)) || shouldKeepStmtInDeadControlFlow(s.Body)
js_parser.go#L6920: if s.Init == nil {
js_parser.go#L6922: s.Init = &js_ast.Stmt{Loc: prevStmt.Loc, Data: &js_ast.SExpr{Value: prevS.Value}}
js_parser.go#L6924: } else if s2, ok := s.Init.Data.(*js_ast.SExpr); ok {
js_parser.go#L6926: s.Init = &js_ast.Stmt{Loc: prevStmt.Loc, Data: &js_ast.SExpr{Value: js_ast.JoinWithComma(prevS.Value, s2.Value)}}
js_parser.go#L6933: if s.Init == nil {
js_parser.go#L6936: s.Init = &prevStmt
js_parser.go#L6941: if s3, ok := s.Init.Data.(*js_ast.SLocal); ok && s3.Kind == js_ast.LocalVar {
js_parser.go#L6943: s.Init.Data = &js_ast.SLocal{Kind: js_ast.LocalVar, Decls: append(s2.Decls, s3.Decls...)}
js_parser.go#L8364: if s.Init != nil {
js_parser.go#L8365: p.visitForLoopInit(*s.Init, false)
js_parser.go#L8388: if s.Init != nil {
js_parser.go#L8389: if init, ok := s.Init.Data.(*js_ast.SLocal); ok && init.Kind == js_ast.LocalVar {
js_parser.go#L8392: s.Init = &assign
js_parser.go#L8394: s.Init = nil
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L2819: if s.Init != nil {
js_printer.go#L2820: p.printForLoopInit(*s.Init)
 |
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. |