github.com/evanw/esbuild/internal/js_ast.SLocal.Decls (field)
90 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L1147: Decls []Decl
github.com/evanw/esbuild/internal/bundler
linker.go#L1467: Decls: []js_ast.Decl{{
linker.go#L1608: Decls: []js_ast.Decl{{
linker.go#L1686: nsExportStmts = append(nsExportStmts, js_ast.Stmt{Data: &js_ast.SLocal{Decls: []js_ast.Decl{{
linker.go#L3038: Data: &js_ast.SLocal{Decls: []js_ast.Decl{{
linker.go#L3211: stmt = js_ast.Stmt{Loc: stmt.Loc, Data: &js_ast.SLocal{Decls: []js_ast.Decl{
linker.go#L3264: before.Decls = append(before.Decls, after.Decls...)
linker.go#L3269: clone.Decls = make([]js_ast.Decl, 0, len(before.Decls)+len(after.Decls))
linker.go#L3270: clone.Decls = append(clone.Decls, before.Decls...)
linker.go#L3271: clone.Decls = append(clone.Decls, after.Decls...)
linker.go#L3420: Decls: []js_ast.Decl{{
linker.go#L4399: for _, decl := range s.Decls {
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L3987: Decls: decls,
js_parser.go#L5403: Decls: decls,
js_parser.go#L5425: Decls: decls,
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#L6094: for _, decl := range s.Decls {
js_parser.go#L6102: Decls: decls,
js_parser.go#L6427: for _, decl := range s.Decls {
js_parser.go#L6430: s.Decls = identifiers
js_parser.go#L6511: stmt := js_ast.Stmt{Data: &js_ast.SLocal{Kind: js_ast.LocalVar, Decls: decls}}
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#L6642: prevS.Decls = append(prevS.Decls, s.Decls...)
js_parser.go#L6713: if last := prevS.Decls[len(prevS.Decls)-1]; last.Value != nil {
js_parser.go#L6725: if len(prevS.Decls) == 1 {
js_parser.go#L6728: prevS.Decls = prevS.Decls[:len(prevS.Decls)-1]
js_parser.go#L6758: prevS.Decls = append(prevS.Decls, s.Decls...)
js_parser.go#L6943: s.Init.Data = &js_ast.SLocal{Kind: js_ast.LocalVar, Decls: append(s2.Decls, s3.Decls...)}
js_parser.go#L7131: if first := s.Decls[0]; first.Value != nil {
js_parser.go#L7441: for _, d := range s.Decls {
js_parser.go#L7447: s.Decls = p.lowerObjectRestInDecls(s.Decls)
js_parser.go#L8162: for i, d := range s.Decls {
js_parser.go#L8190: s.Decls[i].Value = nil
js_parser.go#L8207: for _, decl := range s.Decls {
js_parser.go#L8221: s.Decls = p.lowerObjectRestInDecls(s.Decls)
js_parser.go#L8226: if assign, ok := p.maybeRelocateVarsToTopLevel(s.Decls, relocateVarsNormal); ok {
js_parser.go#L8390: if assign, ok := p.maybeRelocateVarsToTopLevel(init.Decls, relocateVarsNormal); ok {
js_parser.go#L8413: if local, ok := s.Init.Data.(*js_ast.SLocal); ok && local.Kind == js_ast.LocalVar && len(local.Decls) == 1 {
js_parser.go#L8414: decl := &local.Decls[0]
js_parser.go#L8429: if replacement, ok := p.maybeRelocateVarsToTopLevel(init.Decls, relocateVarsForInOrForOf); ok {
js_parser.go#L8443: if replacement, ok := p.maybeRelocateVarsToTopLevel(init.Decls, relocateVarsForInOrForOf); ok {
js_parser.go#L8680: p.markExportedDeclsInsideNamespace(s.Arg, local.Decls)
js_parser.go#L12002: for _, decl := range s.Decls {
js_parser.go#L12010: decl := s.Decls[0]
js_parser.go#L12013: value := *s.Decls[0].Value
js_parser.go#L12121: Decls: []js_ast.Decl{{
js_parser.go#L12169: for _, decl := range s.Decls {
js_parser.go#L12745: Decls: []js_ast.Decl{{
js_parser.go#L12793: for _, decl := range s.Decls {
js_parser.go#L12795: clone.Decls = []js_ast.Decl{decl}
js_parser_lower.go#L278: Data: &js_ast.SLocal{Kind: js_ast.LocalVar, Decls: decls}})
js_parser_lower.go#L424: Decls: []js_ast.Decl{{
js_parser_lower.go#L1163: if len(s.Decls) == 1 && bindingHasObjectRest(s.Decls[0].Binding) {
js_parser_lower.go#L1165: decl := js_ast.Decl{Binding: s.Decls[0].Binding, Value: &js_ast.Expr{Loc: init.Loc, Data: &js_ast.EIdentifier{Ref: ref}}}
js_parser_lower.go#L1168: s.Decls[0].Binding.Data = &js_ast.BIdentifier{Ref: ref}
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#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#L2161: Decls: []js_ast.Decl{{
js_parser_lower.go#L2183: Decls: []js_ast.Decl{{
ts_parser.go#L874: Decls: decls,
ts_parser.go#L993: Decls: []js_ast.Decl{{Binding: js_ast.Binding{Loc: nameLoc, Data: &js_ast.BIdentifier{Ref: nameRef}}}},
ts_parser.go#L1000: Decls: []js_ast.Decl{{Binding: js_ast.Binding{Loc: nameLoc, Data: &js_ast.BIdentifier{Ref: nameRef}}}},
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L2310: p.printDecls("var", s.Decls, forbidIn)
js_printer.go#L2312: p.printDecls("let", s.Decls, forbidIn)
js_printer.go#L2314: p.printDecls("const", s.Decls, forbidIn)
js_printer.go#L2690: p.printDeclStmt(s.IsExport, "const", s.Decls)
js_printer.go#L2692: p.printDeclStmt(s.IsExport, "let", s.Decls)
js_printer.go#L2694: p.printDeclStmt(s.IsExport, "var", s.Decls)
 |
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. |