- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 103 for callExpr (0.7 sec)
-
src/cmd/fix/typecheck.go
// If isDecl is true, this is := so we can update // the types of the objects that lhs refers to. typecheckAssign := func(lhs, rhs []ast.Expr, isDecl bool) { if len(lhs) > 1 && len(rhs) == 1 { if _, ok := rhs[0].(*ast.CallExpr); ok { t := split(typeof[rhs[0]]) // Lists should have same length but may not; pair what can be paired. for i := 0; i < len(lhs) && i < len(t); i++ { set(lhs[i], t[i], isDecl) } return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 16 22:02:42 UTC 2022 - 20.1K bytes - Viewed (0) -
src/go/types/builtins_test.go
// find called function n := 0 var fun ast.Expr for x := range types { if call, _ := x.(*ast.CallExpr); call != nil { fun = call.Fun n++ } } if n != 1 { t.Errorf("%s: got %d CallExprs; want 1", src0, n) return } // check recorded types for fun and descendents (may be parenthesized) for {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 10.9K bytes - Viewed (0) -
src/internal/fuzz/encoding.go
} func parseCorpusValue(line []byte) (any, error) { fs := token.NewFileSet() expr, err := parser.ParseExprFrom(fs, "(test)", line, 0) if err != nil { return nil, err } call, ok := expr.(*ast.CallExpr) if !ok { return nil, fmt.Errorf("expected call expression") } if len(call.Args) != 1 { return nil, fmt.Errorf("expected call expression with 1 argument; got %d", len(call.Args)) } arg := call.Args[0]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 30 16:39:12 UTC 2022 - 11K bytes - Viewed (0) -
src/cmd/compile/internal/ir/fmt.go
ODELETE, OMAKE, OMAX, OMIN, ORECOVER, OPRINT, OPRINTLN: n := n.(*CallExpr) if n.IsDDD { fmt.Fprintf(s, "%v(%.v...)", n.Op(), n.Args) return } fmt.Fprintf(s, "%v(%.v)", n.Op(), n.Args) case OCALL, OCALLFUNC, OCALLINTER, OCALLMETH, OGETG: n := n.(*CallExpr) exprFmt(n.Fun, s, nprec) if n.IsDDD { fmt.Fprintf(s, "(%.v...)", n.Args) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 26K bytes - Viewed (0) -
src/cmd/cgo/gcc.go
for _, r := range f.Ref { if r.Expr == px { *px = p.rewriteName(f, r, addPosition) r.Done = true break } } return } call, ok := (*px).(*ast.CallExpr) if !ok { return } for _, c := range f.Calls { if !c.Done && c.Call.Lparen == call.Lparen { cstr, nu := p.rewriteCall(f, c) if cstr != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 97K bytes - Viewed (0) -
src/go/types/builtins.go
// reports whether the call is valid, with *x holding the result; // but x.expr is not set. If the call is invalid, the result is // false, and *x is undefined. func (check *Checker) builtin(x *operand, call *ast.CallExpr, id builtinId) (_ bool) { argList := call.Args // append is the only built-in that permits the use of ... for the last argument bin := predeclaredFuncs[id] if hasDots(call) && id != _Append {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 27.2K bytes - Viewed (0) -
src/cmd/compile/internal/rangefunc/rewrite.go
func (r *rewriter) editDefer(x *syntax.CallStmt) syntax.Stmt { if r.defers == nil { // Declare and initialize the #defers token. init := &syntax.CallExpr{ Fun: runtimeSym(r.info, "deferrangefunc"), } tv := syntax.TypeAndValue{Type: r.any.Type()} tv.SetIsValue() init.SetTypeInfo(tv) r.defers = r.declVar("#defers", r.any.Type(), init) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 41.6K bytes - Viewed (0) -
src/go/parser/parser.go
return &ast.ExprStmt{X: x[0]}, false } func (p *parser) parseCallExpr(callType string) *ast.CallExpr { x := p.parseRhs() // could be a conversion: (some type)(x) if t := ast.Unparen(x); t != x { p.error(x.Pos(), fmt.Sprintf("expression in %s must not be parenthesized", callType)) x = t } if call, isCall := x.(*ast.CallExpr); isCall { return call } if _, isBad := x.(*ast.BadExpr); !isBad {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 20:07:50 UTC 2023 - 72.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/builtins.go
// reports whether the call is valid, with *x holding the result; // but x.expr is not set. If the call is invalid, the result is // false, and *x is undefined. func (check *Checker) builtin(x *operand, call *syntax.CallExpr, id builtinId) (_ bool) { argList := call.ArgList // append is the only built-in that permits the use of ... for the last argument bin := predeclaredFuncs[id] if hasDots(call) && id != _Append {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 27.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/ast/astutil/rewrite.go
a.apply(n, "Low", nil, n.Low) a.apply(n, "High", nil, n.High) a.apply(n, "Max", nil, n.Max) case *ast.TypeAssertExpr: a.apply(n, "X", nil, n.X) a.apply(n, "Type", nil, n.Type) case *ast.CallExpr: a.apply(n, "Fun", nil, n.Fun) a.applyList(n, "Args") case *ast.StarExpr: a.apply(n, "X", nil, n.X) case *ast.UnaryExpr: a.apply(n, "X", nil, n.X) case *ast.BinaryExpr:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 12.2K bytes - Viewed (0)