- Sort Score
- Result 10 results
- Languages All
Results 41 - 43 of 43 for callExpr (0.14 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unreachable/unreachable.go
// identifying dead code, continue redirects control flow just // like the other terminating statements. d.reachable = false } case *ast.ExprStmt: // Call to panic? call, ok := x.X.(*ast.CallExpr) if ok { name, ok := call.Fun.(*ast.Ident) if ok && name.Name == "panic" && name.Obj == nil { d.reachable = false } } case *ast.ForStmt: d.findDead(x.Body)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 7.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/ctrlflow/ctrlflow.go
} } } // callMayReturn reports whether the called function may return. // It is passed to the CFG builder. func (c *CFGs) callMayReturn(call *ast.CallExpr) (r bool) { if id, ok := call.Fun.(*ast.Ident); ok && c.pass.TypesInfo.Uses[id] == panicBuiltin { return false // panic never returns } // Is this a static call? Also includes static functions
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 6.6K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/nodes.go
X Expr // X.(type) expr } Operation struct { Op Operator X, Y Expr // Y == nil means unary expression expr } // Fun(ArgList[0], ArgList[1], ...) CallExpr struct { Fun Expr ArgList []Expr // nil means no arguments HasDots bool // last argument is followed by ... expr } // ElemList[0], ElemList[1], ... ListExpr struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:38 UTC 2023 - 9K bytes - Viewed (0)