Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ifaceptr (0.14 sec)

  1. src/go/types/predicates.go

    	if a == nil || b == nil {
    		return a == b
    	}
    	// a != nil && b != nil
    	return a.path == b.path
    }
    
    // An ifacePair is a node in a stack of interface type pairs compared for identity.
    type ifacePair struct {
    	x, y *Interface
    	prev *ifacePair
    }
    
    func (p *ifacePair) identical(q *ifacePair) bool {
    	return p.x == q.x && p.y == q.y || p.x == q.y && p.y == q.x
    }
    
    // A comparer is used to compare types.
    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

    	if a == nil || b == nil {
    		return a == b
    	}
    	// a != nil && b != nil
    	return a.path == b.path
    }
    
    // An ifacePair is a node in a stack of interface type pairs compared for identity.
    type ifacePair struct {
    	x, y *Interface
    	prev *ifacePair
    }
    
    func (p *ifacePair) identical(q *ifacePair) bool {
    	return p.x == q.x && p.y == q.y || p.x == q.y && p.y == q.x
    }
    
    // A comparer is used to compare types.
    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/unify.go

    // adapted version of Checker.identical. For changes to that
    // code the corresponding changes should be made here.
    // 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--
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/unify.go

    // adapted version of Checker.identical. For changes to that
    // code the corresponding changes should be made here.
    // 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--
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top