Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for updateDead (0.12 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/shift/dead.go

    package shift
    
    // Simplified dead code detector.
    // Used for skipping shift checks on unreachable arch-specific code.
    
    import (
    	"go/ast"
    	"go/constant"
    	"go/types"
    )
    
    // updateDead puts unreachable "if" and "case" nodes into dead.
    func updateDead(info *types.Info, dead map[ast.Node]bool, node ast.Node) {
    	if dead[node] {
    		// The node is already marked as dead.
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 06 18:23:38 UTC 2018
    - 2.2K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/shift/shift.go

    	dead := make(map[ast.Node]bool)
    	nodeFilter := []ast.Node{
    		(*ast.IfStmt)(nil),
    		(*ast.SwitchStmt)(nil),
    	}
    	inspect.Preorder(nodeFilter, func(n ast.Node) {
    		// TODO(adonovan): move updateDead into this file.
    		updateDead(pass.TypesInfo, dead, n)
    	})
    
    	nodeFilter = []ast.Node{
    		(*ast.AssignStmt)(nil),
    		(*ast.BinaryExpr)(nil),
    	}
    	inspect.Preorder(nodeFilter, func(node ast.Node) {
    		if dead[node] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. src/runtime/time.go

    	return (*hchan)(efaceOf(&t.arg).data)
    }
    
    // updateHeap updates t as directed by t.state, updating t.state
    // and returning a bool indicating whether the state (and ts.heap[0].when) changed.
    // The caller must hold t's lock, or the world can be stopped instead.
    // The timer set t.ts must be non-nil and locked, t must be t.ts.heap[0], and updateHeap
    // takes care of moving t within the timers heap to preserve the heap invariants.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 14:36:24 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  4. operator/pkg/patch/patch_test.go

            - --validation-webhook-config-file
            name: galley
            ports:
            - containerPort: 443
            - containerPort: 15014
            - containerPort: 9901
    `,
    		},
    		{
    			desc:  "UpdateLeaf",
    			path:  `spec.template.spec.containers.[name:galley].ports.[containerPort:15014].containerPort`,
    			value: `22222`,
    			want: `
    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: istio-citadel
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Nov 29 08:32:11 UTC 2022
    - 10.3K bytes
    - Viewed (0)
Back to top