Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for SetUnderlying (0.28 sec)

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

    		// interface{ Error() string }
    		ityp := &Interface{methods: []*Func{err}, complete: true}
    		computeInterfaceTypeSet(nil, nopos, ityp) // prevent races due to lazy computation of tset
    
    		typ.SetUnderlying(ityp)
    		def(obj)
    	}
    
    	// type comparable interface{} // marked as comparable
    	{
    		obj := NewTypeName(nopos, nil, "comparable", nil)
    		obj.setColor(black)
    		typ := NewNamed(obj, nil, nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. src/go/types/universe.go

    		// interface{ Error() string }
    		ityp := &Interface{methods: []*Func{err}, complete: true}
    		computeInterfaceTypeSet(nil, nopos, ityp) // prevent races due to lazy computation of tset
    
    		typ.SetUnderlying(ityp)
    		def(obj)
    	}
    
    	// type comparable interface{} // marked as comparable
    	{
    		obj := NewTypeName(nopos, nil, "comparable", nil)
    		obj.setColor(black)
    		typ := NewNamed(obj, nil, nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/select.go

    func scasetype() *types.Type {
    	if scase == nil {
    		n := ir.NewDeclNameAt(src.NoXPos, ir.OTYPE, ir.Pkgs.Runtime.Lookup("scase"))
    		scase = types.NewNamed(n)
    		n.SetType(scase)
    		n.SetTypecheck(1)
    
    		scase.SetUnderlying(types.NewStruct([]*types.Field{
    			types.NewField(base.Pos, typecheck.Lookup("c"), types.Types[types.TUNSAFEPTR]),
    			types.NewField(base.Pos, typecheck.Lookup("elem"), types.Types[types.TUNSAFEPTR]),
    		}))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 7.8K bytes
    - Viewed (0)
Back to top