- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 997 for IsSwitch (0.29 sec)
-
tensorflow/compiler/jit/shape_inference.cc
} while (node->IsIdentity()); const Node* switch_input; bool is_loop_invariant = node->IsSwitch() && node->input_node(0, &switch_input).ok() && switch_input == n; if (is_loop_invariant) { shape_inference::InferenceContext* context = shape_refiner->GetContext(n);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 00:41:19 UTC 2024 - 13K bytes - Viewed (0) -
src/cmd/compile/internal/walk/switch.go
// expression switch. func walkSwitchExpr(sw *ir.SwitchStmt) { lno := ir.SetPos(sw) cond := sw.Tag sw.Tag = nil // convert switch {...} to switch true {...} if cond == nil { cond = ir.NewBool(base.Pos, true) cond = typecheck.Expr(cond) cond = typecheck.DefaultLit(cond, nil) } // Given "switch string(byteslice)", // with all cases being side-effect free,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:01 UTC 2024 - 30.1K bytes - Viewed (0) -
src/net/conf.go
return hostLookupCgo, nil } // If something is unrecognized, use cgo. fallbackOrder = hostLookupCgo canUseCgo = true } // On systems that don't use /etc/resolv.conf or /etc/nsswitch.conf, we are done. switch c.goos { case "windows", "plan9", "android", "ios": return fallbackOrder, nil } // Try to figure out the order to use for searches. // If we don't recognize something, use fallbackOrder.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 03:13:26 UTC 2024 - 15.5K bytes - Viewed (0) -
src/internal/types/testdata/check/stmt0.go
func typeswitches() { var i int var x interface{} switch x.(type) {} switch (x /* ERROR "outside type switch" */ .(type)) {} switch x.(type) { default: default /* ERROR "multiple defaults" */ : } switch x /* ERROR "declared and not used" */ := x.(type) {} switch _ /* ERROR "no new variable on left side of :=" */ := x.(type) {} switch x := x.(type) { case int: var y int = x _ = y }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 19K bytes - Viewed (0) -
src/go/types/stmt.go
case token.FALLTHROUGH: if ctxt&fallthroughOk == 0 { var msg string switch { case ctxt&finalSwitchCase != 0: msg = "cannot fallthrough final case in switch" case ctxt&inTypeSwitch != 0: msg = "cannot fallthrough in type switch" default: msg = "fallthrough statement out of place" } check.error(s, MisplacedFallthrough, msg) } default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.6K bytes - Viewed (0) -
src/go/types/generate_test.go
ast.Inspect(f, func(n ast.Node) bool { switch n := n.(type) { case *ast.Ident: m.rename(&n.Name) return false } return true }) } // renameSelectors is like renameIdents but only looks at selectors. func renameSelectors(f *ast.File, renames ...string) { m := makeRenameMap(renames...) ast.Inspect(f, func(n ast.Node) bool { switch n := n.(type) { case *ast.SelectorExpr:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 16.5K bytes - Viewed (0) -
src/encoding/json/decode.go
data, i := d.data, d.off Switch: switch data[i-1] { case '"': // string for ; i < len(data); i++ { switch data[i] { case '\\': i++ // escaped char case '"': i++ // tokenize the closing quote too break Switch } } case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-': // number for ; i < len(data); i++ { switch data[i] {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 35.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/stmt.go
case syntax.Fallthrough: if ctxt&fallthroughOk == 0 { var msg string switch { case ctxt&finalSwitchCase != 0: msg = "cannot fallthrough final case in switch" case ctxt&inTypeSwitch != 0: msg = "cannot fallthrough in type switch" default: msg = "fallthrough statement out of place" } check.error(s, MisplacedFallthrough, msg) } case syntax.Goto:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.7K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DaemonStateCoordinator.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 06:47:38 UTC 2024 - 17.1K bytes - Viewed (0) -
src/database/sql/convert.go
// be used in the retry. checker := defaultCheckNamedValue nextCC := false switch { case nvc != nil: nextCC = cci != nil checker = nvc.CheckNamedValue case cci != nil: checker = cc.CheckNamedValue } nextCheck: err = checker(nv) switch err { case nil: n++ continue case driver.ErrRemoveArgument: nvargs = nvargs[:len(nvargs)-1]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 16.2K bytes - Viewed (0)