Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for IdenticalIgnoreTags (0.47 sec)

  1. src/cmd/compile/internal/types2/api_predicates.go

    func Identical(x, y Type) bool {
    	var c comparer
    	return c.identical(x, y, nil)
    }
    
    // IdenticalIgnoreTags reports whether x and y are identical types if tags are ignored.
    // Receivers of [Signature] types are ignored.
    func IdenticalIgnoreTags(x, y Type) bool {
    	var c comparer
    	c.ignoreTags = true
    	return c.identical(x, y, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 16:36:08 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. src/go/types/api_predicates.go

    func Identical(x, y Type) bool {
    	var c comparer
    	return c.identical(x, y, nil)
    }
    
    // IdenticalIgnoreTags reports whether x and y are identical types if tags are ignored.
    // Receivers of [Signature] types are ignored.
    func IdenticalIgnoreTags(x, y Type) bool {
    	var c comparer
    	c.ignoreTags = true
    	return c.identical(x, y, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 16:36:08 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types/identity.go

    // (shape or not) if their underlying types are the same, or they are both pointers.
    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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 20:57:01 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  4. src/go/types/conversions.go

    	// and V and T are not type parameters"
    	if IdenticalIgnoreTags(Vu, Tu) && Vp == nil && Tp == nil {
    		return true
    	}
    
    	// "V and T are unnamed pointer types and their pointer base types
    	// have identical underlying types if tags are ignored
    	// and their pointer base types are not type parameters"
    	if V, ok := V.(*Pointer); ok {
    		if T, ok := T.(*Pointer); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/conversions.go

    	// and V and T are not type parameters"
    	if IdenticalIgnoreTags(Vu, Tu) && Vp == nil && Tp == nil {
    		return true
    	}
    
    	// "V and T are unnamed pointer types and their pointer base types
    	// have identical underlying types if tags are ignored
    	// and their pointer base types are not type parameters"
    	if V, ok := V.(*Pointer); ok {
    		if T, ok := T.(*Pointer); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top