type github.com/evanw/esbuild/internal/js_ast.Decl
53 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L1147: Decls []Decl
js_ast.go#L1225: type Decl struct {
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#L3269: clone.Decls = make([]js_ast.Decl, 0, len(before.Decls)+len(after.Decls))
linker.go#L3420: Decls: []js_ast.Decl{{
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L3967: func (p *parser) parseExprOrLetStmt(opts parseStmtOpts) (js_ast.Expr, js_ast.Stmt, []js_ast.Decl) {
js_parser.go#L4247: func (p *parser) parseAndDeclareDecls(kind js_ast.SymbolKind, opts parseStmtOpts) []js_ast.Decl {
js_parser.go#L4248: decls := []js_ast.Decl{}
js_parser.go#L4281: decls = append(decls, js_ast.Decl{Binding: local, Value: value})
js_parser.go#L4292: func (p *parser) requireInitializers(decls []js_ast.Decl) {
js_parser.go#L4306: func (p *parser) forbidInitializers(decls []js_ast.Decl, loopType string, isVar bool) {
js_parser.go#L5644: decls := []js_ast.Decl{}
js_parser.go#L6092: var decls []js_ast.Decl
js_parser.go#L6118: func extractDeclsForBinding(binding js_ast.Binding, decls []js_ast.Decl) []js_ast.Decl {
js_parser.go#L6123: decls = append(decls, js_ast.Decl{Binding: binding})
js_parser.go#L6382: func findIdentifiers(binding js_ast.Binding, identifiers []js_ast.Decl) []js_ast.Decl {
js_parser.go#L6385: identifiers = append(identifiers, js_ast.Decl{Binding: binding})
js_parser.go#L6426: identifiers := []js_ast.Decl{}
js_parser.go#L6504: decls := []js_ast.Decl{}
js_parser.go#L6506: decls = append(decls, js_ast.Decl{Binding: js_ast.Binding{Data: &js_ast.BIdentifier{Ref: temp.ref}}, Value: temp.value})
js_parser.go#L6565: var letDecls []js_ast.Decl
js_parser.go#L6566: var varDecls []js_ast.Decl
js_parser.go#L6580: letDecls = append(letDecls, js_ast.Decl{Binding: js_ast.Binding{
js_parser.go#L6586: varDecls = append(varDecls, js_ast.Decl{
js_parser.go#L8721: func (p *parser) maybeRelocateVarsToTopLevel(decls []js_ast.Decl, mode relocateVarsMode) (js_ast.Stmt, bool) {
js_parser.go#L8767: func (p *parser) markExportedDeclsInsideNamespace(nsRef js_ast.Ref, decls []js_ast.Decl) {
js_parser.go#L12121: Decls: []js_ast.Decl{{
js_parser.go#L12745: Decls: []js_ast.Decl{{
js_parser.go#L12795: clone.Decls = []js_ast.Decl{decl}
js_parser_lower.go#L424: Decls: []js_ast.Decl{{
js_parser_lower.go#L1113: func (p *parser) lowerObjectRestInDecls(decls []js_ast.Decl) []js_ast.Decl {
js_parser_lower.go#L1122: clone := append([]js_ast.Decl{}, decls[:i]...)
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#L1167: decls := p.lowerObjectRestInDecls([]js_ast.Decl{decl})
js_parser_lower.go#L1192: decl := js_ast.Decl{Binding: *catch.Binding, Value: &js_ast.Expr{Loc: catch.Binding.Loc, Data: &js_ast.EIdentifier{Ref: ref}}}
js_parser_lower.go#L1194: decls := p.lowerObjectRestInDecls([]js_ast.Decl{decl})
js_parser_lower.go#L1216: func (p *parser) lowerObjectRestToDecls(rootExpr js_ast.Expr, rootInit js_ast.Expr, decls []js_ast.Decl) ([]js_ast.Decl, bool) {
js_parser_lower.go#L1222: decls = append(decls, js_ast.Decl{Binding: binding, Value: &right})
js_parser_lower.go#L2161: Decls: []js_ast.Decl{{
js_parser_lower.go#L2183: Decls: []js_ast.Decl{{
ts_parser.go#L867: decls := []js_ast.Decl{{
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#L2293: func (p *printer) printDeclStmt(isExport bool, keyword string, decls []js_ast.Decl) {
js_printer.go#L2321: func (p *printer) printDecls(keyword string, decls []js_ast.Decl, flags int) {
 |
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. |