Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for termy (0.04 sec)

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

    	comp := xcomp || ycomp
    	if comp && !terms.isAll() {
    		// only keep comparable terms
    		i := 0
    		for _, t := range terms {
    			assert(t.typ != nil)
    			if comparable(t.typ, false /* strictly comparable */, nil, nil) {
    				terms[i] = t
    				i++
    			}
    		}
    		terms = terms[:i]
    		if !terms.isAll() {
    			comp = false
    		}
    	}
    	assert(!comp || terms.isAll()) // comparable invariant
    	return terms, comp
    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/cmd/compile/internal/types2/subst.go

    				results:  results,
    				variadic: t.variadic,
    			}
    		}
    
    	case *Union:
    		terms, copied := subst.termlist(t.terms)
    		if copied {
    			// term list substitution may introduce duplicate terms (unlikely but possible).
    			// This is ok; lazy type set computation will determine the actual type set
    			// in normal form.
    			return &Union{terms}
    		}
    
    	case *Interface:
    		methods, mcopied := subst.funcList(t.methods)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/typeparam.go

    	return ityp
    }
    
    // is calls f with the specific type terms of t's constraint and reports whether
    // all calls to f returned true. If there are no specific terms, is
    // returns the result of f(nil).
    func (t *TypeParam) is(f func(*term) bool) bool {
    	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.
    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/cmd/compile/internal/types2/typestring.go

    	}
    	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 {
    			// terms are not canonically sorted, so we sort their hashes instead.
    			var buf bytes.Buffer
    			if term.tilde {
    				buf.WriteByte('~')
    			}
    			newTypeHasher(&buf, w.ctxt).typ(term.typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/conversions.go

    		}
    	}
    
    	// generic cases with specific type terms
    	// (generic operands cannot be constants, so we can ignore x.val)
    	switch {
    	case Vp != nil && Tp != nil:
    		x := *x // don't clobber outer x
    		return Vp.is(func(V *term) bool {
    			if V == nil {
    				return false // no specific types
    			}
    			x.typ = V.typ
    			return Tp.is(func(T *term) bool {
    				if T == nil {
    					return false // no specific types
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. apache-maven/src/main/appended-resources/licenses/CDDL+GPLv2-with-classpath-exception.txt

        result of warranty, support, indemnity or liability terms You offer.
    
        3.5. Distribution of Executable Versions.
    
        You may distribute the Executable form of the Covered Software under
        the terms of this License or under the terms of a license of Your
        choice, which may contain terms different from this License,
        provided that You are in compliance with the terms of this License
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri May 17 19:14:22 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/infer.go

    // Otherwise, if tpar has a core type T, it returns a term corresponding to that
    // core type and false. In that case, if any term of tpar has a tilde, the core
    // term has a tilde. In all other cases coreTerm returns (nil, false).
    func coreTerm(tpar *TypeParam) (*term, bool) {
    	n := 0
    	var single *term // valid if n == 1
    	var tilde bool
    	tpar.is(func(t *term) bool {
    		if t == nil {
    			assert(n == 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/instantiate.go

    			default:
    				detail = check.sprintf("%s missing in %s", V, Ti.typeSet().terms)
    			}
    			*cause = check.sprintf("%s does not %s %s (%s)", V, verb, T, detail)
    		}
    		return false
    	}
    
    	return checkComparability()
    }
    
    // mentions reports whether type T "mentions" typ in an (embedded) element or term
    // of T (whether typ is in the type set of T or not). For better error messages.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  9. apache-maven/src/main/appended-resources/licenses/EPL-2.0.txt

      the copyright license set forth in this Agreement.
    
      e) Notwithstanding the terms of any Secondary License, no
      Contributor makes additional grants to any Recipient (other than
      those set forth in this Agreement) as a result of such Recipient's
      receipt of the Program under the terms of a Secondary License
      (if permitted under the terms of Section 3).
    
    3. REQUIREMENTS
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 04 06:45:16 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/builtins.go

    		// Test if t satisfies the requirements for the argument
    		// type and collect possible result types at the same time.
    		var terms []*Term
    		if !tp.is(func(t *term) bool {
    			if t == nil {
    				return false
    			}
    			if r := f(t.typ); r != nil {
    				terms = append(terms, NewTerm(t.tilde, r))
    				return true
    			}
    			return false
    		}) {
    			return nil
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
Back to top