type github.com/evanw/esbuild/internal/js_ast.Stmt
297 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L330: Stmts []Stmt
js_ast.go#L698: func AssignStmt(a Expr, b Expr) Stmt {
js_ast.go#L699: return Stmt{Loc: a.Loc, Data: &SExpr{Value: Assign(a, b)}}
js_ast.go#L913: Stmt *Stmt
js_ast.go#L916: type Stmt struct {
js_ast.go#L926: Stmts []Stmt
js_ast.go#L1014: Stmts []Stmt
js_ast.go#L1030: Stmt Stmt
js_ast.go#L1035: Yes Stmt
js_ast.go#L1036: No *Stmt
js_ast.go#L1040: Init *Stmt // May be a SConst, SLet, SVar, or SExpr
js_ast.go#L1043: Body Stmt
js_ast.go#L1047: Init Stmt // May be a SConst, SLet, SVar, or SExpr
js_ast.go#L1049: Body Stmt
js_ast.go#L1054: Init Stmt // May be a SConst, SLet, SVar, or SExpr
js_ast.go#L1056: Body Stmt
js_ast.go#L1060: Body Stmt
js_ast.go#L1066: Body Stmt
js_ast.go#L1072: Body Stmt
js_ast.go#L1078: Body []Stmt
js_ast.go#L1083: Stmts []Stmt
js_ast.go#L1088: Body []Stmt
js_ast.go#L1095: Body []Stmt
js_ast.go#L1198: func IsSuperCall(stmt Stmt) bool {
js_ast.go#L1758: Stmts []Stmt
github.com/evanw/esbuild/internal/bundler
linker.go#L355: crossChunkPrefixStmts []js_ast.Stmt
linker.go#L356: crossChunkSuffixStmts []js_ast.Stmt
linker.go#L960: chunkRepr.crossChunkSuffixStmts = []js_ast.Stmt{{Data: &js_ast.SExportClause{
linker.go#L981: var crossChunkPrefixStmts []js_ast.Stmt
linker.go#L994: crossChunkPrefixStmts = append(crossChunkPrefixStmts, js_ast.Stmt{Data: &js_ast.SImport{
linker.go#L1000: crossChunkPrefixStmts = append(crossChunkPrefixStmts, js_ast.Stmt{Data: &js_ast.SImport{
linker.go#L1428: part.Stmts = []js_ast.Stmt{js_ast.AssignStmt(
linker.go#L1458: var stmt js_ast.Stmt
linker.go#L1460: stmt = js_ast.Stmt{Loc: value.Loc, Data: &js_ast.SExportDefault{
linker.go#L1465: stmt = js_ast.Stmt{Loc: value.Loc, Data: &js_ast.SLocal{
linker.go#L1476: Stmts: []js_ast.Stmt{stmt},
linker.go#L1519: var entryPointExportStmts []js_ast.Stmt
linker.go#L1607: entryPointExportStmts = append(entryPointExportStmts, js_ast.Stmt{Data: &js_ast.SLocal{
linker.go#L1655: body := js_ast.FnBody{Stmts: []js_ast.Stmt{{Loc: value.Loc, Data: &js_ast.SReturn{Value: &value}}}}
linker.go#L1684: var nsExportStmts []js_ast.Stmt
linker.go#L1686: nsExportStmts = append(nsExportStmts, js_ast.Stmt{Data: &js_ast.SLocal{Decls: []js_ast.Decl{{
linker.go#L1703: nsExportStmts = append(nsExportStmts, js_ast.Stmt{Data: &js_ast.SExpr{Value: js_ast.Expr{Data: &js_ast.ECall{
linker.go#L1725: nsExportStmts = append(nsExportStmts, js_ast.Stmt{Data: &js_ast.SExpr{Value: js_ast.Expr{Data: &js_ast.ECall{
linker.go#L1776: js_ast.Stmt{Data: &js_ast.SExportClause{Items: entryPointES6ExportItems}})
linker.go#L1781: var cjsWrapStmt js_ast.Stmt
linker.go#L1787: cjsWrapStmt = js_ast.Stmt{Data: &js_ast.SExpr{Value: js_ast.Expr{Data: &js_ast.ECall{
linker.go#L1794: cjsWrapStmt = js_ast.Stmt{Data: &js_ast.SReturn{Value: &js_ast.Expr{Data: &js_ast.ECall{
linker.go#L1799: cjsWrapStmt = js_ast.Stmt{Data: &js_ast.SExpr{Value: js_ast.Expr{Data: &js_ast.ECall{
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#L1824: cjsWrapStmt = js_ast.Stmt{Data: &js_ast.SReturn{Value: &js_ast.Expr{Data: &js_ast.EIdentifier{Ref: repr.ast.ExportsRef}}}}
linker.go#L3010: partStmts []js_ast.Stmt,
linker.go#L3036: stmtList.prefixStmts = append(stmtList.prefixStmts, js_ast.Stmt{
linker.go#L3046: func (c *linkerContext) convertStmtsForChunk(sourceIndex uint32, stmtList *stmtList, partStmts []js_ast.Stmt) {
linker.go#L3085: stmtList.prefixStmts = append(stmtList.prefixStmts, js_ast.Stmt{
linker.go#L3106: stmtList.prefixStmts = append(stmtList.prefixStmts, js_ast.Stmt{
linker.go#L3211: stmt = js_ast.Stmt{Loc: stmt.Loc, Data: &js_ast.SLocal{Decls: []js_ast.Decl{
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}
linker.go#L3248: func mergeAdjacentLocalStmts(stmts []js_ast.Stmt) []js_ast.Stmt {
linker.go#L3290: prefixStmts []js_ast.Stmt
linker.go#L3293: normalStmts []js_ast.Stmt
linker.go#L3297: es6StmtsForCJSWrap []js_ast.Stmt
linker.go#L3300: entryPointTail []js_ast.Stmt
linker.go#L3419: stmts = append(stmtList.es6StmtsForCJSWrap, js_ast.Stmt{Data: &js_ast.SLocal{
github.com/evanw/esbuild/internal/js_parser
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#L3967: func (p *parser) parseExprOrLetStmt(opts parseStmtOpts) (js_ast.Expr, js_ast.Stmt, []js_ast.Decl) {
js_parser.go#L3972: return p.parseExpr(js_ast.LLowest), js_ast.Stmt{}, nil
js_parser.go#L3985: return js_ast.Expr{}, js_ast.Stmt{Loc: letRange.Loc, Data: &js_ast.SLocal{
js_parser.go#L3995: return p.parseSuffix(expr, js_ast.LLowest, nil, 0), js_ast.Stmt{}, nil
js_parser.go#L4741: func (p *parser) parseClassStmt(loc logger.Loc, opts parseStmtOpts) js_ast.Stmt {
js_parser.go#L4785: return js_ast.Stmt{Loc: loc, Data: &js_ast.SClass{Class: class, IsExport: opts.isExport}}
js_parser.go#L4916: func (p *parser) parseFnStmt(loc logger.Loc, opts parseStmtOpts, isAsync bool, asyncRange logger.Range) js_ast.Stmt {
js_parser.go#L4980: return js_ast.Stmt{Loc: loc, Data: &js_ast.STypeScript{}}
js_parser.go#L5005: return js_ast.Stmt{Loc: loc, Data: &js_ast.SFunction{Fn: fn, IsExport: opts.isExport}}
js_parser.go#L5035: func (p *parser) parseStmt(opts parseStmtOpts) js_ast.Stmt {
js_parser.go#L5041: return js_ast.Stmt{Loc: loc, Data: &js_ast.SEmpty{}}
js_parser.go#L5077: return js_ast.Stmt{}
js_parser.go#L5098: return js_ast.Stmt{Loc: loc, Data: &js_ast.STypeScript{}}
js_parser.go#L5125: return js_ast.Stmt{Loc: loc, Data: &js_ast.STypeScript{}}
js_parser.go#L5145: return js_ast.Stmt{}
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#L5294: return js_ast.Stmt{Loc: loc, Data: &js_ast.SExportStar{
js_parser.go#L5313: return js_ast.Stmt{Loc: loc, Data: &js_ast.SExportFrom{
js_parser.go#L5321: return js_ast.Stmt{Loc: loc, Data: &js_ast.SExportClause{Items: items, IsSingleLine: isSingleLine}}
js_parser.go#L5330: return js_ast.Stmt{Loc: loc, Data: &js_ast.SExportEquals{Value: value}}
js_parser.go#L5333: return js_ast.Stmt{}
js_parser.go#L5337: return js_ast.Stmt{}
js_parser.go#L5389: return js_ast.Stmt{}
js_parser.go#L5401: return js_ast.Stmt{Loc: loc, Data: &js_ast.SLocal{
js_parser.go#L5423: return js_ast.Stmt{Loc: loc, Data: &js_ast.SLocal{
js_parser.go#L5435: var no *js_ast.Stmt = nil
js_parser.go#L5441: return js_ast.Stmt{Loc: loc, Data: &js_ast.SIf{Test: test, Yes: yes, No: no}}
js_parser.go#L5456: return js_ast.Stmt{Loc: loc, Data: &js_ast.SDoWhile{Body: body, Test: test}}
js_parser.go#L5464: return js_ast.Stmt{Loc: loc, Data: &js_ast.SWhile{Test: test, Body: body}}
js_parser.go#L5480: return js_ast.Stmt{Loc: loc, Data: &js_ast.SWith{Value: test, BodyLoc: bodyLoc, Body: body}}
js_parser.go#L5498: body := []js_ast.Stmt{}
js_parser.go#L5530: return js_ast.Stmt{Loc: loc, Data: &js_ast.SSwitch{
js_parser.go#L5601: return js_ast.Stmt{Loc: loc, Data: &js_ast.STry{
js_parser.go#L5633: var init *js_ast.Stmt = nil
js_parser.go#L5652: init = &js_ast.Stmt{Loc: initLoc, Data: &js_ast.SLocal{Kind: js_ast.LocalVar, Decls: decls}}
js_parser.go#L5658: init = &js_ast.Stmt{Loc: initLoc, Data: &js_ast.SLocal{Kind: js_ast.LocalConst, Decls: decls}}
js_parser.go#L5664: var stmt js_ast.Stmt
js_parser.go#L5670: init = &js_ast.Stmt{Loc: initLoc, Data: &js_ast.SExpr{Value: expr}}
js_parser.go#L5695: return js_ast.Stmt{Loc: loc, Data: &js_ast.SForOf{IsAwait: isForAwait, Init: *init, Value: value, Body: body}}
js_parser.go#L5705: return js_ast.Stmt{Loc: loc, Data: &js_ast.SForIn{Init: *init, Value: value, Body: body}}
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#L5753: return js_ast.Stmt{Loc: loc, Data: &js_ast.SExpr{Value: expr}}
js_parser.go#L5759: return js_ast.Stmt{}
js_parser.go#L5768: return js_ast.Stmt{}
js_parser.go#L5783: return js_ast.Stmt{}
js_parser.go#L5796: return js_ast.Stmt{}
js_parser.go#L5814: return js_ast.Stmt{Loc: loc, Data: &js_ast.STypeScript{}}
js_parser.go#L5825: return js_ast.Stmt{Loc: loc, Data: &js_ast.STypeScript{}}
js_parser.go#L5833: return js_ast.Stmt{Loc: loc, Data: &js_ast.STypeScript{}}
js_parser.go#L5871: return js_ast.Stmt{}
js_parser.go#L5913: return js_ast.Stmt{Loc: loc, Data: &stmt}
js_parser.go#L5919: return js_ast.Stmt{Loc: loc, Data: &js_ast.SBreak{Label: name}}
js_parser.go#L5925: return js_ast.Stmt{Loc: loc, Data: &js_ast.SContinue{Label: name}}
js_parser.go#L5942: return js_ast.Stmt{Loc: loc, Data: &js_ast.SReturn{Value: value}}
js_parser.go#L5952: return js_ast.Stmt{Loc: loc, Data: &js_ast.SThrow{Value: expr}}
js_parser.go#L5957: return js_ast.Stmt{Loc: loc, Data: &js_ast.SDebugger{}}
js_parser.go#L5966: return js_ast.Stmt{Loc: loc, Data: &js_ast.SBlock{Stmts: stmts}}
js_parser.go#L5983: var stmt js_ast.Stmt
js_parser.go#L6005: return js_ast.Stmt{Loc: loc, Data: &js_ast.SLabel{Name: name, Stmt: stmt}}
js_parser.go#L6014: return js_ast.Stmt{Loc: loc, Data: &js_ast.STypeScript{}}
js_parser.go#L6030: return js_ast.Stmt{Loc: loc, Data: &js_ast.STypeScript{}}
js_parser.go#L6043: return js_ast.Stmt{Loc: loc, Data: &js_ast.STypeScript{}}
js_parser.go#L6062: return js_ast.Stmt{Loc: loc, Data: &js_ast.STypeScript{}}
js_parser.go#L6099: return js_ast.Stmt{Loc: loc, Data: &js_ast.SLocal{
js_parser.go#L6107: return js_ast.Stmt{Loc: loc, Data: &js_ast.STypeScript{}}
js_parser.go#L6114: return js_ast.Stmt{Loc: loc, Data: &js_ast.SExpr{Value: expr}}
js_parser.go#L6176: func (p *parser) parseStmtsUpTo(end js_lexer.T, opts parseStmtOpts) []js_ast.Stmt {
js_parser.go#L6177: stmts := []js_ast.Stmt{}
js_parser.go#L6187: stmts = append(stmts, js_ast.Stmt{
js_parser.go#L6412: func shouldKeepStmtInDeadControlFlow(stmt js_ast.Stmt) bool {
js_parser.go#L6473: func (p *parser) visitStmtsAndPrependTempRefs(stmts []js_ast.Stmt, opts prependTempRefsOpts) []js_ast.Stmt {
js_parser.go#L6511: stmt := js_ast.Stmt{Data: &js_ast.SLocal{Kind: js_ast.LocalVar, Decls: decls}}
js_parser.go#L6513: stmts = append([]js_ast.Stmt{stmts[0], stmt}, stmts[1:]...)
js_parser.go#L6515: stmts = append([]js_ast.Stmt{stmt}, stmts...)
js_parser.go#L6532: func (p *parser) visitStmts(stmts []js_ast.Stmt, kind stmtsKind) []js_ast.Stmt {
js_parser.go#L6538: visited := make([]js_ast.Stmt, 0, len(stmts))
js_parser.go#L6539: var before []js_ast.Stmt
js_parser.go#L6540: var after []js_ast.Stmt
js_parser.go#L6567: var nonFnStmts []js_ast.Stmt
js_parser.go#L6603: before = append(before[:0], js_ast.Stmt{Loc: letDecls[0].Value.Loc, Data: &js_ast.SLocal{Kind: kind, Decls: letDecls}})
js_parser.go#L6611: before = append(before, js_ast.Stmt{Loc: varDecls[0].Value.Loc, Data: &js_ast.SLocal{Kind: js_ast.LocalVar, Decls: varDecls}})
js_parser.go#L6665: func (p *parser) mangleStmts(stmts []js_ast.Stmt, kind stmtsKind) []js_ast.Stmt {
js_parser.go#L6667: result := make([]js_ast.Stmt, 0, len(stmts))
js_parser.go#L6827: var body []js_ast.Stmt
js_parser.go#L6893: result[len(result)-1] = js_ast.Stmt{Loc: prevStmt.Loc, Data: &js_ast.SReturn{Value: &value}}
js_parser.go#L6905: result[len(result)-1] = js_ast.Stmt{Loc: prevStmt.Loc, Data: &js_ast.SThrow{Value: js_ast.JoinWithComma(prevS.Value, s.Value)}}
js_parser.go#L6922: s.Init = &js_ast.Stmt{Loc: prevStmt.Loc, Data: &js_ast.SExpr{Value: prevS.Value}}
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#L6995: lastStmt = js_ast.Stmt{Loc: prevStmt.Loc, Data: lastReturn}
js_parser.go#L7047: lastStmt = js_ast.Stmt{Loc: prevStmt.Loc, Data: lastReturn}
js_parser.go#L7068: lastStmt = js_ast.Stmt{Loc: prevStmt.Loc, Data: lastThrow}
js_parser.go#L7101: lastStmt = js_ast.Stmt{Loc: prevStmt.Loc, Data: lastThrow}
js_parser.go#L7115: func (p *parser) substituteSingleUseSymbolInStmt(stmt js_ast.Stmt, ref js_ast.Ref, replacement js_ast.Expr) bool {
js_parser.go#L7387: func (p *parser) visitLoopBody(stmt js_ast.Stmt) js_ast.Stmt {
js_parser.go#L7396: func (p *parser) visitSingleStmt(stmt js_ast.Stmt, kind stmtsKind) js_ast.Stmt {
js_parser.go#L7407: stmts := p.visitStmts([]js_ast.Stmt{stmt}, kind)
js_parser.go#L7418: func stmtsToSingleStmt(loc logger.Loc, stmts []js_ast.Stmt) js_ast.Stmt {
js_parser.go#L7420: return js_ast.Stmt{Loc: loc, Data: &js_ast.SEmpty{}}
js_parser.go#L7428: return js_ast.Stmt{Loc: loc, Data: &js_ast.SBlock{Stmts: stmts}}
js_parser.go#L7431: func (p *parser) visitForLoopInit(stmt js_ast.Stmt, isInOrOf bool) js_ast.Stmt {
js_parser.go#L7525: func statementCaresAboutScope(stmt js_ast.Stmt) bool {
js_parser.go#L7541: func dropFirstStatement(body js_ast.Stmt, replace *js_ast.Stmt) js_ast.Stmt {
js_parser.go#L7555: return js_ast.Stmt{Loc: body.Loc, Data: &js_ast.SEmpty{}}
js_parser.go#L7602: func appendIfBodyPreservingScope(stmts []js_ast.Stmt, body js_ast.Stmt) []js_ast.Stmt {
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#L7623: func (p *parser) mangleIf(stmts []js_ast.Stmt, loc logger.Loc, s *js_ast.SIf) []js_ast.Stmt {
js_parser.go#L7633: stmts = append(stmts, js_ast.Stmt{Loc: s.Test.Loc, Data: &js_ast.SExpr{Value: test}})
js_parser.go#L7647: stmts = append(stmts, js_ast.Stmt{Loc: s.Test.Loc, Data: &js_ast.SExpr{Value: test}})
js_parser.go#L7665: return append(stmts, js_ast.Stmt{Loc: loc, Data: &js_ast.SExpr{
js_parser.go#L7669: return append(stmts, js_ast.Stmt{Loc: loc, Data: &js_ast.SExpr{
js_parser.go#L7674: return append(stmts, js_ast.Stmt{Loc: loc, Data: &js_ast.SExpr{Value: p.mangleIfExpr(loc, &js_ast.EIf{
js_parser.go#L7689: return append(stmts, js_ast.Stmt{Loc: loc, Data: &js_ast.SExpr{Value: s.Test}})
js_parser.go#L7694: return append(stmts, js_ast.Stmt{Loc: loc, Data: &js_ast.SExpr{
js_parser.go#L7698: return append(stmts, js_ast.Stmt{Loc: loc, Data: &js_ast.SExpr{
js_parser.go#L7734: return append(stmts, js_ast.Stmt{Loc: loc, Data: s})
js_parser.go#L7939: func (p *parser) keepStmtSymbolName(loc logger.Loc, ref js_ast.Ref, name string) js_ast.Stmt {
js_parser.go#L7940: return js_ast.Stmt{Loc: loc, Data: &js_ast.SExpr{
js_parser.go#L7951: func (p *parser) visitAndAppendStmt(stmts []js_ast.Stmt, stmt js_ast.Stmt) []js_ast.Stmt {
js_parser.go#L8036: js_ast.Stmt{Loc: stmt.Loc, Data: &js_ast.SImport{
js_parser.go#L8041: js_ast.Stmt{Loc: stmt.Loc, Data: &js_ast.SExportClause{
js_parser.go#L8215: stmts = append(stmts, js_ast.Stmt{Loc: stmt.Loc, Data: &js_ast.SExpr{Value: target}})
js_parser.go#L8241: stmt = js_ast.Stmt{Loc: stmt.Loc, Data: &js_ast.SEmpty{}}
js_parser.go#L8280: stmt = js_ast.Stmt{Loc: stmt.Loc, Data: &js_ast.SEmpty{}}
js_parser.go#L8307: stmt = js_ast.Stmt{Loc: stmt.Loc, Data: forS}
js_parser.go#L8419: stmts = append(stmts, js_ast.Stmt{Loc: stmt.Loc, Data: &js_ast.SExpr{Value: js_ast.Assign(
js_parser.go#L8652: valueStmts := []js_ast.Stmt{}
js_parser.go#L8657: valueStmts = append(valueStmts, js_ast.Stmt{Loc: joined.Loc, Data: &js_ast.SExpr{Value: joined}})
js_parser.go#L8660: valueStmts = append(valueStmts, js_ast.Stmt{Loc: expr.Loc, Data: &js_ast.SExpr{Value: expr}})
js_parser.go#L8721: func (p *parser) maybeRelocateVarsToTopLevel(decls []js_ast.Decl, mode relocateVarsMode) (js_ast.Stmt, bool) {
js_parser.go#L8724: return js_ast.Stmt{}, false
js_parser.go#L8733: return js_ast.Stmt{}, false
js_parser.go#L8753: return js_ast.Stmt{}, true
js_parser.go#L8755: return js_ast.Stmt{Loc: value.Loc, Data: &js_ast.SExpr{Value: value}}, true
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#L9107: func fnBodyContainsUseStrict(body []js_ast.Stmt) (logger.Loc, bool) {
js_parser.go#L9124: body []js_ast.Stmt
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#L11435: e.Body.Stmts = []js_ast.Stmt{}
js_parser.go#L11475: _, expr = p.lowerClass(js_ast.Stmt{}, expr, shadowRef)
js_parser.go#L11698: stmts []js_ast.Stmt
js_parser.go#L11703: func (p *parser) scanForImportsAndExports(stmts []js_ast.Stmt) (result scanForImportsAndExportsResult) {
js_parser.go#L12094: func (p *parser) appendPart(parts []js_ast.Part, stmts []js_ast.Stmt) []js_ast.Part {
js_parser.go#L12120: part.Stmts = append(part.Stmts, js_ast.Stmt{Loc: local.Loc, Data: &js_ast.SLocal{
js_parser.go#L12140: func (p *parser) stmtsCanBeRemovedIfUnused(stmts []js_ast.Stmt) bool {
js_parser.go#L12743: importMetaStmt := js_ast.Stmt{Data: &js_ast.SLocal{
js_parser.go#L12750: stmts = append(append(make([]js_ast.Stmt, 0, len(stmts)+1), importMetaStmt), stmts...)
js_parser.go#L12796: parts = p.appendPart(parts, []js_ast.Stmt{{Loc: stmt.Loc, Data: &clone}})
js_parser.go#L12803: before = p.appendPart(before, []js_ast.Stmt{stmt})
js_parser.go#L12809: after = p.appendPart(after, []js_ast.Stmt{stmt})
js_parser.go#L12812: parts = p.appendPart(parts, []js_ast.Stmt{stmt})
js_parser.go#L12841: Stmts: []js_ast.Stmt{{Loc: expr.Loc, Data: &js_ast.SLazyExport{Value: expr}}},
js_parser.go#L13031: Stmts: []js_ast.Stmt{{Data: &js_ast.SImport{
js_parser_lower.go#L226: bodyStmts *[]js_ast.Stmt,
js_parser_lower.go#L233: var prefixStmts []js_ast.Stmt
js_parser_lower.go#L277: prefixStmts = append(prefixStmts, js_ast.Stmt{Loc: arg.Binding.Loc,
js_parser_lower.go#L417: returnStmt := js_ast.Stmt{Loc: bodyLoc, Data: &js_ast.SReturn{Value: &callAsync}}
js_parser_lower.go#L423: superIndexStmt := js_ast.Stmt{Loc: bodyLoc, Data: &js_ast.SLocal{
js_parser_lower.go#L432: Stmts: []js_ast.Stmt{{Loc: bodyLoc, Data: &js_ast.SReturn{
js_parser_lower.go#L444: *bodyStmts = []js_ast.Stmt{superIndexStmt, returnStmt}
js_parser_lower.go#L446: *bodyStmts = []js_ast.Stmt{returnStmt}
js_parser_lower.go#L1141: func (p *parser) lowerObjectRestInForLoopInit(init js_ast.Stmt, body *js_ast.Stmt) {
js_parser_lower.go#L1146: var bodyPrefixStmt js_ast.Stmt
js_parser_lower.go#L1156: bodyPrefixStmt = js_ast.Stmt{Loc: expr.Loc, Data: &js_ast.SExpr{Value: expr}}
js_parser_lower.go#L1169: bodyPrefixStmt = js_ast.Stmt{Loc: init.Loc, Data: &js_ast.SLocal{Kind: s.Kind, Decls: decls}}
js_parser_lower.go#L1176: stmts := make([]js_ast.Stmt, 0, 1+len(block.Stmts))
js_parser_lower.go#L1180: body.Data = &js_ast.SBlock{Stmts: []js_ast.Stmt{bodyPrefixStmt, *body}}
js_parser_lower.go#L1196: stmts := make([]js_ast.Stmt, 0, 1+len(catch.Body))
js_parser_lower.go#L1197: stmts = append(stmts, js_ast.Stmt{Loc: catch.Binding.Loc, Data: &js_ast.SLocal{Kind: js_ast.LocalLet, Decls: decls}})
js_parser_lower.go#L1527: func (p *parser) lowerClass(stmt js_ast.Stmt, expr js_ast.Expr, shadowRef js_ast.Ref) ([]js_ast.Stmt, js_ast.Expr) {
js_parser_lower.go#L1589: var parameterFields []js_ast.Stmt
js_parser_lower.go#L1590: var instanceMembers []js_ast.Stmt
js_parser_lower.go#L1591: var instancePrivateMethods []js_ast.Stmt
js_parser_lower.go#L1878: instanceMembers = append(instanceMembers, js_ast.Stmt{Loc: loc, Data: &js_ast.SExpr{Value: expr}})
js_parser_lower.go#L1947: instancePrivateMethods = append(instancePrivateMethods, js_ast.Stmt{Loc: loc, Data: &js_ast.SExpr{Value: expr}})
js_parser_lower.go#L2013: ctor.Fn.Body.Stmts = append(ctor.Fn.Body.Stmts, js_ast.Stmt{Loc: classLoc, Data: &js_ast.SExpr{Value: js_ast.Expr{Loc: classLoc, Data: &js_ast.ECall{
js_parser_lower.go#L2022: stmtsTo := []js_ast.Stmt{}
js_parser_lower.go#L2102: var keepNameStmt js_ast.Stmt
js_parser_lower.go#L2110: var stmts []js_ast.Stmt
js_parser_lower.go#L2159: stmts = append(stmts, js_ast.Stmt{Loc: classLoc, Data: &js_ast.SLocal{
js_parser_lower.go#L2180: stmts = append(stmts, js_ast.Stmt{Loc: classLoc, Data: &js_ast.SLocal{
js_parser_lower.go#L2191: stmts = append(stmts, js_ast.Stmt{Loc: classLoc, Data: &js_ast.SClass{Class: *class}})
js_parser_lower.go#L2193: stmts = append(stmts, js_ast.Stmt{Loc: classLoc, Data: &js_ast.SClass{Class: *class, IsExport: true}})
js_parser_lower.go#L2195: stmts = append(stmts, js_ast.Stmt{Loc: classLoc, Data: &js_ast.SExportDefault{
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#L2211: stmts = append(stmts, js_ast.Stmt{Loc: expr.Loc, Data: &js_ast.SExpr{Value: computedPropertyCache}})
js_parser_lower.go#L2214: stmts = append(stmts, js_ast.Stmt{Loc: expr.Loc, Data: &js_ast.SExpr{Value: expr}})
js_parser_lower.go#L2217: stmts = append(stmts, js_ast.Stmt{Loc: expr.Loc, Data: &js_ast.SExpr{Value: expr}})
js_parser_lower.go#L2220: stmts = append(stmts, js_ast.Stmt{Loc: expr.Loc, Data: &js_ast.SExpr{Value: expr}})
js_parser_lower.go#L2223: stmts = append(stmts, js_ast.Stmt{Loc: expr.Loc, Data: &js_ast.SExpr{Value: expr}})
js_parser_lower.go#L2226: stmts = append(stmts, js_ast.Stmt{Loc: expr.Loc, Data: &js_ast.SExpr{Value: expr}})
js_parser_lower.go#L2249: stmts = append(stmts, js_ast.Stmt{Loc: classLoc, Data: &js_ast.SExportDefault{
ts_parser.go#L767: func (p *parser) parseTypeScriptEnumStmt(loc logger.Loc, opts parseStmtOpts) js_ast.Stmt {
ts_parser.go#L824: return js_ast.Stmt{Loc: loc, Data: &js_ast.SEnum{
ts_parser.go#L833: func (p *parser) parseTypeScriptImportEqualsStmt(loc logger.Loc, opts parseStmtOpts, defaultNameLoc logger.Loc, defaultName string) js_ast.Stmt {
ts_parser.go#L872: return js_ast.Stmt{Loc: loc, Data: &js_ast.SLocal{
ts_parser.go#L880: func (p *parser) parseTypeScriptNamespaceStmt(loc logger.Loc, opts parseStmtOpts) js_ast.Stmt {
ts_parser.go#L889: var stmts []js_ast.Stmt
ts_parser.go#L893: stmts = []js_ast.Stmt{p.parseTypeScriptNamespaceStmt(dotLoc, parseStmtOpts{
ts_parser.go#L930: return js_ast.Stmt{Loc: loc, Data: &js_ast.STypeScript{}}
ts_parser.go#L966: return js_ast.Stmt{Loc: loc, Data: &js_ast.SNamespace{
ts_parser.go#L975: stmts []js_ast.Stmt, stmtLoc logger.Loc, isExport bool, nameLoc logger.Loc,
ts_parser.go#L976: nameRef js_ast.Ref, argRef js_ast.Ref, stmtsInsideClosure []js_ast.Stmt,
ts_parser.go#L977: ) []js_ast.Stmt {
ts_parser.go#L991: stmts = append(stmts, js_ast.Stmt{Loc: stmtLoc, Data: &js_ast.SLocal{
ts_parser.go#L998: stmts = append(stmts, js_ast.Stmt{Loc: stmtLoc, Data: &js_ast.SLocal{
ts_parser.go#L1046: stmts = append(stmts, js_ast.Stmt{Loc: stmtLoc, Data: &js_ast.SExpr{Value: js_ast.Expr{Loc: stmtLoc, Data: &js_ast.ECall{
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L2303: func (p *printer) printForLoopInit(init js_ast.Stmt) {
js_printer.go#L2341: func (p *printer) printBody(body js_ast.Stmt) {
js_printer.go#L2354: func (p *printer) printBlock(loc logger.Loc, stmts []js_ast.Stmt) {
js_printer.go#L2490: func (p *printer) printStmt(stmt js_ast.Stmt) {
 |
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. |