Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 314 for assignOp (0.22 sec)

  1. common/config/.golangci.yml

        # Which checks should be enabled in addition to default checks. Since we don't want
        # all of the default checks, we do the disable-all first.
        enabled-checks:
          - appendCombine
          - argOrder
          - assignOp
          - badCond
          - boolExprSimplify
          - builtinShadow
          - captLocal
          - caseOrder
          - codegenComment
          - commentedOutCode
          - commentedOutImport
          - defaultCaseOrder
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 20:03:06 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  2. hack/golangci.yaml

        # over time.
    
        # https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507008918
        - linters:
            - gocritic
          text: "assignOp:"
    
        # https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507016854
        - linters:
            - gosimple
          text: "S1002: should omit comparison to bool constant"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 12:10:09 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/expr.go

    		// in that case, check comparability of the concrete type.
    		// The conversion allocates, so only do it if the concrete type is huge.
    		converted := false
    		if r.Type().Kind() != types.TBLANK {
    			aop, _ = assignOp(l.Type(), r.Type())
    			if aop != ir.OXXX {
    				if r.Type().IsInterface() && !l.Type().IsInterface() && !types.IsComparable(l.Type()) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  4. src/go/types/stmt.go

    	check.recordScope(node, scope)
    	check.scope = scope
    }
    
    func (check *Checker) closeScope() {
    	check.scope = check.scope.Parent()
    }
    
    func assignOp(op token.Token) token.Token {
    	// token_test.go verifies the token ordering this function relies on
    	if token.ADD_ASSIGN <= op && op <= token.AND_NOT_ASSIGN {
    		return op + (token.ADD - token.ADD_ASSIGN)
    	}
    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. src/cmd/compile/internal/typecheck/typecheck.go

    		base.Errorf("cannot assign to %v (declared const)", n)
    	default:
    		base.Errorf("cannot assign to %v", n)
    	}
    }
    
    func checkassignto(src *types.Type, dst ir.Node) {
    	// TODO(mdempsky): Handle all untyped types correctly.
    	if src == types.UntypedBool && dst.Type().IsBoolean() {
    		return
    	}
    
    	if op, why := assignOp(src, dst.Type()); op == ir.OXXX {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/assign.go

    	}
    	return nn
    }
    
    // check assign expression list to
    // an expression list. called in
    //
    //	expr-list = expr-list
    func ascompatee(op ir.Op, nl, nr []ir.Node) []ir.Node {
    	// cannot happen: should have been rejected during type checking
    	if len(nl) != len(nr) {
    		base.Fatalf("assignment operands mismatch: %+v / %+v", ir.Nodes(nl), ir.Nodes(nr))
    	}
    
    	var assigned ir.NameSet
    	var memWrite, deferResultWrite bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

        }
        info.execute_output_index = execute_output.index();
        info.assign = assign_op;
        if (!last_assign || last_assign->isBeforeInBlock(assign_op)) {
          last_assign = assign_op;
        }
        VLOG(2) << "Adding assign op to merge candidates: "
                << debugString(assign_op);
        all_assigns.insert(assign_op);
        output_merged[execute_output.index()] = true;
      }
    
      if (last_assign != nullptr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  8. src/reflect/abi.go

    		panic("unknown type kind")
    	}
    	panic("unhandled register assignment path")
    }
    
    // assignIntN assigns n values to registers, each "size" bytes large,
    // from the data at [offset, offset+n*size) in memory. Each value at
    // [offset+i*size, offset+(i+1)*size) for i < n is assigned to the
    // next n integer registers.
    //
    // Bit i in ptrMap indicates whether the i'th value is a pointer.
    // n must be <= 8.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:08:32 UTC 2024
    - 15K bytes
    - Viewed (0)
  9. pilot/pkg/config/kube/gateway/testdata/invalid.status.yaml.golden

      conditions:
      - lastTransitionTime: fake
        message: Resource accepted
        reason: Accepted
        status: "True"
        type: Accepted
      - lastTransitionTime: fake
        message: Resource programmed, assigned to service(s) istio-ingressgateway.istio-system.svc.domain.suffix:80
        reason: Programmed
        status: "True"
        type: Programmed
      listeners:
      - attachedRoutes: 4
        conditions:
        - lastTransitionTime: fake
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 07 20:48:23 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  10. src/go/types/assignments.go

    		// TODO(gri) do we need a new "generic" error code here?
    		check.errorf(x, IncompatibleAssign, "cannot assign %s to %s in %s", x, T, context)
    		x.mode = invalid
    		return
    	}
    
    	if isUntyped(x.typ) {
    		target := T
    		// spec: "If an untyped constant is assigned to a variable of interface
    		// type or the blank identifier, the constant is first converted to type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 16.4K bytes
    - Viewed (0)
Back to top