- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 272 for identical (0.15 sec)
-
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/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/cmd/compile/internal/types2/context_test.go
t.Error("bad") } // unaryP is not identical to nullaryP, so we should not get inst when // instantiated with identical type arguments. if got := ctxt.lookup("", unaryP, []Type{Typ[Int]}); got != nil { t.Error("bad") } // nullaryQ is identical to nullaryP, so we *should* get inst when // instantiated with identical type arguments. if got := ctxt.lookup("", nullaryQ, []Type{Typ[Int]}); got != inst {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 17 04:32:02 UTC 2021 - 2.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) -
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) -
src/cmd/go/testdata/script/build_trimpath.txt
stdout 'binary contains module root: false' stdout 'binary contains an empty GOROOT' go mod edit -droprequire rsc.io/fortune # Two binaries built from identical packages in different directories # should be identical. cd $WORK/b/src/paths go build -trimpath -o $WORK/paths-b.exe cmp -q $WORK/paths-a.exe $WORK/paths-b.exe # Same sequence of tests but with overlays.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 4.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/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.7K bytes - Viewed (0)