github.com/evanw/esbuild/internal/js_ast.SExportDefault.Value (field)
33 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L959: Value ExprOrStmt // May be a SFunction or SClass
github.com/evanw/esbuild/internal/bundler
linker.go#L1462: Value: js_ast.ExprOrStmt{Expr: &value},
linker.go#L1818: cjsWrapStmt = js_ast.Stmt{Data: &js_ast.SExportDefault{Value: js_ast.ExprOrStmt{Expr: &js_ast.Expr{Data: &js_ast.ECall{
linker.go#L3209: if s.Value.Expr != nil {
linker.go#L3212: {Binding: js_ast.Binding{Loc: s.DefaultName.Loc, Data: &js_ast.BIdentifier{Ref: s.DefaultName.Ref}}, Value: s.Value.Expr},
linker.go#L3215: switch s2 := s.Value.Stmt.Data.(type) {
linker.go#L3224: stmt = js_ast.Stmt{Loc: s.Value.Stmt.Loc, Data: s2}
linker.go#L3234: stmt = js_ast.Stmt{Loc: s.Value.Stmt.Loc, Data: s2}
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L5191: return js_ast.Stmt{Loc: loc, Data: &js_ast.SExportDefault{DefaultName: defaultName, Value: js_ast.ExprOrStmt{Stmt: &stmt}}}
js_parser.go#L5197: return js_ast.Stmt{Loc: loc, Data: &js_ast.SExportDefault{DefaultName: defaultName, Value: js_ast.ExprOrStmt{Expr: &expr}}}
js_parser.go#L5229: return js_ast.Stmt{Loc: loc, Data: &js_ast.SExportDefault{DefaultName: defaultName, Value: js_ast.ExprOrStmt{Stmt: &stmt}}}
js_parser.go#L5252: return js_ast.Stmt{Loc: loc, Data: &js_ast.SExportDefault{DefaultName: defaultName, Value: js_ast.ExprOrStmt{Stmt: &stmt}}}
js_parser.go#L5258: return js_ast.Stmt{Loc: loc, Data: &js_ast.SExportDefault{DefaultName: defaultName, Value: js_ast.ExprOrStmt{Expr: &expr}}}
js_parser.go#L8058: case s.Value.Expr != nil:
js_parser.go#L8059: wasAnonymousNamedExpr := p.isAnonymousNamedExpr(*s.Value.Expr)
js_parser.go#L8060: *s.Value.Expr = p.visitExpr(*s.Value.Expr)
js_parser.go#L8063: *s.Value.Expr = p.maybeKeepExprSymbolName(*s.Value.Expr, "default", wasAnonymousNamedExpr)
js_parser.go#L8067: if id, ok := (*s.Value.Expr).Data.(*js_ast.EIdentifier); ok {
js_parser.go#L8075: case s.Value.Stmt != nil:
js_parser.go#L8076: switch s2 := s.Value.Stmt.Data.(type) {
js_parser.go#L8101: shadowRef := p.visitClass(s.Value.Stmt.Loc, &s2.Class)
js_parser.go#L12183: case s.Value.Expr != nil:
js_parser.go#L12184: if !p.exprCanBeRemovedIfUnused(*s.Value.Expr) {
js_parser.go#L12188: case s.Value.Stmt != nil:
js_parser.go#L12189: switch s2 := s.Value.Stmt.Data.(type) {
js_parser_lower.go#L1572: s2, _ := s.Value.Stmt.Data.(*js_ast.SClass)
js_parser_lower.go#L2197: Value: js_ast.ExprOrStmt{Stmt: &js_ast.Stmt{Loc: classLoc, Data: &js_ast.SClass{Class: *class}}},
js_parser_lower.go#L2251: Value: js_ast.ExprOrStmt{Expr: &name},
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L2545: if s.Value.Expr != nil {
js_printer.go#L2549: p.printExpr(*s.Value.Expr, js_ast.LComma, 0)
js_printer.go#L2554: switch s2 := s.Value.Stmt.Data.(type) {
 |
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. |