github.com/evanw/esbuild/internal/js_ast.Decl.Binding (field)
52 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L1226: Binding Binding
github.com/evanw/esbuild/internal/bundler
linker.go#L1468: Binding: js_ast.Binding{Loc: value.Loc, Data: &js_ast.BIdentifier{Ref: ref}},
linker.go#L1609: Binding: js_ast.Binding{Data: &js_ast.BIdentifier{Ref: tempRef}},
linker.go#L1687: Binding: js_ast.Binding{Data: &js_ast.BIdentifier{Ref: repr.ast.ExportsRef}},
linker.go#L3039: Binding: js_ast.Binding{Loc: loc, Data: &js_ast.BIdentifier{Ref: namespaceRef}},
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#L3421: Binding: js_ast.Binding{Data: &js_ast.BIdentifier{Ref: repr.ast.WrapperRef}},
linker.go#L4400: preventBindingsFromBeingRenamed(decl.Binding, c.symbols)
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L4281: decls = append(decls, js_ast.Decl{Binding: local, Value: value})
js_parser.go#L4295: if id, ok := d.Binding.Data.(*js_ast.BIdentifier); ok {
js_parser.go#L4296: r := js_lexer.RangeOfIdentifier(p.source, d.Binding.Loc)
js_parser.go#L4300: p.log.AddError(&p.source, d.Binding.Loc, "This constant must be initialized")
js_parser.go#L4308: p.log.AddError(&p.source, decls[0].Binding.Loc, fmt.Sprintf("for-%s loops must have a single declaration", loopType))
js_parser.go#L4311: if _, ok := decls[0].Binding.Data.(*js_ast.BIdentifier); ok {
js_parser.go#L6095: decls = extractDeclsForBinding(decl.Binding, decls)
js_parser.go#L6123: decls = append(decls, js_ast.Decl{Binding: binding})
js_parser.go#L6385: identifiers = append(identifiers, js_ast.Decl{Binding: binding})
js_parser.go#L6428: identifiers = findIdentifiers(decl.Binding, identifiers)
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#L6580: letDecls = append(letDecls, js_ast.Decl{Binding: js_ast.Binding{
js_parser.go#L6587: Binding: js_ast.Binding{Loc: s.Fn.Name.Loc, Data: &js_ast.BIdentifier{Ref: hoistedRef}},
js_parser.go#L6718: if id, ok := last.Binding.Data.(*js_ast.BIdentifier); ok && p.symbols[id.Ref.InnerIndex].UseCountEstimate == 1 {
js_parser.go#L7133: if _, ok := first.Binding.Data.(*js_ast.BIdentifier); ok {
js_parser.go#L7442: p.visitBinding(d.Binding, bindingOpts{})
js_parser.go#L8163: p.visitBinding(d.Binding, bindingOpts{})
js_parser.go#L8169: if id, ok := d.Binding.Data.(*js_ast.BIdentifier); ok {
js_parser.go#L8188: if _, ok := d.Binding.Data.(*js_ast.BIdentifier); ok {
js_parser.go#L8209: target := p.convertBindingToExpr(decl.Binding, wrapIdentifier)
js_parser.go#L8415: if id, ok := decl.Binding.Data.(*js_ast.BIdentifier); ok && decl.Value != nil {
js_parser.go#L8420: js_ast.Expr{Loc: decl.Binding.Loc, Data: &js_ast.EIdentifier{Ref: id.Ref}},
js_parser.go#L8744: binding := p.convertBindingToExpr(decl.Binding, wrapIdentifier)
js_parser.go#L8769: p.markExportedBindingInsideNamespace(nsRef, decl.Binding)
js_parser.go#L12003: p.recordExportedBinding(decl.Binding)
js_parser.go#L12025: if ref := decl.Binding.Data.(*js_ast.BIdentifier).Ref; p.symbols[ref.InnerIndex].UseCountEstimate == 0 {
js_parser.go#L12122: Binding: js_ast.Binding{Loc: local.Loc, Data: &js_ast.BIdentifier{Ref: local.Ref}},
js_parser.go#L12170: if !p.bindingCanBeRemovedIfUnused(decl.Binding) {
js_parser.go#L12746: Binding: js_ast.Binding{Data: &js_ast.BIdentifier{Ref: p.importMetaRef}},
js_parser_lower.go#L425: Binding: js_ast.Binding{Loc: bodyLoc, Data: &js_ast.BIdentifier{Ref: *p.fnOrArrowDataVisit.superIndexRef}},
js_parser_lower.go#L1121: if decl.Value != nil && bindingHasObjectRest(decl.Binding) {
js_parser_lower.go#L1125: target := p.convertBindingToExpr(decl.Binding, nil)
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#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#L1222: decls = append(decls, js_ast.Decl{Binding: binding, Value: &right})
js_parser_lower.go#L2162: Binding: js_ast.Binding{Loc: name.Loc, Data: &js_ast.BIdentifier{Ref: captureRef}},
js_parser_lower.go#L2184: Binding: js_ast.Binding{Loc: name.Loc, Data: &js_ast.BIdentifier{Ref: nameRef}},
ts_parser.go#L868: Binding: js_ast.Binding{Loc: defaultNameLoc, Data: &js_ast.BIdentifier{Ref: ref}},
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#L2330: p.printBinding(decl.Binding)
 |
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. |