Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for hasEmptyTypeset (0.22 sec)

  1. src/go/types/predicates.go

    	_, ok := Unalias(t).(*TypeParam)
    	return ok
    }
    
    // hasEmptyTypeset reports whether t is a type parameter with an empty type set.
    // The function does not force the computation of the type set and so is safe to
    // use anywhere, but it may report a false negative if the type set has not been
    // computed yet.
    func hasEmptyTypeset(t Type) bool {
    	if tpar, _ := Unalias(t).(*TypeParam); tpar != nil && tpar.bound != nil {
    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

    	_, ok := Unalias(t).(*TypeParam)
    	return ok
    }
    
    // hasEmptyTypeset reports whether t is a type parameter with an empty type set.
    // The function does not force the computation of the type set and so is safe to
    // use anywhere, but it may report a false negative if the type set has not been
    // computed yet.
    func hasEmptyTypeset(t Type) bool {
    	if tpar, _ := Unalias(t).(*TypeParam); tpar != nil && tpar.bound != nil {
    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/go/types/operand.go

    				buf.WriteString(" constrained by ")
    				WriteType(&buf, tpar.bound, qf) // do not compute interface type sets here
    				// If we have the type set and it's empty, say so for better error messages.
    				if hasEmptyTypeset(tpar) {
    					buf.WriteString(" with empty type set")
    				}
    			}
    		} else {
    			buf.WriteString(" with invalid type")
    		}
    	}
    
    	// )
    	if expr != "" {
    		buf.WriteByte(')')
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/operand.go

    				buf.WriteString(" constrained by ")
    				WriteType(&buf, tpar.bound, qf) // do not compute interface type sets here
    				// If we have the type set and it's empty, say so for better error messages.
    				if hasEmptyTypeset(tpar) {
    					buf.WriteString(" with empty type set")
    				}
    			}
    		} else {
    			buf.WriteString(" with invalid type")
    		}
    	}
    
    	// )
    	if expr != "" {
    		buf.WriteByte(')')
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top