Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for traceInference (0.17 sec)

  1. src/go/types/unify.go

    // Must not be called directly from outside the unifier.
    func (u *unifier) nify(x, y Type, mode unifyMode, p *ifacePair) (result bool) {
    	u.depth++
    	if traceInference {
    		u.tracef("%s ≡ %s\t// %s", x, y, mode)
    	}
    	defer func() {
    		if traceInference && !result {
    			u.tracef("%s ≢ %s", x, y)
    		}
    		u.depth--
    	}()
    
    	// nothing to do if x == y
    	if x == y || Unalias(x) == Unalias(y) {
    		return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/infer.go

    				// .(*TypeParam) type assertion above.
    				untyped = append(untyped, i)
    			}
    		}
    	}
    
    	if traceInference {
    		inferred := u.inferred(tparams)
    		u.tracef("=> %s ➞ %s\n", tparams, inferred)
    	}
    
    	// --- 2 ---
    	// use information from type parameter constraints
    
    	if traceInference {
    		u.tracef("== type parameters: %s", tparams)
    	}
    
    	// Unify type parameters with their constraints as long
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/unify.go

    // Must not be called directly from outside the unifier.
    func (u *unifier) nify(x, y Type, mode unifyMode, p *ifacePair) (result bool) {
    	u.depth++
    	if traceInference {
    		u.tracef("%s ≡ %s\t// %s", x, y, mode)
    	}
    	defer func() {
    		if traceInference && !result {
    			u.tracef("%s ≢ %s", x, y)
    		}
    		u.depth--
    	}()
    
    	// nothing to do if x == y
    	if x == y || Unalias(x) == Unalias(y) {
    		return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  4. src/go/types/infer.go

    				// .(*TypeParam) type assertion above.
    				untyped = append(untyped, i)
    			}
    		}
    	}
    
    	if traceInference {
    		inferred := u.inferred(tparams)
    		u.tracef("=> %s ➞ %s\n", tparams, inferred)
    	}
    
    	// --- 2 ---
    	// use information from type parameter constraints
    
    	if traceInference {
    		u.tracef("== type parameters: %s", tparams)
    	}
    
    	// Unify type parameters with their constraints as long
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.5K bytes
    - Viewed (0)
Back to top