- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 482 for Identical (0.22 sec)
-
src/go/types/predicates.go
} case *Map: // Two map types are identical if they have identical key and value types. if y, ok := y.(*Map); ok { return c.identical(x.key, y.key, p) && c.identical(x.elem, y.elem, p) } case *Chan: // Two channel types are identical if they have identical value types // and the same direction. if y, ok := y.(*Chan); ok { return x.dir == y.dir && c.identical(x.elem, y.elem, p) } case *Named:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 17.6K bytes - Viewed (0) -
src/cmd/compile/internal/types/identity.go
func Identical(t1, t2 *Type) bool { return identical(t1, t2, 0, nil) } // IdenticalIgnoreTags is like Identical, but it ignores struct tags // for struct identity. func IdenticalIgnoreTags(t1, t2 *Type) bool { return identical(t1, t2, identIgnoreTags, nil) } // IdenticalStrict is like Identical, but matches types exactly, without the // exception for shapes. func IdenticalStrict(t1, t2 *Type) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 20:57:01 UTC 2023 - 4.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/predicates.go
} case *Map: // Two map types are identical if they have identical key and value types. if y, ok := y.(*Map); ok { return c.identical(x.key, y.key, p) && c.identical(x.elem, y.elem, p) } case *Chan: // Two channel types are identical if they have identical value types // and the same direction. if y, ok := y.(*Chan); ok { return x.dir == y.dir && c.identical(x.elem, y.elem, p) } case *Named:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 17.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typeparams/coretype.go
return nil // no core type. } U = terms[0].Type().Underlying() var identical int // i in [0,identical) => Identical(U, terms[i].Type().Underlying()) for identical = 1; identical < len(terms); identical++ { if !types.Identical(U, terms[identical].Type().Underlying()) { break } } if identical == len(terms) { // https://go.dev/ref/spec#Core_types
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 5.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api_predicates.go
return (*Checker)(nil).implements(nopos, V, T, true, nil) } // Identical reports whether x and y are identical types. // Receivers of [Signature] types are ignored. // // Predicates such as [Identical], [Implements], and // [Satisfies] assume that both operands belong to a // consistent collection of symbols ([Object] values). // For example, two [Named] types can be identical only if their // [Named.Obj] methods return the same [TypeName] symbol.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 16:36:08 UTC 2024 - 3.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/context.go
// // Contexts serve two purposes: // - reduce the duplication of identical instances // - short-circuit instantiation cycles // // For the latter purpose, we must always have a context during instantiation, // whether or not it is supplied by the user. For both purposes, it must be the // case that hashing a pointer-identical type produces consistent results // (somewhat obviously). //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 17:29:21 UTC 2023 - 4.3K bytes - Viewed (0) -
src/go/types/context.go
// // Contexts serve two purposes: // - reduce the duplication of identical instances // - short-circuit instantiation cycles // // For the latter purpose, we must always have a context during instantiation, // whether or not it is supplied by the user. For both purposes, it must be the // case that hashing a pointer-identical type produces consistent results // (somewhat obviously). //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 4.4K bytes - Viewed (0) -
src/go/types/api_predicates.go
return (*Checker)(nil).implements(nopos, V, T, true, nil) } // Identical reports whether x and y are identical types. // Receivers of [Signature] types are ignored. // // Predicates such as [Identical], [Implements], and // [Satisfies] assume that both operands belong to a // consistent collection of symbols ([Object] values). // For example, two [Named] types can be identical only if their // [Named.Obj] methods return the same [TypeName] symbol.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 16:36:08 UTC 2024 - 3.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/ExclusiveVariantsIntegrationTest.groovy
expect: fails("resolveSample") failure.assertHasDocumentedCause("Consumable configurations with identical capabilities within a project (other than the default configuration) must have unique attributes, but configuration ':sample1' and [configuration ':sample2'] contain identical attribute sets. " + "Consider adding an additional attribute to one of the configurations to disambiguate them. " +
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 05 20:34:52 UTC 2024 - 16.7K bytes - Viewed (0) -
src/go/types/under.go
} return su } return nil } // If x and y are identical, match returns x. // If x and y are identical channels but for their direction // and one of them is unrestricted, match returns the channel // with the restricted direction. // In all other cases, match returns nil. func match(x, y Type) Type { // Common case: we don't have channels. if Identical(x, y) { return x }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 22:34:27 UTC 2024 - 2.8K bytes - Viewed (0)