Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/go/types/under.go

    // Source: ../../cmd/compile/internal/types2/under.go
    
    // Copyright 2011 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package types
    
    // under returns the true expanded underlying type.
    // If it doesn't exist, the result is Typ[Invalid].
    // under must only be called when a type is known
    // to be fully set up.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 22:34:27 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/under.go

    // license that can be found in the LICENSE file.
    
    package types2
    
    // under returns the true expanded underlying type.
    // If it doesn't exist, the result is Typ[Invalid].
    // under must only be called when a type is known
    // to be fully set up.
    func under(t Type) Type {
    	if t := asNamed(t); t != nil {
    		return t.under()
    	}
    	return t.Underlying()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 22:34:27 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/typeparam.go

    	return t.iface().typeSet().is(f)
    }
    
    // underIs calls f with the underlying types of the specific type terms
    // of t's constraint and reports whether all calls to f returned true.
    // If there are no specific terms, underIs returns the result of f(nil).
    func (t *TypeParam) underIs(f func(Type) bool) bool {
    	return t.iface().typeSet().underIs(f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. src/go/types/typeparam.go

    	return t.iface().typeSet().is(f)
    }
    
    // underIs calls f with the underlying types of the specific type terms
    // of t's constraint and reports whether all calls to f returned true.
    // If there are no specific terms, underIs returns the result of f(nil).
    func (t *TypeParam) underIs(f func(Type) bool) bool {
    	return t.iface().typeSet().underIs(f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. src/go/types/expr.go

    	token.SHL: "shift",
    }
    
    // If typ is a type parameter, underIs returns the result of typ.underIs(f).
    // Otherwise, underIs returns the result of f(under(typ)).
    func underIs(typ Type, f func(Type) bool) bool {
    	typ = Unalias(typ)
    	if tpar, _ := typ.(*TypeParam); tpar != nil {
    		return tpar.underIs(f)
    	}
    	return f(under(typ))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/compile/internal/types2/expr.go

    	syntax.Shl: "shift",
    }
    
    // If typ is a type parameter, underIs returns the result of typ.underIs(f).
    // Otherwise, underIs returns the result of f(under(typ)).
    func underIs(typ Type, f func(Type) bool) bool {
    	typ = Unalias(typ)
    	if tpar, _ := typ.(*TypeParam); tpar != nil {
    		return tpar.underIs(f)
    	}
    	return f(under(typ))
    }
    
    func (check *Checker) unary(x *operand, e *syntax.Operation) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
Back to top