Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 389 for Identical (0.12 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top