- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 224 for IsSwitch (0.14 sec)
-
src/vendor/golang.org/x/net/nettest/nettest.go
ss := strings.Split(network, ":") switch ss[0] { case "ip+nopriv": // This is an internal network name for testing on the // package net of the standard library. switch runtime.GOOS { case "android", "fuchsia", "hurd", "ios", "js", "nacl", "plan9", "wasip1", "windows": return false } case "ip", "ip4", "ip6": switch runtime.GOOS {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 8.5K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/BuildLogicChangeFixture.groovy
} """ writeBuildLogicPlugin() writeGreetTask "GreetTask", ORIGINAL_GREETING switch (kind) { case Kind.CHANGE_RESOURCE: writeResource "" break } } void applyChange() { switch (kind) { case Kind.CHANGE_SOURCE: writeGreetTask "GreetTask", CHANGED_GREETING break
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 7.2K bytes - Viewed (0) -
src/cmd/asm/internal/arch/loong64.go
func IsLoong64CMP(op obj.As) bool { switch op { case loong64.ACMPEQF, loong64.ACMPEQD, loong64.ACMPGEF, loong64.ACMPGED, loong64.ACMPGTF, loong64.ACMPGTD: return true } return false } // IsLoong64MUL reports whether the op (as defined by an loong64.A* constant) is // one of the MUL/DIV/REM instructions that require special handling. func IsLoong64MUL(op obj.As) bool { switch op {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 02:04:54 UTC 2024 - 2.1K bytes - Viewed (0) -
src/internal/types/testdata/check/labels.go
var x int func f0() { L1 /* ERROR "label L1 declared and not used" */ : for { } L2 /* ERROR "label L2 declared and not used" */ : select { } L3 /* ERROR "label L3 declared and not used" */ : switch { } L4 /* ERROR "label L4 declared and not used" */ : if true { } L5 /* ERROR "label L5 declared and not used" */ : f0() L6: f0() L6 /* ERROR "label L6 already declared" */ : f0() if x == 20 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 3.2K bytes - Viewed (0) -
src/cmd/asm/internal/arch/ppc64.go
) func jumpPPC64(word string) bool { switch word { case "BC", "BCL", "BEQ", "BGE", "BGT", "BL", "BLE", "BLT", "BNE", "BR", "BVC", "BVS", "BDNZ", "BDZ", "CALL", "JMP": return true } return false } // IsPPC64CMP reports whether the op (as defined by an ppc64.A* constant) is // one of the CMP instructions that require special handling. func IsPPC64CMP(op obj.As) bool { switch op {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 21:53:50 UTC 2024 - 2.2K bytes - Viewed (0) -
test/fixedbugs/issue23664.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Verify error messages for incorrect if/switch headers. package p func f() { if f() true { // ERROR "unexpected name true, expected {" } switch f() true { // ERROR "unexpected name true, expected {" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 387 bytes - Viewed (0) -
src/net/iprawsock_posix.go
// license that can be found in the LICENSE file. //go:build unix || js || wasip1 || windows package net import ( "context" "syscall" ) func sockaddrToIP(sa syscall.Sockaddr) Addr { switch sa := sa.(type) { case *syscall.SockaddrInet4: return &IPAddr{IP: sa.Addr[0:]} case *syscall.SockaddrInet6: return &IPAddr{IP: sa.Addr[0:], Zone: zoneCache.name(int(sa.ZoneId))} } return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:54:32 UTC 2024 - 3.9K bytes - Viewed (0) -
src/os/exec_unix.go
"time" ) const ( // Special values for Process.Pid. pidUnset = 0 pidReleased = -1 ) func (p *Process) wait() (ps *ProcessState, err error) { // Which type of Process do we have? switch p.mode { case modeHandle: // pidfd return p.pidfdWait() case modePID: // Regular PID return p.pidWait() default: panic("unreachable") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 4.1K bytes - Viewed (0) -
src/net/udpsock_posix.go
// license that can be found in the LICENSE file. //go:build unix || js || wasip1 || windows package net import ( "context" "net/netip" "syscall" ) func sockaddrToUDP(sa syscall.Sockaddr) Addr { switch sa := sa.(type) { case *syscall.SockaddrInet4: return &UDPAddr{IP: sa.Addr[0:], Port: sa.Port} case *syscall.SockaddrInet6: return &UDPAddr{IP: sa.Addr[0:], Port: sa.Port, Zone: zoneCache.name(int(sa.ZoneId))} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:54:32 UTC 2024 - 7.5K bytes - Viewed (0) -
src/go/types/labels.go
} // determine and validate target name := s.Label.Name switch s.Tok { case token.BREAK: // spec: "If there is a label, it must be that of an enclosing // "for", "switch", or "select" statement, and that is the one // whose execution terminates." valid := false if t := b.enclosingTarget(name); t != nil { switch t.Stmt.(type) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 7.2K bytes - Viewed (0)