type github.com/evanw/esbuild/internal/js_ast.SReturn
32 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L1130: type SReturn struct {
js_ast.go#L1192: func (*SReturn) isStmt() {}
github.com/evanw/esbuild/internal/bundler
linker.go#L1655: body := js_ast.FnBody{Stmts: []js_ast.Stmt{{Loc: value.Loc, Data: &js_ast.SReturn{Value: &value}}}}
linker.go#L1794: cjsWrapStmt = js_ast.Stmt{Data: &js_ast.SReturn{Value: &js_ast.Expr{Data: &js_ast.ECall{
linker.go#L1824: cjsWrapStmt = js_ast.Stmt{Data: &js_ast.SReturn{Value: &js_ast.Expr{Data: &js_ast.EIdentifier{Ref: repr.ast.ExportsRef}}}}
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L635: case *js_ast.SBreak, *js_ast.SContinue, *js_ast.SReturn, *js_ast.SThrow:
js_parser.go#L980: case *js_ast.SReturn:
js_parser.go#L981: b, ok := right.(*js_ast.SReturn)
js_parser.go#L2181: Body: js_ast.FnBody{Loc: arrowLoc, Stmts: []js_ast.Stmt{{Loc: expr.Loc, Data: &js_ast.SReturn{Value: &expr}}}},
js_parser.go#L5942: return js_ast.Stmt{Loc: loc, Data: &js_ast.SReturn{Value: value}}
js_parser.go#L6245: if s, ok := stmt.Data.(*js_ast.SReturn); ok && s.Value == nil && !p.latestReturnHadSemicolon {
js_parser.go#L6414: case *js_ast.SEmpty, *js_ast.SExpr, *js_ast.SThrow, *js_ast.SReturn,
js_parser.go#L6821: if returnS, ok := s.Yes.Data.(*js_ast.SReturn); ok && returnS.Value == nil {
js_parser.go#L6887: case *js_ast.SReturn:
js_parser.go#L6893: result[len(result)-1] = js_ast.Stmt{Loc: prevStmt.Loc, Data: &js_ast.SReturn{Value: &value}}
js_parser.go#L6966: if returnS, ok := result[len(result)-1].Data.(*js_ast.SReturn); ok && returnS.Value == nil {
js_parser.go#L6976: if lastReturn, ok := lastStmt.Data.(*js_ast.SReturn); ok {
js_parser.go#L6992: lastReturn = &js_ast.SReturn{Value: &lastValue}
js_parser.go#L7006: prevReturn, ok := prevS.Yes.Data.(*js_ast.SReturn)
js_parser.go#L7033: lastReturn = &js_ast.SReturn{Value: &lastValue}
js_parser.go#L7038: lastReturn = &js_ast.SReturn{Value: &value}
js_parser.go#L7042: lastReturn = &js_ast.SReturn{Value: &value}
js_parser.go#L7123: case *js_ast.SReturn:
js_parser.go#L7529: *js_ast.SWith, *js_ast.STry, *js_ast.SSwitch, *js_ast.SReturn, *js_ast.SThrow,
js_parser.go#L8248: case *js_ast.SReturn:
js_parser.go#L8927: Body: js_ast.FnBody{Loc: loc, Stmts: []js_ast.Stmt{{Loc: loc, Data: &js_ast.SReturn{Value: &expr}}}},
js_parser.go#L11150: body := js_ast.FnBody{Loc: arg.Loc, Stmts: []js_ast.Stmt{{Loc: arg.Loc, Data: &js_ast.SReturn{Value: &value}}}}
js_parser.go#L11432: if s, ok := e.Body.Stmts[0].Data.(*js_ast.SReturn); ok {
js_parser_lower.go#L417: returnStmt := js_ast.Stmt{Loc: bodyLoc, Data: &js_ast.SReturn{Value: &callAsync}}
js_parser_lower.go#L432: Stmts: []js_ast.Stmt{{Loc: bodyLoc, Data: &js_ast.SReturn{
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L1657: if s, ok := e.Body.Stmts[0].Data.(*js_ast.SReturn); ok && s.Value != nil {
js_printer.go#L3001: case *js_ast.SReturn:
 |
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. |