Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for IsAll (0.13 sec)

  1. src/go/types/typeset.go

    	comparable bool     // invariant: !comparable || terms.isAll()
    }
    
    // IsEmpty reports whether type set s is the empty set.
    func (s *_TypeSet) IsEmpty() bool { return s.terms.isEmpty() }
    
    // IsAll reports whether type set s is the set of all types (corresponding to the empty interface).
    func (s *_TypeSet) IsAll() bool { return s.IsMethodSet() && len(s.methods) == 0 }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/typeset.go

    	comparable bool     // invariant: !comparable || terms.isAll()
    }
    
    // IsEmpty reports whether type set s is the empty set.
    func (s *_TypeSet) IsEmpty() bool { return s.terms.isEmpty() }
    
    // IsAll reports whether type set s is the set of all types (corresponding to the empty interface).
    func (s *_TypeSet) IsAll() bool { return s.IsMethodSet() && len(s.methods) == 0 }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/typestring.go

    	first := true
    	for _, m := range s.methods {
    		if !first {
    			w.byte(';')
    		}
    		first = false
    		w.string(m.name)
    		w.signature(m.typ.(*Signature))
    	}
    	switch {
    	case s.terms.isAll():
    		// nothing to do
    	case s.terms.isEmpty():
    		w.string(s.terms.String())
    	default:
    		var termHashes []string
    		for _, term := range s.terms {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. src/go/types/typestring.go

    	first := true
    	for _, m := range s.methods {
    		if !first {
    			w.byte(';')
    		}
    		first = false
    		w.string(m.name)
    		w.signature(m.typ.(*Signature))
    	}
    	switch {
    	case s.terms.isAll():
    		// nothing to do
    	case s.terms.isEmpty():
    		w.string(s.terms.String())
    	default:
    		var termHashes []string
    		for _, term := range s.terms {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top