Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,907 for IsSwitch (0.2 sec)

  1. 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)
  2. 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)
  3. src/internal/platform/supported.go

    		return false // platform unrecognized
    	}
    
    	platform := goos + "/" + goarch
    	switch buildmode {
    	case "archive":
    		return true
    
    	case "c-archive":
    		switch goos {
    		case "aix", "darwin", "ios", "windows":
    			return true
    		case "linux":
    			switch goarch {
    			case "386", "amd64", "arm", "armbe", "arm64", "arm64be", "loong64", "ppc64le", "riscv64", "s390x":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:50:22 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/jit/deadness_analysis_test.cc

    }
    
    TEST(DeadnessAnalysisTest, AndOfOr) {
      Scope root = Scope::NewRootScope().ExitOnError();
    
      ops::Switch sw_0 = CreateSwitch(root, "0");
      ops::Switch sw_1 = CreateSwitch(root, "1");
      ops::Switch sw_2 = CreateSwitch(root, "2");
      ops::Switch sw_3 = CreateSwitch(root, "3");
    
      ops::Merge m0(root.WithOpName("m0"), {sw_0.output_false, sw_1.output_false});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unmarshal/unmarshal.go

    		}
    
    		t := pass.TypesInfo.Types[call.Args[argidx]].Type
    		switch t.Underlying().(type) {
    		case *types.Pointer, *types.Interface, *types.TypeParam:
    			return
    		}
    
    		switch argidx {
    		case 0:
    			pass.Reportf(call.Lparen, "call of %s passes non-pointer", fn.Name())
    		case 1:
    			pass.Reportf(call.Lparen, "call of %s passes non-pointer as second argument", fn.Name())
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/internal/buildcfg/cfg.go

    		return minor <= g_minor+5
    	} else {
    		return false
    	}
    }
    
    func gomips() string {
    	switch v := envOr("GOMIPS", defaultGOMIPS); v {
    	case "hardfloat", "softfloat":
    		return v
    	}
    	Error = fmt.Errorf("invalid GOMIPS: must be hardfloat, softfloat")
    	return defaultGOMIPS
    }
    
    func gomips64() string {
    	switch v := envOr("GOMIPS64", defaultGOMIPS64); v {
    	case "hardfloat", "softfloat":
    		return v
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. 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)
Back to top