github.com/evanw/esbuild/internal/js_ast.SLocal.Kind (field)
47 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L1148: Kind LocalKind
github.com/evanw/esbuild/internal/bundler
linker.go#L3261: if before.Kind == after.Kind && before.IsExport == after.IsExport {
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L3986: Kind: js_ast.LocalLet,
js_parser.go#L5402: Kind: js_ast.LocalVar,
js_parser.go#L5424: Kind: js_ast.LocalConst,
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#L5710: if local, ok := init.Data.(*js_ast.SLocal); ok && local.Kind == js_ast.LocalConst {
js_parser.go#L6100: Kind: js_ast.LocalVar,
js_parser.go#L6420: if s.Kind != js_ast.LocalVar {
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#L6639: if s, ok := stmt.Data.(*js_ast.SLocal); ok && s.Kind == js_ast.LocalVar && end > 0 {
js_parser.go#L6641: if prevS, ok := prevStmt.Data.(*js_ast.SLocal); ok && prevS.Kind == js_ast.LocalVar && s.IsExport == prevS.IsExport {
js_parser.go#L6710: if prevS, ok := result[len(result)-1].Data.(*js_ast.SLocal); ok && prevS.Kind != js_ast.LocalVar {
js_parser.go#L6757: if prevS, ok := prevStmt.Data.(*js_ast.SLocal); ok && s.Kind == prevS.Kind && s.IsExport == prevS.IsExport {
js_parser.go#L6934: if s2, ok := prevStmt.Data.(*js_ast.SLocal); ok && s2.Kind == js_ast.LocalVar && !s2.IsExport {
js_parser.go#L6940: if s2, ok := prevStmt.Data.(*js_ast.SLocal); ok && s2.Kind == js_ast.LocalVar && !s2.IsExport {
js_parser.go#L6941: if s3, ok := s.Init.Data.(*js_ast.SLocal); ok && s3.Kind == js_ast.LocalVar {
js_parser.go#L6943: s.Init.Data = &js_ast.SLocal{Kind: js_ast.LocalVar, Decls: append(s2.Decls, s3.Decls...)}
js_parser.go#L7424: if s, ok := stmts[0].Data.(*js_ast.SLocal); !ok || s.Kind == js_ast.LocalVar {
js_parser.go#L7448: s.Kind = p.selectLocalKind(s.Kind)
js_parser.go#L7534: return s.Kind != js_ast.LocalVar
js_parser.go#L8187: if p.options.mangleSyntax && s.Kind == js_ast.LocalLet {
js_parser.go#L8222: s.Kind = p.selectLocalKind(s.Kind)
js_parser.go#L8225: if s.Kind == js_ast.LocalVar {
js_parser.go#L8389: if init, ok := s.Init.Data.(*js_ast.SLocal); ok && init.Kind == js_ast.LocalVar {
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#L8428: if init, ok := s.Init.Data.(*js_ast.SLocal); ok && init.Kind == js_ast.LocalVar {
js_parser.go#L8442: if init, ok := s.Init.Data.(*js_ast.SLocal); ok && init.Kind == js_ast.LocalVar {
js_parser.go#L12744: Kind: p.selectLocalKind(js_ast.LocalConst),
js_parser_lower.go#L278: Data: &js_ast.SLocal{Kind: js_ast.LocalVar, Decls: decls}})
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#L2160: Kind: p.selectLocalKind(js_ast.LocalConst),
js_parser_lower.go#L2181: Kind: p.selectLocalKind(js_ast.LocalLet),
ts_parser.go#L873: Kind: kind,
ts_parser.go#L992: Kind: js_ast.LocalVar,
ts_parser.go#L999: Kind: js_ast.LocalLet,
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L2308: switch s.Kind {
js_printer.go#L2688: switch s.Kind {
 |
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. |