github.com/evanw/esbuild/internal/js_ast.SBlock.Stmts (field)

34 uses

	github.com/evanw/esbuild/internal/js_ast (current package)
		js_ast.go#L926: 	Stmts []Stmt

	github.com/evanw/esbuild/internal/js_parser
		js_parser.go#L5966: 		return js_ast.Stmt{Loc: loc, Data: &js_ast.SBlock{Stmts: stmts}}
		js_parser.go#L6434: 		for _, child := range s.Stmts {
		js_parser.go#L7428: 	return js_ast.Stmt{Loc: loc, Data: &js_ast.SBlock{Stmts: stmts}}
		js_parser.go#L7542: 	if block, ok := body.Data.(*js_ast.SBlock); ok && len(block.Stmts) > 0 {
		js_parser.go#L7544: 			block.Stmts[0] = *replace
		js_parser.go#L7545: 		} else if len(block.Stmts) == 2 && !statementCaresAboutScope(block.Stmts[1]) {
		js_parser.go#L7546: 			return block.Stmts[1]
		js_parser.go#L7548: 			block.Stmts = block.Stmts[1:]
		js_parser.go#L7561: 	if block, ok := first.Data.(*js_ast.SBlock); ok && len(block.Stmts) > 0 {
		js_parser.go#L7562: 		first = block.Stmts[0]
		js_parser.go#L7605: 		for _, stmt := range block.Stmts {
		js_parser.go#L7612: 			return append(stmts, block.Stmts...)
		js_parser.go#L7617: 		return append(stmts, js_ast.Stmt{Loc: body.Loc, Data: &js_ast.SBlock{Stmts: []js_ast.Stmt{body}}})
		js_parser.go#L8267: 			s.Stmts = p.visitStmts(s.Stmts, stmtsLoopBody)
		js_parser.go#L8269: 			s.Stmts = p.visitStmts(s.Stmts, stmtsNormal)
		js_parser.go#L8275: 			if len(s.Stmts) == 1 && !statementCaresAboutScope(s.Stmts[0]) {
		js_parser.go#L8277: 				stmt = s.Stmts[0]
		js_parser.go#L8278: 			} else if len(s.Stmts) == 0 {
		js_parser_lower.go#L1176: 			stmts := make([]js_ast.Stmt, 0, 1+len(block.Stmts))
		js_parser_lower.go#L1177: 			block.Stmts = append(append(stmts, bodyPrefixStmt), block.Stmts...)
		js_parser_lower.go#L1180: 			body.Data = &js_ast.SBlock{Stmts: []js_ast.Stmt{bodyPrefixStmt, *body}}

	github.com/evanw/esbuild/internal/js_printer
		js_printer.go#L2344: 		p.printBlock(body.Loc, block.Stmts)
		js_printer.go#L2411: 		p.printBlock(s.Yes.Loc, yes.Stmts)
		js_printer.go#L2454: 			p.printBlock(s.No.Loc, no.Stmts)
		js_printer.go#L2707: 			p.printBlock(s.Body.Loc, block.Stmts)
		js_printer.go#L2864: 					p.printBlock(c.Body[0].Loc, block.Stmts)
		js_printer.go#L2963: 		p.printBlock(stmt.Loc, s.Stmts)