- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,591 for NCases (0.08 sec)
-
src/internal/abi/switch.go
// license that can be found in the LICENSE file. package abi type InterfaceSwitch struct { Cache *InterfaceSwitchCache NCases int // Array of NCases elements. // Each case must be a non-empty interface type. Cases [1]*InterfaceType } type InterfaceSwitchCache struct { Mask uintptr // mask for index. Must be a power of 2 minus 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 06 17:02:53 UTC 2023 - 1.6K bytes - Viewed (0) -
src/runtime/select.go
selectDefault // default ) //go:linkname reflect_rselect reflect.rselect func reflect_rselect(cases []runtimeSelect) (int, bool) { if len(cases) == 0 { block() } sel := make([]scase, len(cases)) orig := make([]int, len(cases)) nsends, nrecvs := 0, 0 dflt := -1 for i, rc := range cases { var j int switch rc.dir { case selectDefault: dflt = i continue case selectSend:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 13 21:36:04 UTC 2024 - 15K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/cfg/builder.go
var defaultFallthrough *Block var fallthru, defaultBlock *Block ncases := len(s.Body.List) for i, clause := range s.Body.List { body := fallthru if body == nil { body = b.newBlock(KindSwitchCaseBody, clause) // first case only } // Preallocate body block for the next case. fallthru = done if i+1 < ncases { fallthru = b.newBlock(KindSwitchCaseBody, s.Body.List[i+1]) }
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/runtime/iface.go
// interfaceSwitch compares t against the list of cases in s. // If t matches case i, interfaceSwitch returns the case index i and // an itab for the pair <t, s.Cases[i]>. // If there is no match, return N,nil, where N is the number // of cases. func interfaceSwitch(s *abi.InterfaceSwitch, t *_type) (int, *itab) { cases := unsafe.Slice(&s.Cases[0], s.NCases) // Results if we don't find a match. case_ := len(cases)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 22.5K bytes - Viewed (0) -
src/cmd/compile/internal/walk/switch.go
labels := make([]*types.Sym, len(sw.Cases)) for i := range sw.Cases { labels[i] = typecheck.AutoLabel(".s") } // "jump" to execute if no case matches. br := ir.NewBranchStmt(base.Pos, ir.OBREAK, nil) // Assemble a list of all the types we're looking for. // This pass flattens the case lists, as well as handles // some unusual cases, like default and nil cases. type oneCase struct { pos src.XPos
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/cmd/vendor/golang.org/x/text/cases/cases.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:generate go run gen.go gen_trieval.go // Package cases provides general and language-specific case mappers. package cases // import "golang.org/x/text/cases" import ( "golang.org/x/text/language" "golang.org/x/text/transform" ) // References: // - Unicode Reference Manual Chapter 3.13, 4.2, and 5.18.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 4.9K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/lifecycle/Lifecycle.java
public Lifecycle(String id, List<String> phases, Map<String, LifecyclePhase> defaultPhases) { this.id = id; this.phases = phases; this.defaultPhases = defaultPhases; } public Lifecycle(org.apache.maven.api.Lifecycle lifecycle) { this.lifecycle = lifecycle; this.id = lifecycle.id(); this.phases = lifecycle.phases().stream()
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed May 22 13:45:13 UTC 2024 - 3.3K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/upgrade/node.go
addUpgradeNodeFlags(cmd.Flags(), nodeOptions) options.AddConfigFlag(cmd.Flags(), &nodeOptions.cfgPath) options.AddPatchesFlag(cmd.Flags(), &nodeOptions.patchesDir) // initialize the workflow runner with the list of phases nodeRunner.AppendPhase(phases.NewPreflightPhase()) nodeRunner.AppendPhase(phases.NewControlPlane()) nodeRunner.AppendPhase(phases.NewKubeletConfigPhase())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 08:34:39 UTC 2024 - 10K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease_test.go
} } } leases, err := fakeReconciler.ListLeases() if err != nil { t.Errorf("unexpected error: %v", err) } // sort for comparison sort.Strings(leases) sort.Strings(test.expectLeases) if !reflect.DeepEqual(leases, test.expectLeases) { t.Errorf("expected %v got: %v", test.expectLeases, leases) } for _, server := range test.servers {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 8.7K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/join.go
addJoinOtherFlags(cmd.Flags(), joinOptions) joinRunner.AppendPhase(phases.NewPreflightPhase()) joinRunner.AppendPhase(phases.NewControlPlanePreparePhase()) joinRunner.AppendPhase(phases.NewCheckEtcdPhase()) joinRunner.AppendPhase(phases.NewKubeletStartPhase()) joinRunner.AppendPhase(phases.NewControlPlaneJoinPhase()) joinRunner.AppendPhase(phases.NewWaitControlPlanePhase())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 16 15:33:38 UTC 2024 - 25.2K bytes - Viewed (0)