Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for Identical (0.14 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/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)
  3. src/go/types/instantiate.go

    // previous instances with the same identity. As a special case, generic
    // *Signature origin types are only considered identical if they are pointer
    // equivalent, so that instantiating distinct (but possibly identical)
    // signatures will yield different instances. The use of a shared context does
    // not guarantee that identical instances are deduplicated in all cases.
    //
    // If validate is set, Instantiate verifies that the number of type arguments
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  4. src/go/types/operand.go

    	if x.mode == invalid || !isValid(T) {
    		return true, 0 // avoid spurious errors
    	}
    
    	origT := T
    	V := Unalias(x.typ)
    	T = Unalias(T)
    
    	// x's type is identical to T
    	if Identical(V, T) {
    		return true, 0
    	}
    
    	Vu := under(V)
    	Tu := under(T)
    	Vp, _ := V.(*TypeParam)
    	Tp, _ := T.(*TypeParam)
    
    	// x is an untyped value representable by a value of type T.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/instantiate.go

    // previous instances with the same identity. As a special case, generic
    // *Signature origin types are only considered identical if they are pointer
    // equivalent, so that instantiating distinct (but possibly identical)
    // signatures will yield different instances. The use of a shared context does
    // not guarantee that identical instances are deduplicated in all cases.
    //
    // If validate is set, Instantiate verifies that the number of type arguments
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/CrossBuildScriptCachingIntegrationSpec.groovy

            hasScript(":module1", scripts)
            eachScriptIsUnique(scripts)
            getCompileBuildFileOperationsCount() == 4 // classpath + body for settings and for the 2 identical scripts
        }
    
        @ToBeFixedForConfigurationCache(because = "test expect script evaluation")
        def "identical build files are compiled once for distinct invocations"() {
            given:
            root {
                core {
                    'core.gradle'(this.simpleBuild())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  7. src/go/types/unify.go

    // type parameter and its core type.
    // If two types are not structurally equivalent, they cannot be Go
    // identical types. On the other hand, if they are structurally
    // equivalent, they may be Go identical or at least assignable, or
    // they may be in the type set of a constraint.
    // Whether they indeed are identical or assignable is determined
    // upon instantiation and function argument passing.
    
    package types
    
    import (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/unify.go

    // type parameter and its core type.
    // If two types are not structurally equivalent, they cannot be Go
    // identical types. On the other hand, if they are structurally
    // equivalent, they may be Go identical or at least assignable, or
    // they may be in the type set of a constraint.
    // Whether they indeed are identical or assignable is determined
    // upon instantiation and function argument passing.
    
    package types2
    
    import (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/operand.go

    	if x.mode == invalid || !isValid(T) {
    		return true, 0 // avoid spurious errors
    	}
    
    	origT := T
    	V := Unalias(x.typ)
    	T = Unalias(T)
    
    	// x's type is identical to T
    	if Identical(V, T) {
    		return true, 0
    	}
    
    	Vu := under(V)
    	Tu := under(T)
    	Vp, _ := V.(*TypeParam)
    	Tp, _ := T.(*TypeParam)
    
    	// x is an untyped value representable by a value of type T.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. src/go/types/builtins.go

    				// x and y should be invalid now, but be conservative
    				// and check below
    			}
    		}
    		if x.mode == invalid || y.mode == invalid {
    			return
    		}
    
    		// both argument types must be identical
    		if !Identical(x.typ, y.typ) {
    			check.errorf(x, InvalidComplex, invalidOp+"%v (mismatched types %s and %s)", call, x.typ, y.typ)
    			return
    		}
    
    		// the argument types must be of floating-point type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
Back to top