github.com/evanw/esbuild/internal/js_ast.SReturn.Value (field)
40 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L1131: Value *Expr
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#L982: return ok && (a.Value == nil) == (b.Value == nil) && (a.Value == nil || valuesLookTheSame(a.Value.Data, b.Value.Data))
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#L6821: if returnS, ok := s.Yes.Data.(*js_ast.SReturn); ok && returnS.Value == nil {
js_parser.go#L6889: if len(result) > 0 && s.Value != nil {
js_parser.go#L6892: value := js_ast.JoinWithComma(prevS.Value, *s.Value)
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#L6986: if lastReturn.Value == nil {
js_parser.go#L6991: lastValue := js_ast.JoinWithComma(prevS.Value, *lastReturn.Value)
js_parser.go#L6992: lastReturn = &js_ast.SReturn{Value: &lastValue}
js_parser.go#L7012: left := prevReturn.Value
js_parser.go#L7013: right := lastReturn.Value
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#L7124: expr = s.Value
js_parser.go#L8249: if s.Value != nil {
js_parser.go#L8250: *s.Value = p.visitExpr(*s.Value)
js_parser.go#L8254: if _, ok := s.Value.Data.(*js_ast.EUndefined); ok {
js_parser.go#L8255: s.Value = nil
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#L11433: if s.Value == nil {
js_parser_lower.go#L417: returnStmt := js_ast.Stmt{Loc: bodyLoc, Data: &js_ast.SReturn{Value: &callAsync}}
js_parser_lower.go#L433: Value: &js_ast.Expr{Loc: bodyLoc, Data: &js_ast.EIndex{
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#L1659: p.printExpr(*s.Value, js_ast.LComma, 0)
js_printer.go#L3005: if s.Value != nil {
js_printer.go#L3007: p.printExpr(*s.Value, js_ast.LLowest, 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. |