Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 631 for Identical (0.21 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top