github.com/evanw/esbuild/internal/js_ast.Decl.Value (field)
56 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L1227: Value *Expr
github.com/evanw/esbuild/internal/bundler
linker.go#L1469: Value: &value,
linker.go#L1610: Value: &js_ast.Expr{Data: &js_ast.EImportIdentifier{Ref: export.ref}},
linker.go#L1688: Value: &js_ast.Expr{Data: &js_ast.EObject{}},
linker.go#L3040: Value: &js_ast.Expr{Loc: record.Range.Loc, Data: &js_ast.ERequire{ImportRecordIndex: importRecordIndex}},
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#L3422: Value: &value,
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L4281: decls = append(decls, js_ast.Decl{Binding: local, Value: value})
js_parser.go#L4294: if d.Value == nil {
js_parser.go#L4309: } else if len(decls) == 1 && decls[0].Value != nil {
js_parser.go#L4317: p.log.AddError(&p.source, decls[0].Value.Loc, fmt.Sprintf("for-%s loop variables cannot have an initializer", loopType))
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#L6588: Value: &js_ast.Expr{Loc: s.Fn.Name.Loc, Data: &js_ast.EIdentifier{Ref: s.Fn.Name.Ref}},
js_parser.go#L6595: letDecls[index].Value = &js_ast.Expr{Loc: stmt.Loc, Data: &js_ast.EFunction{Fn: s.Fn}}
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#L6713: if last := prevS.Decls[len(prevS.Decls)-1]; last.Value != nil {
js_parser.go#L6722: if p.substituteSingleUseSymbolInStmt(stmt, id.Ref, *last.Value) {
js_parser.go#L7131: if first := s.Decls[0]; first.Value != nil {
js_parser.go#L7134: expr = first.Value
js_parser.go#L7443: if d.Value != nil {
js_parser.go#L7444: *d.Value = p.visitExpr(*d.Value)
js_parser.go#L8164: if d.Value != nil {
js_parser.go#L8165: wasAnonymousNamedExpr := p.isAnonymousNamedExpr(*d.Value)
js_parser.go#L8166: *d.Value = p.visitExpr(*d.Value)
js_parser.go#L8170: *d.Value = p.maybeKeepExprSymbolName(
js_parser.go#L8171: *d.Value, p.symbols[id.Ref.InnerIndex].OriginalName, wasAnonymousNamedExpr)
js_parser.go#L8189: if _, ok := d.Value.Data.(*js_ast.EUndefined); ok {
js_parser.go#L8190: s.Decls[i].Value = nil
js_parser.go#L8208: if decl.Value != nil {
js_parser.go#L8210: if result, ok := p.lowerObjectRestInAssign(target, *decl.Value); ok {
js_parser.go#L8213: target = js_ast.Assign(target, *decl.Value)
js_parser.go#L8415: if id, ok := decl.Binding.Data.(*js_ast.BIdentifier); ok && decl.Value != nil {
js_parser.go#L8416: p.markStrictModeFeature(forInVarInit, p.source.RangeOfOperatorBefore(decl.Value.Loc, "="), "")
js_parser.go#L8421: *decl.Value,
js_parser.go#L8423: decl.Value = nil
js_parser.go#L8745: if decl.Value != nil {
js_parser.go#L8746: value = maybeJoinWithComma(value, js_ast.Assign(binding, *decl.Value))
js_parser.go#L12013: value := *s.Decls[0].Value
js_parser.go#L12173: if decl.Value != nil && !p.exprCanBeRemovedIfUnused(*decl.Value) {
js_parser.go#L12747: Value: &js_ast.Expr{Data: &js_ast.EObject{}},
js_parser_lower.go#L426: Value: &js_ast.Expr{Loc: bodyLoc, Data: &js_ast.EArrow{
js_parser_lower.go#L1121: if decl.Value != nil && bindingHasObjectRest(decl.Binding) {
js_parser_lower.go#L1124: if decl.Value != nil {
js_parser_lower.go#L1126: if result, ok := p.lowerObjectRestToDecls(target, *decl.Value, clone); ok {
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#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#L2163: Value: init,
js_parser_lower.go#L2185: Value: init,
ts_parser.go#L869: Value: &value,
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L2332: if decl.Value != nil {
js_printer.go#L2336: p.printExpr(*decl.Value, js_ast.LComma, flags)
 |
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. |