Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewTypeInfo (0.21 sec)

  1. src/cmd/internal/obj/link.go

    // that contains a runtime._type.
    type TypeInfo struct {
    	Type interface{} // a *cmd/compile/internal/types.Type
    }
    
    func (s *LSym) NewTypeInfo() *TypeInfo {
    	if s.Extra != nil {
    		panic(fmt.Sprintf("invalid use of LSym - NewTypeInfo with Extra of type %T", *s.Extra))
    	}
    	t := new(TypeInfo)
    	s.Extra = new(interface{})
    	*s.Extra = t
    	return t
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
Back to top