- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 47 for callExpr (0.16 sec)
-
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) -
src/cmd/compile/internal/ir/func.go
fn.Nname.Defn = fn pkg.Funcs = append(pkg.Funcs, fn) return fn } // IsFuncPCIntrinsic returns whether n is a direct call of internal/abi.FuncPCABIxxx functions. func IsFuncPCIntrinsic(n *CallExpr) bool { if n.Op() != OCALLFUNC || n.Fun.Op() != ONAME { return false } fn := n.Fun.(*Name).Sym() return (fn.Name == "FuncPCABI0" || fn.Name == "FuncPCABIInternal") && fn.Pkg.Path == "internal/abi" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 21.1K bytes - Viewed (0) -
src/cmd/compile/internal/walk/range.go
} if len(n.Body) != 1 { return false } stmt := n.Body[0] // only stmt in body if stmt == nil || stmt.Op() != ir.ODELETE { return false } m := n.X if delete := stmt.(*ir.CallExpr); !ir.SameSafeExpr(delete.Args[0], m) || !ir.SameSafeExpr(delete.Args[1], k) { return false } // Keys where equality is not reflexive can not be deleted from maps. if !types.IsReflexive(t.Key()) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:33 UTC 2023 - 17.6K bytes - Viewed (0) -
src/go/printer/printer_test.go
// ParenExpr, is correctly formatted with parens. // Test case for issue #63362. func TestChanType(t *testing.T) { expr := &ast.UnaryExpr{ Op: token.ARROW, X: &ast.CallExpr{ Fun: &ast.ChanType{ Dir: ast.RECV, Value: &ast.Ident{Name: "int"}, }, Args: []ast.Expr{&ast.Ident{Name: "nil"}}, }, } var buf bytes.Buffer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 20.4K bytes - Viewed (0) -
src/cmd/compile/internal/inline/inlheur/scoring.go
for k := range scoreCallsCache.tab { delete(scoreCallsCache.tab, k) } } // GetCallSiteScore returns the previously calculated score for call // within fn. func GetCallSiteScore(fn *ir.Func, call *ir.CallExpr) (int, bool) { if funcInlHeur, ok := fpmap[fn]; ok { if cs, ok := funcInlHeur.cstab[call]; ok { return cs.Score, true } } if cs, ok := callSiteTab[call]; ok { return cs.Score, true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 20:42:52 UTC 2024 - 24.2K bytes - Viewed (0) -
src/go/types/check.go
inTParamList bool // set if inside a type parameter list sig *Signature // function signature if inside a function; nil otherwise isPanic map[*ast.CallExpr]bool // set of panic call expressions (used for termination check) hasLabel bool // set if a function makes use of labels (only ~1% of functions); unused outside functions
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 23.1K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/printer.go
p.print(n.X, _Dot, _Lparen, n.Type, _Rparen) case *TypeSwitchGuard: if n.Lhs != nil { p.print(n.Lhs, blank, _Define, blank) } p.print(n.X, _Dot, _Lparen, _Type, _Rparen) case *CallExpr: p.print(n.Fun, _Lparen) p.printExprList(n.ArgList) if n.HasDots { p.print(_DotDotDot) } p.print(_Rparen) case *Operation: if n.Y == nil { // unary expr p.print(n.Op)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 24 07:17:27 UTC 2023 - 21.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/check.go
inTParamList bool // set if inside a type parameter list sig *Signature // function signature if inside a function; nil otherwise isPanic map[*syntax.CallExpr]bool // set of panic call expressions (used for termination check) hasLabel bool // set if a function makes use of labels (only ~1% of functions); unused outside functions
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 23.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation.go
if s == nil { return false } if isIdentOperand(s.Operand, operand) && s.Field == field { return true } return hasSelectExp(s.Operand, operand, field) case *exprpb.Expr_CallExpr: c := e.CallExpr if c == nil { return false } if c.Target == nil && c.Function == operators.OptSelect && len(c.Args) == 2 && isIdentOperand(c.Args[0], operand) && isConstField(c.Args[1], field) { return true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 31.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/infer.go
case *Tuple: // This case does not occur from within isParameterized // because tuples only appear in signatures where they // are handled explicitly. But isParameterized is also // called by Checker.callExpr with a function result tuple // if instantiation failed (go.dev/issue/59890). return t != nil && w.varList(t.vars) case *Signature: // t.tparams may not be nil if we are looking at a signature
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 13:54:20 UTC 2024 - 26.4K bytes - Viewed (0)