Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 236 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/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/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)
  6. 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)
  7. 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)
  8. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go

    	case *types.Union:
    		return h.hashUnion(t)
    
    	case *types.Interface:
    		// Interfaces are identical if they have the same set of methods, with
    		// identical names and types, and they have the same set of type
    		// restrictions. See go/types.identical for more details.
    		var hash uint32 = 9103
    
    		// Hash methods.
    		for i, n := 0, t.NumMethods(); i < n; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. src/internal/abi/abi_generic.go

    	// IntArgRegs is the number of registers dedicated
    	// to passing integer argument values. Result registers are identical
    	// to argument registers, so this number is used for those too.
    	IntArgRegs = 0
    
    	// FloatArgRegs is the number of registers dedicated
    	// to passing floating-point argument values. Result registers are
    	// identical to argument registers, so this number is used for
    	// those too.
    	FloatArgRegs = 0
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:38:52 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/internal/buildevents/BuildExceptionReporterTest.groovy

    {info}> {normal}first failure
       {info}> {normal}ultimate cause
    {info}> {normal}There is 1 more failure with an identical cause.
    
    * Try:
    $STACKTRACE
    $INFO_OR_DEBUG
    $SCAN
    $GET_HELP
    """
        }
    
        def "multi-cause exceptions have branches with identical root causes and additional intermediate failures summarized properly"() {
            def ultimateCause = new RuntimeException("ultimate cause")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 11:33:46 UTC 2024
    - 18.3K bytes
    - Viewed (0)
Back to top