Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ifaceptr (0.2 sec)

  1. src/encoding/xml/marshal_test.go

    }
    
    type CDataTest struct {
    	Chardata string `xml:",cdata"`
    }
    
    type NestedAndCData struct {
    	AB    []string `xml:"A>B"`
    	CDATA string   `xml:",cdata"`
    }
    
    func ifaceptr(x any) any {
    	return &x
    }
    
    func stringptr(x string) *string {
    	return &x
    }
    
    type T1 struct{}
    type T2 struct{}
    
    type IndirComment struct {
    	T1      T1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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