Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 49 for switches$ (0.25 sec)

  1. src/runtime/export_test.go

    		shrinkstack(gp)
    	})
    	// If our new stack contains frame pointers into the old stack, this will
    	// crash because the old stack has been poisoned.
    	FPCallers(make([]uintptr, 1024))
    }
    
    // BlockOnSystemStack switches to the system stack, prints "x\n" to
    // stderr, and blocks in a stack containing
    // "runtime.blockOnSystemStackInternal".
    func BlockOnSystemStack() {
    	systemstack(blockOnSystemStackInternal)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  2. src/go/types/expr.go

    			goto Error
    		}
    
    	case *ast.TypeAssertExpr:
    		check.expr(nil, x, e.X)
    		if x.mode == invalid {
    			goto Error
    		}
    		// x.(type) expressions are handled explicitly in type switches
    		if e.Type == nil {
    			// Don't use InvalidSyntaxTree because this can occur in the AST produced by
    			// go/parser.
    			check.error(e, BadTypeKeyword, "use of .(type) outside type switch")
    			goto Error
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  3. src/cmd/go/internal/work/exec.go

    		}
    	}
    
    	// Tell gcc not to include flags in object files, which defeats the
    	// point of -fdebug-prefix-map above.
    	if b.gccSupportsFlag(compiler, "-gno-record-gcc-switches") {
    		a = append(a, "-gno-record-gcc-switches")
    	}
    
    	// On OS X, some of the compilers behave as if -fno-common
    	// is always set, and the Mach-O linker in 6l/8l assumes this.
    	// See https://golang.org/issue/3253.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/expr.go

    		if !isValid(T) {
    			goto Error
    		}
    		check.typeAssertion(e, x, T, false)
    		x.mode = commaok
    		x.typ = T
    
    	case *syntax.TypeSwitchGuard:
    		// x.(type) expressions are handled explicitly in type switches
    		check.error(e, InvalidSyntaxTree, "use of .(type) outside type switch")
    		check.use(e.X)
    		goto Error
    
    	case *syntax.CallExpr:
    		return check.callExpr(x, e)
    
    	case *syntax.ListExpr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  5. src/runtime/traceback.go

    		// The function we are in does a write to SP that we don't know
    		// how to encode in the spdelta table. Examples include context
    		// switch routines like runtime.gogo but also any code that switches
    		// to the g0 stack to run host C code.
    		// We can't reliably unwind the SP (we might not even be on
    		// the stack we think we are), so stop the traceback here.
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modload/init.go

    					// Report this more specific error, unless we are a command like 'go work use'
    					// or 'go work sync', which will fix the problem after the caller sees the TooNewError
    					// and switches to a newer toolchain.
    					err = errWorkTooOld(gomod, workFile, tooNew.GoVersion)
    				} else {
    					err = fmt.Errorf("cannot load module %s listed in go.work file: %w",
    						base.ShortPath(filepath.Dir(gomod)), err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  7. doc/go_spec.html

    inside the "switch" to determine which branch
    to execute.
    </p>
    
    <pre class="ebnf">
    SwitchStmt = ExprSwitchStmt | TypeSwitchStmt .
    </pre>
    
    <p>
    There are two forms: expression switches and type switches.
    In an expression switch, the cases contain expressions that are compared
    against the value of the switch expression.
    In a type switch, the cases contain types that are compared against the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (1)
  8. src/net/http/transport.go

    	// waiting for the server to approve.
    	// This time does not include the time to send the request header.
    	ExpectContinueTimeout time.Duration
    
    	// TLSNextProto specifies how the Transport switches to an
    	// alternate protocol (such as HTTP/2) after a TLS ALPN
    	// protocol negotiation. If Transport dials a TLS connection
    	// with a non-empty protocol name and TLSNextProto contains a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  9. src/internal/types/testdata/check/stmt0.go

    	}
    }
    
    func returns3() (_ int) {
    	return
    	{
    		var _ int // blank (_) identifiers never shadow since they are in no scope
    		return
    	}
    }
    
    func switches0() {
    	var x int
    
    	switch x {
    	}
    
    	switch x {
    	default:
    	default /* ERROR "multiple defaults" */ :
    	}
    
    	switch {
    	case 1  /* ERROR "cannot convert" */ :
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modcmd/tidy.go

    		VendorModulesInGOROOTSrc: true,
    		ResolveMissingImports:    true,
    		LoadTests:                true,
    		AllowErrors:              tidyE,
    		SilenceMissingStdImports: true,
    		Switcher:                 new(toolchain.Switcher),
    	}, "all")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top