Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,066 for underIs (0.17 sec)

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

    		assert(t.typ != nil)
    		if !f(t) {
    			return false
    		}
    	}
    	return true
    }
    
    // underIs calls f with the underlying types of the specific type terms
    // of s and reports whether all calls to f returned true. If there are
    // no specific terms, underIs returns the result of f(nil).
    func (s *_TypeSet) underIs(f func(Type) bool) bool {
    	if !s.hasTerms() {
    		return f(nil)
    	}
    	for _, t := range s.terms {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. src/go/types/typeset.go

    		assert(t.typ != nil)
    		if !f(t) {
    			return false
    		}
    	}
    	return true
    }
    
    // underIs calls f with the underlying types of the specific type terms
    // of s and reports whether all calls to f returned true. If there are
    // no specific terms, underIs returns the result of f(nil).
    func (s *_TypeSet) underIs(f func(Type) bool) bool {
    	if !s.hasTerms() {
    		return f(nil)
    	}
    	for _, t := range s.terms {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  3. src/go/types/builtins.go

    		case *Slice, *Chan:
    			mode = value
    
    		case *Map:
    			if id == _Len {
    				mode = value
    			}
    
    		case *Interface:
    			if !isTypeParam(x.typ) {
    				break
    			}
    			if t.typeSet().underIs(func(t Type) bool {
    				switch t := arrayPtrDeref(t).(type) {
    				case *Basic:
    					if isString(t) && id == _Len {
    						return true
    					}
    				case *Array, *Slice, *Chan:
    					return true
    				case *Map:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/builtins.go

    		case *Slice, *Chan:
    			mode = value
    
    		case *Map:
    			if id == _Len {
    				mode = value
    			}
    
    		case *Interface:
    			if !isTypeParam(x.typ) {
    				break
    			}
    			if t.typeSet().underIs(func(t Type) bool {
    				switch t := arrayPtrDeref(t).(type) {
    				case *Basic:
    					if isString(t) && id == _Len {
    						return true
    					}
    				case *Array, *Slice, *Chan:
    					return true
    				case *Map:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/predicates.go

    }
    
    // hasNil reports whether type t includes the nil value.
    func hasNil(t Type) bool {
    	switch u := under(t).(type) {
    	case *Basic:
    		return u.kind == UnsafePointer
    	case *Slice, *Pointer, *Signature, *Map, *Chan:
    		return true
    	case *Interface:
    		return !isTypeParam(t) || u.typeSet().underIs(func(u Type) bool {
    			return u != nil && hasNil(u)
    		})
    	}
    	return false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  6. src/go/types/predicates.go

    }
    
    // hasNil reports whether type t includes the nil value.
    func hasNil(t Type) bool {
    	switch u := under(t).(type) {
    	case *Basic:
    		return u.kind == UnsafePointer
    	case *Slice, *Pointer, *Signature, *Map, *Chan:
    		return true
    	case *Interface:
    		return !isTypeParam(t) || u.typeSet().underIs(func(u Type) bool {
    			return u != nil && hasNil(u)
    		})
    	}
    	return false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. apache-maven/src/main/appended-resources/licenses/EPL-2.0.txt

         in the Source Code under section 3.2; and
    
         iv) requires any subsequent distribution of the Program by any
         party to be under a license that satisfies the requirements
         of this section 3.
    
    3.2 When the Program is Distributed as Source Code:
    
      a) it must be made available under this Agreement, or if the
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 04 06:45:16 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  8. licenses/github.com/hashicorp/go-version/LICENSE

         b. You may distribute such Executable Form under the terms of this License,
            or sublicense it under different terms, provided that the license for
            the Executable Form does not attempt to limit or alter the recipients’
            rights in the Source Code Form under this License.
    
    3.3. Distribution of a Larger Work
    
         You may create and distribute a Larger Work under terms of Your choice,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 15:59:40 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  9. apache-maven/src/main/appended-resources/licenses/CDDL+GPLv2-with-classpath-exception.txt

        Covered Software available under the terms of the version of the
        License under which You originally received the Covered Software. If
        the Initial Developer includes a notice in the Original Software
        prohibiting it from being distributed or otherwise made available
        under any subsequent version of the License, You must distribute and
        make the Covered Software available under the terms of the version
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri May 17 19:14:22 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    	// TODO(adonovan): think about generics, and also generic aliases.
    	under := aliases.Unalias(typ)
    	// Don't call Underlying unconditionally: although it removes
    	// Named and Alias, it also removes TypeParam.
    	if n, ok := under.(*types.Named); ok {
    		under = n.Underlying()
    	}
    	switch under := under.(type) {
    	case *types.Basic:
    		switch {
    		case under.Info()&types.IsNumeric != 0:
    			return &ast.BasicLit{Kind: token.INT, Value: "0"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top