- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 502 for Assignment (0.28 sec)
-
test/escape2n.go
b.buf1 = b.arrPtr[1:2:3] // ERROR "\(\*Buffer\).arrayPtr ignoring self-assignment in b.buf1 = b.arrPtr\[1:2:3\]$" } func (b *Buffer) baz() { // ERROR "b does not escape$" b.str1 = b.str1[1:2] // ERROR "\(\*Buffer\).baz ignoring self-assignment in b.str1 = b.str1\[1:2\]$" b.str1 = b.str2[1:2] // ERROR "\(\*Buffer\).baz ignoring self-assignment in b.str1 = b.str2\[1:2\]$" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 35.1K 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) -
src/cmd/compile/internal/types2/call.go
} else { check.versionErrorf(instErrPos, go1_21, "implicitly instantiated function in assignment") } } gsig := NewSignatureType(nil, nil, nil, sig.params, sig.results, sig.variadic) params = []*Var{NewVar(x.Pos(), check.pkg, "", gsig)} // The type of the argument operand is tsig, which is the type of the LHS in an assignment
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 31.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/assign/assign.go
} le := analysisutil.Format(pass.Fset, lhs) re := analysisutil.Format(pass.Fset, rhs) if le == re { pass.Report(analysis.Diagnostic{ Pos: stmt.Pos(), Message: fmt.Sprintf("self-assignment of %s to %s", re, le), SuggestedFixes: []analysis.SuggestedFix{ {Message: "Remove", TextEdits: []analysis.TextEdit{ {Pos: stmt.Pos(), End: stmt.End(), NewText: []byte{}}, }}, }, })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 2.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go
InvalidConstType /* decls > var (+ other variable assignment codes) */ // UntypedNilUse occurs when the predeclared (untyped) value nil is used to // initialize a variable declared without an explicit type. // // Example: // var x = nil UntypedNilUse // WrongAssignCount occurs when the number of values on the right-hand side // of an assignment or initialization expression does not match the number
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 34K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/policy.go
import ( "k8s.io/api/core/v1" "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager/state" "k8s.io/kubernetes/pkg/kubelet/cm/topologymanager" "k8s.io/utils/cpuset" ) // Policy implements logic for pod container to CPU assignment. type Policy interface { Name() string Start(s state.State) error // Allocate call is idempotent Allocate(s state.State, pod *v1.Pod, container *v1.Container) error // RemoveContainer call is idempotent
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 03 16:26:09 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/TypeCompatibilityModelProjectionSupport.java
if (type.getRawClass().getSuperclass() == null && type.getRawClass().getInterfaces().length == 0) { return type.toString(); } return type + " (or assignment compatible type thereof)"; } @Override public String toString() { return getClass().getSimpleName() + "[" + type + "]"; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 12:51:08 UTC 2024 - 3.1K bytes - Viewed (0) -
test/interface/explicit.go
// neither of these can work, // because i has an extra method // that t does not, so i cannot contain a t. i = t // ERROR "incompatible|missing method M" t = i // ERROR "incompatible|assignment$" i = i2 // ok i2 = i // ERROR "incompatible|missing method N" i = I(i2) // ok i2 = I2(i) // ERROR "invalid|missing N method|cannot convert" e = E(t) // ok
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 24 17:04:15 UTC 2022 - 2K bytes - Viewed (0) -
pkg/kubelet/cm/memorymanager/policy_static_test.go
} if err != nil { return } assignments := s.GetMemoryAssignments() if !areContainerMemoryAssignmentsEqual(t, assignments, testCase.expectedAssignments) { t.Fatalf("Actual assignments: %v is different from the expected one: %v", assignments, testCase.expectedAssignments) } machineState := s.GetMachineState()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Sep 17 05:49:15 UTC 2023 - 100.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ScalarTypesInManagedModelIntegrationTest.groovy
[dsl : """${type.canonicalName} get${propName.capitalize()}() void set${propName.capitalize()}(${type.canonicalName} value) """, assignment: "p.$propName=$value", check : "assert p.$propName == $value"] } buildScript """ import org.gradle.api.artifacts.Configuration.State @Managed
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 27.1K bytes - Viewed (0)