- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for isTerminatingSwitch (0.24 sec)
-
src/go/types/return.go
if s.Else != nil && check.isTerminating(s.Body, "") && check.isTerminating(s.Else, "") { return true } case *ast.SwitchStmt: return check.isTerminatingSwitch(s.Body, label) case *ast.TypeSwitchStmt: return check.isTerminatingSwitch(s.Body, label) case *ast.SelectStmt: for _, s := range s.Body.List { cc := s.(*ast.CommClause)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 4.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/return.go
case *syntax.IfStmt: if s.Else != nil && check.isTerminating(s.Then, "") && check.isTerminating(s.Else, "") { return true } case *syntax.SwitchStmt: return check.isTerminatingSwitch(s.Body, label) case *syntax.SelectStmt: for _, cc := range s.Body { if !check.isTerminatingList(cc.Body, "") || hasBreakList(cc.Body, label, true) { return false } } return true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 4.4K bytes - Viewed (0)