- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 661 for AssignmentW (0.34 sec)
-
src/internal/types/testdata/check/stmt0.go
func assignments1() { b, i, f, c, s := false, 1, 1.0, 1i, "foo" b = i /* ERRORx `cannot use .* in assignment` */ i = f /* ERRORx `cannot use .* in assignment` */ f = c /* ERRORx `cannot use .* in assignment` */ c = s /* ERRORx `cannot use .* in assignment` */ s = b /* ERRORx `cannot use .* in assignment` */ v0, v1, v2 := 1 /* ERROR "assignment mismatch" */ , 2, 3, 4 _, _, _ = v0, v1, v2 b = true i += 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 19K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
pkg/kubelet/cm/memorymanager/policy_static.go
return false } if nodeState1.NumberOfAssignments != nodeState2.NumberOfAssignments { klog.ErrorS(nil, "Node states number of assignments are different", "assignment1", nodeState1.NumberOfAssignments, "assignment2", nodeState2.NumberOfAssignments) return false } if !areGroupsEqual(nodeState1.Cells, nodeState2.Cells) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Nov 12 07:34:55 UTC 2023 - 34K bytes - Viewed (0) -
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) -
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) -
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) -
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)