- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 69 for callExpr (0.24 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go
} } nodeFilter := []ast.Node{ (*ast.ExprStmt)(nil), } inspect.Preorder(nodeFilter, func(n ast.Node) { call, ok := astutil.Unparen(n.(*ast.ExprStmt).X).(*ast.CallExpr) if !ok { return // not a call statement } // Call to function or method? fn, ok := typeutil.Callee(pass.TypesInfo, call).(*types.Func) if !ok { return // e.g. var or builtin }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 4.5K bytes - Viewed (0) -
src/go/types/exprstring.go
WriteExpr(buf, x.Max) } } buf.WriteByte(']') case *ast.TypeAssertExpr: WriteExpr(buf, x.X) buf.WriteString(".(") WriteExpr(buf, x.Type) buf.WriteByte(')') case *ast.CallExpr: WriteExpr(buf, x.Fun) buf.WriteByte('(') writeExprList(buf, x.Args) if hasDots(x) { buf.WriteString("...") } buf.WriteByte(')') case *ast.StarExpr: buf.WriteByte('*')
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 19:31:44 UTC 2024 - 4.8K bytes - Viewed (0) -
src/cmd/compile/internal/walk/builtin.go
} return stackTempAddr(init, t) } types.CalcSize(t) n.MarkNonNil() return n } func walkMinMax(n *ir.CallExpr, init *ir.Nodes) ir.Node { init.Append(ir.TakeInit(n)...) walkExprList(n.Args, init) return n } // generate code for print. func walkPrint(nn *ir.CallExpr, init *ir.Nodes) ir.Node { // Hoist all the argument evaluation up before the lock. walkExprListCheap(nn.Args, init)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 22:35:22 UTC 2024 - 31.2K bytes - Viewed (0) -
src/go/types/assignments.go
} func (check *Checker) assignError(rhs []ast.Expr, l, r int) { vars := measure(l, "variable") vals := measure(r, "value") rhs0 := rhs[0] if len(rhs) == 1 { if call, _ := ast.Unparen(rhs0).(*ast.CallExpr); call != nil { check.errorf(rhs0, WrongAssignCount, "assignment mismatch: %s but %s returns %s", vars, call.Fun, vals) return } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 16.4K bytes - Viewed (0) -
src/cmd/compile/internal/types2/assignments.go
func (check *Checker) assignError(rhs []syntax.Expr, l, r int) { vars := measure(l, "variable") vals := measure(r, "value") rhs0 := rhs[0] if len(rhs) == 1 { if call, _ := syntax.Unparen(rhs0).(*syntax.CallExpr); call != nil { check.errorf(rhs0, WrongAssignCount, "assignment mismatch: %s but %s returns %s", vars, call.Fun, vals) return } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 23 21:21:43 UTC 2024 - 16.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/cfg/builder.go
package cfg // This file implements the CFG construction pass. import ( "fmt" "go/ast" "go/token" ) type builder struct { cfg *CFG mayReturn func(*ast.CallExpr) bool current *Block lblocks map[string]*lblock // labeled blocks targets *targets // linked stack of branch targets } func (b *builder) stmt(_s ast.Stmt) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 11.4K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/nowb.go
} ir.Visit(n, c.findExtraCalls) } c.curfn = nil return c } func (c *nowritebarrierrecChecker) findExtraCalls(nn ir.Node) { if nn.Op() != ir.OCALLFUNC { return } n := nn.(*ir.CallExpr) if n.Fun == nil || n.Fun.Op() != ir.ONAME { return } fn := n.Fun.(*ir.Name) if fn.Class != ir.PFUNC || fn.Defn == nil { return } if types.RuntimeSymName(fn.Sym()) != "systemstack" { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 17:29:46 UTC 2024 - 5.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/issues_test.go
types := make(map[syntax.Expr]TypeAndValue) mustTypecheck(src, nil, &Info{Types: types}) var n int for x, tv := range types { if x, _ := x.(*syntax.CallExpr); x != nil { // there must be exactly one CallExpr which is the P(val) conversion n++ tpar, _ := tv.Type.(*TypeParam) if tpar == nil { t.Fatalf("%s: got type %s, want type parameter", ExprString(x), tv.Type) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/go/types/issues_test.go
types := make(map[ast.Expr]TypeAndValue) mustTypecheck(src, nil, &Info{Types: types}) var n int for x, tv := range types { if x, _ := x.(*ast.CallExpr); x != nil { // there must be exactly one CallExpr which is the P(val) conversion n++ tpar, _ := tv.Type.(*TypeParam) if tpar == nil { t.Fatalf("%s: got type %s, want type parameter", ExprString(x), tv.Type) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/go/ast/example_test.go
// 24 . . . Body: *ast.BlockStmt { // 25 . . . . Lbrace: 3:13 // 26 . . . . List: []ast.Stmt (len = 1) { // 27 . . . . . 0: *ast.ExprStmt { // 28 . . . . . . X: *ast.CallExpr { // 29 . . . . . . . Fun: *ast.Ident { // 30 . . . . . . . . NamePos: 4:2 // 31 . . . . . . . . Name: "println" // 32 . . . . . . . }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 21:44:50 UTC 2024 - 6.1K bytes - Viewed (0)