Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 190 for assignOp (0.18 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/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)
  4. 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)
  5. 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)
  6. src/internal/reflectlite/value.go

    func ValueOf(i any) Value {
    	if i == nil {
    		return Value{}
    	}
    	return unpackEface(i)
    }
    
    // assignTo returns a value v that can be assigned directly to typ.
    // It panics if v is not assignable to typ.
    // For a conversion to an interface type, target is a suggested scratch space to use.
    func (v Value) assignTo(context string, dst *abi.Type, target unsafe.Pointer) Value {
    	// if v.flag&flagMethod != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/rangefunc/rewrite.go

    	return n
    }
    
    // setPos walks the top structure of x that has no position assigned
    // and assigns it all to have position pos.
    // When setPos encounters a syntax node with a position assigned,
    // setPos does not look inside that node.
    // setPos only needs to handle syntax we create in this package;
    // all other syntax should have positions assigned already.
    func setPos(x syntax.Node, pos syntax.Pos) {
    	if x == nil {
    		return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  8. src/crypto/internal/bigmod/nat.go

    		x.limbs = make([]uint, n)
    		return x
    	}
    	clear(x.limbs)
    	x.limbs = x.limbs[:n]
    	return x
    }
    
    // set assigns x = y, optionally resizing x to the appropriate size.
    func (x *Nat) set(y *Nat) *Nat {
    	x.reset(len(y.limbs))
    	copy(x.limbs, y.limbs)
    	return x
    }
    
    // setBig assigns x = n, optionally resizing n to the appropriate size.
    //
    // The announced length of x is set based on the actual bit size of the input,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 24K bytes
    - Viewed (0)
  9. chainable_api.go

    	tx.Statement.attrs = attrs
    	return
    }
    
    // Assign provide attributes used in [FirstOrCreate] or [FirstOrInit]
    //
    // Assign adds attributes even if the record is found. If using FirstOrCreate, this means that
    // records will be updated even if they are found.
    //
    //	// assign an email regardless of if the record is not found
    //	db.Where(User{Name: "non_existing"}).Assign(User{Email: "******@****.***"}).FirstOrInit(&user)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 09:47:34 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  10. src/go/types/decl.go

    	// yet.
    	// TODO(gri) Need to systematically review all uses of type parameter
    	//           constraints to make sure we don't rely on them if they
    	//           are not properly set yet.
    	for _, name := range names {
    		tname := NewTypeName(name.Pos(), check.pkg, name.Name, nil)
    		tpar := check.newTypeParam(tname, Typ[Invalid]) // assigns type to tpar as a side-effect
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
Back to top