Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for SetUnderlying (0.23 sec)

  1. src/go/internal/gcimporter/ureader.go

    	// We need to call iface.Complete(), but if there are any embedded
    	// defined types, then we may not have set their underlying
    	// interface type yet. So we need to defer calling Complete until
    	// after we've called SetUnderlying everywhere.
    	//
    	// TODO(mdempsky): After CL 424876 lands, it should be safe to call
    	// iface.Complete() immediately.
    	r.p.ifaces = append(r.p.ifaces, iface)
    
    	return iface
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/named.go

    		rtyp = NewPointer(t)
    	} else {
    		rtyp = t
    	}
    
    	sig.recv = substVar(origSig.recv, rtyp)
    	return substFunc(origm, sig)
    }
    
    // SetUnderlying sets the underlying type and marks t as complete.
    // t must not have type arguments.
    func (t *Named) SetUnderlying(underlying Type) {
    	assert(t.inst == nil)
    	if underlying == nil {
    		panic("underlying type must not be nil")
    	}
    	if asNamed(underlying) != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  3. src/go/types/named.go

    		rtyp = NewPointer(t)
    	} else {
    		rtyp = t
    	}
    
    	sig.recv = substVar(origSig.recv, rtyp)
    	return substFunc(origm, sig)
    }
    
    // SetUnderlying sets the underlying type and marks t as complete.
    // t must not have type arguments.
    func (t *Named) SetUnderlying(underlying Type) {
    	assert(t.inst == nil)
    	if underlying == nil {
    		panic("underlying type must not be nil")
    	}
    	if asNamed(underlying) != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  4. src/go/types/issues_test.go

    	T2 := NewNamed(n2, nil, nil)
    	s1 := NewStruct([]*Var{NewField(nopos, nil, "_", T2, false)}, nil)
    	T1.SetUnderlying(s1)
    	s2 := NewStruct([]*Var{NewField(nopos, nil, "_", T2, false)}, nil)
    	s3 := NewStruct([]*Var{NewField(nopos, nil, "_", s2, false)}, nil)
    	T2.SetUnderlying(s3)
    
    	// These calls must terminate (no endless recursion).
    	Comparable(T1)
    	Comparable(T2)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/issues_test.go

    	T2 := NewNamed(n2, nil, nil)
    	s1 := NewStruct([]*Var{NewField(nopos, nil, "_", T2, false)}, nil)
    	T1.SetUnderlying(s1)
    	s2 := NewStruct([]*Var{NewField(nopos, nil, "_", T2, false)}, nil)
    	s3 := NewStruct([]*Var{NewField(nopos, nil, "_", s2, false)}, nil)
    	T2.SetUnderlying(s3)
    
    	// These calls must terminate (no endless recursion).
    	Comparable(T1)
    	Comparable(T2)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  6. src/go/internal/gccgoimporter/parser.go

    	underlying := p.parseType(pkg)
    	if nt.Underlying() == nil {
    		if underlying.Underlying() == nil {
    			fix := fixupRecord{toUpdate: nt, target: underlying}
    			p.fixups = append(p.fixups, fix)
    		} else {
    			nt.SetUnderlying(underlying.Underlying())
    		}
    	}
    
    	if p.tok == '\n' {
    		p.next()
    		// collect associated methods
    		for p.tok == scanner.Ident {
    			p.expectKeyword("func")
    			if p.tok == '/' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  7. src/go/internal/gcimporter/iimport.go

    		r.declare(obj)
    		if tag == 'U' {
    			tparams := r.tparamList()
    			named.SetTypeParams(tparams)
    		}
    
    		underlying := r.p.typAt(r.uint64(), named).Underlying()
    		named.SetUnderlying(underlying)
    
    		if !isInterface(underlying) {
    			for n := r.uint64(); n > 0; n-- {
    				mpos := r.pos()
    				mname := r.ident()
    				recv := r.param()
    
    				// If the receiver has any targs, set those as the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  8. api/go1.5.txt

    pkg go/types, method (*Named) AddMethod(*Func)
    pkg go/types, method (*Named) Method(int) *Func
    pkg go/types, method (*Named) NumMethods() int
    pkg go/types, method (*Named) Obj() *TypeName
    pkg go/types, method (*Named) SetUnderlying(Type)
    pkg go/types, method (*Named) String() string
    pkg go/types, method (*Named) Underlying() Type
    pkg go/types, method (*Nil) Exported() bool
    pkg go/types, method (*Nil) Id() string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
Back to top