Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 662 for assignment1 (0.14 sec)

  1. src/cmd/compile/internal/walk/complit.go

    		return false
    	}
    	if !isSimpleName(n.X) {
    		// not a special composite literal assignment
    		return false
    	}
    	x := n.X.(*ir.Name)
    	if !types.Identical(n.X.Type(), n.Y.Type()) {
    		// not a special composite literal assignment
    		return false
    	}
    	if x.Addrtaken() {
    		// If x is address-taken, the RHS may (implicitly) uses LHS.
    		// Not safe to do a special composite literal assignment
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:03:54 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/assign/assign.go

    // Copyright 2013 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package assign
    
    // TODO(adonovan): check also for assignments to struct fields inside
    // methods that are on T instead of *T.
    
    import (
    	_ "embed"
    	"fmt"
    	"go/ast"
    	"go/token"
    	"go/types"
    	"reflect"
    
    	"golang.org/x/tools/go/analysis"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/objectGraph/reflectObject.kt

            val referenceResolution = PropertyReferenceResolution(objectOrigin, it)
            when (val assignment = context.resolveAssignment(referenceResolution)) {
                is Assigned -> it to PropertyValueReflection(reflect(assignment.objectOrigin, context), assignment.assignmentMethod)
                else -> if (it.hasDefaultValue) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:46 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. test/reorder.go

    // run
    
    // Copyright 2011 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test reordering of assignments.
    
    package main
    
    import "fmt"
    
    func main() {
    	p1()
    	p2()
    	p3()
    	p4()
    	p5()
    	p6()
    	p7()
    	p8()
    	p9()
    	p10()
    	p11()
    }
    
    var gx []int
    
    func f(i int) int {
    	return gx[i]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jan 16 23:19:26 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/assign.go

    		// Check for reasons why we may need to compute later expressions
    		// before this assignment happens.
    
    		if name == nil {
    			// Not a direct assignment to a declared variable.
    			// Conservatively assume any memory access might alias.
    			memWrite = true
    			continue
    		}
    
    		if name.Class == ir.PPARAMOUT && ir.CurFunc.HasDefer() {
    			// Assignments to a result parameter in a function with defers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/parallel_device/parallel_device_testlib.h

      // buffer.
      TFE_TensorHandle* handle_;
      // The dtype of the variable's buffer (input dtype for assignments, output
      // dtype of read operations).
      TF_DataType type_;
    };
    
    // Creates a TFE_TensorHandle with value `v`.
    TensorHandlePtr FloatTensorHandle(float v, TF_Status* status);
    
    // Creates a rank-one TFE_TensorHandle with value `v`.
    TensorHandlePtr VectorFloatTensorHandle(const std::vector<float>& v,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 09 01:12:35 UTC 2021
    - 6.9K bytes
    - Viewed (0)
  7. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/ResolutionTracer.kt

            }
            return result
        }
    
        override fun doResolveAssignment(context: AnalysisContext, assignment: Assignment): AssignmentRecord? {
            val result = statementResolver.doResolveAssignment(context, assignment)
            if (result != null) {
                assignmentResolutions[assignment] = result
            }
            return result
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 12:28:39 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. test/fixedbugs/issue48558.go

    package p
    
    func _(a, b, c int) {
    	_ = a
    	_ = a, b    // ERROR "assignment mismatch: 1 variable but 2 values"
    	_ = a, b, c // ERROR "assignment mismatch: 1 variable but 3 values"
    
    	_, _ = a // ERROR "assignment mismatch: 2 variables but 1 value"
    	_, _ = a, b
    	_, _ = a, b, c // ERROR "assignment mismatch: 2 variables but 3 values"
    
    	_, _, _ = a    // ERROR "assignment mismatch: 3 variables but 1 value"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 28 18:13:13 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. test/chan/select5.go

    	}
    	{{end}}
    	x = <-c
    	if x != n {
    		die(x)
    	}
    	n++
    `)
    
    var nonblock = parse("nonblock", `
    	x = n
    	{{/*  Test various combinations of non-blocking operations. */}}
    	{{/*  Receive assignments must not edit or even attempt to compute the address of the lhs. */}}
    	select {
    	{{if .MaybeDefault}}
    	default:
    	{{end}}
    	{{if .Maybe}}
    	case dummy <- 1:
    		panic("dummy <- 1")
    	{{end}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 10K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/cpumanager/policy_static.go

    func getAssignedCPUsOfSiblings(s state.State, podUID string, containerName string) cpuset.CPUSet {
    	assignments := s.GetCPUAssignments()
    	cset := cpuset.New()
    	for name, cpus := range assignments[podUID] {
    		if containerName == name {
    			continue
    		}
    		cset = cset.Union(cpus)
    	}
    	return cset
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 28.8K bytes
    - Viewed (0)
Back to top