Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 150 for switches$ (0.36 sec)

  1. src/go/parser/resolver.go

    			ast.Walk(r, n.Init)
    		}
    		if n.Tag != nil {
    			// The scope below reproduces some unnecessary behavior of the parser,
    			// opening an extra scope in case this is a type switch. It's not needed
    			// for expression switches.
    			// TODO: remove this once we've matched the parser resolution exactly.
    			if n.Init != nil {
    				r.openScope(n.Tag.Pos())
    				defer r.closeScope()
    			}
    			ast.Walk(r, n.Tag)
    		}
    		if n.Body != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher.go

    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    	utilflowcontrol "k8s.io/apiserver/pkg/util/flowcontrol"
    	"k8s.io/klog/v2"
    )
    
    const (
    	// We have set a buffer in order to reduce times of context switches.
    	incomingBufSize = 100
    	outgoingBufSize = 100
    )
    
    // defaultWatcherMaxLimit is used to facilitate construction tests
    var defaultWatcherMaxLimit int64 = maxLimit
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 10:26:38 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  3. src/cmd/fix/typecheck.go

    // given. There is not enough information supplied to do
    // a full type check, but the type checker is expected to
    // apply information that can be derived from variable
    // declarations, function and method returns, and type switches
    // as far as it can, so that the caller can still tell the types
    // of expression relevant to a particular fix.
    //
    // TODO(rsc,gri): Replace with go/typechecker.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 22:02:42 UTC 2022
    - 20.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_jsonschema.go

    	// x-kubernetes-preserve-unknown-fields stops the API server
    	// decoding step from pruning fields which are not specified
    	// in the validation schema. This affects fields recursively,
    	// but switches back to normal pruning behaviour if nested
    	// properties or additionalProperties are specified in the schema.
    	// This can either be true or undefined. False is forbidden.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:21 UTC 2023
    - 24.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/types_jsonschema.go

    	// x-kubernetes-preserve-unknown-fields stops the API server
    	// decoding step from pruning fields which are not specified
    	// in the validation schema. This affects fields recursively,
    	// but switches back to normal pruning behaviour if nested
    	// properties or additionalProperties are specified in the schema.
    	// This can either be true or undefined. False is forbidden.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:21 UTC 2023
    - 24.7K bytes
    - Viewed (0)
  6. src/bufio/bufio.go

    	return NewReaderSize(rd, defaultBufSize)
    }
    
    // Size returns the size of the underlying buffer in bytes.
    func (b *Reader) Size() int { return len(b.buf) }
    
    // Reset discards any buffered data, resets all state, and switches
    // the buffered reader to read from r.
    // Calling Reset on the zero value of [Reader] initializes the internal buffer
    // to the default size.
    // Calling b.Reset(b) (that is, resetting a [Reader] to itself) does nothing.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 14:39:08 UTC 2023
    - 21.8K bytes
    - Viewed (0)
  7. src/go/types/unify.go

    	// (not recorded with the unifier).
    	// Ensure that if we have at least one type parameter, it is in x
    	// (the earlier swap checks for _recorded_ type parameters only).
    	// This ensures that the switch switches on the type parameter.
    	//
    	// TODO(gri) Factor out type parameter handling from the switch.
    	if isTypeParam(y) {
    		if traceInference {
    			u.tracef("%s ≡ %s\t// swap", y, x)
    		}
    		x, y = y, x
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/unify.go

    	// (not recorded with the unifier).
    	// Ensure that if we have at least one type parameter, it is in x
    	// (the earlier swap checks for _recorded_ type parameters only).
    	// This ensures that the switch switches on the type parameter.
    	//
    	// TODO(gri) Factor out type parameter handling from the switch.
    	if isTypeParam(y) {
    		if traceInference {
    			u.tracef("%s ≡ %s\t// swap", y, x)
    		}
    		x, y = y, x
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modload/load.go

    		fmt.Fprintf(os.Stderr, "go: %v\n", err)
    	} else if ld.Switcher != nil {
    		ld.Switcher.Error(err)
    	} else {
    		base.Error(err)
    	}
    }
    
    // switchIfErrors switches toolchains if a switch is needed.
    func (ld *loader) switchIfErrors(ctx context.Context) {
    	if ld.Switcher != nil {
    		ld.Switcher.Switch(ctx)
    	}
    }
    
    // exitIfErrors switches toolchains if a switch is needed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/link.go

    	WasmImportSym *LSym
    	WasmImport    *WasmImport
    
    	sehUnwindInfoSym *LSym
    }
    
    // JumpTable represents a table used for implementing multi-way
    // computed branching, used typically for implementing switches.
    // Sym is the table itself, and Targets is a list of target
    // instructions to go to for the computed branch index.
    type JumpTable struct {
    	Sym     *LSym
    	Targets []*Prog
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
Back to top