patch library: todo message
This commit is contained in:
@@ -157,7 +157,7 @@ func (t rtype) NumMethod() int {
|
||||
}
|
||||
return len(t.exportedMethods())
|
||||
*/
|
||||
panic("todo")
|
||||
panic("todo: reflectlite.rtype.NumMethod")
|
||||
}
|
||||
|
||||
func (t rtype) PkgPath() string {
|
||||
@@ -171,7 +171,7 @@ func (t rtype) PkgPath() string {
|
||||
}
|
||||
return t.nameOff(ut.PkgPath).Name()
|
||||
*/
|
||||
panic("todo")
|
||||
panic("todo: reflectlite.rtype.PkgPath")
|
||||
}
|
||||
|
||||
func (t rtype) Name() string {
|
||||
@@ -193,7 +193,7 @@ func (t rtype) Name() string {
|
||||
}
|
||||
return s[i+1:]
|
||||
*/
|
||||
panic("todo")
|
||||
panic("todo: reflectlite.rtype.Name")
|
||||
}
|
||||
|
||||
func toRType(t *abi.Type) rtype {
|
||||
@@ -220,7 +220,7 @@ func (t rtype) In(i int) Type {
|
||||
}
|
||||
return toType(tt.InSlice()[i])
|
||||
*/
|
||||
panic("todo")
|
||||
panic("todo: reflectlite.rtype.In")
|
||||
}
|
||||
|
||||
func (t rtype) Key() Type {
|
||||
@@ -255,7 +255,7 @@ func (t rtype) NumIn() int {
|
||||
}
|
||||
return int(tt.InCount)
|
||||
*/
|
||||
panic("todo")
|
||||
panic("todo: reflectlite.rtype.NumIn")
|
||||
}
|
||||
|
||||
func (t rtype) NumOut() int {
|
||||
@@ -266,7 +266,7 @@ func (t rtype) NumOut() int {
|
||||
}
|
||||
return tt.NumOut()
|
||||
*/
|
||||
panic("todo")
|
||||
panic("todo: reflectlite.rtype.NumOut")
|
||||
}
|
||||
|
||||
func (t rtype) Out(i int) Type {
|
||||
@@ -277,7 +277,7 @@ func (t rtype) Out(i int) Type {
|
||||
}
|
||||
return toType(tt.OutSlice()[i])
|
||||
*/
|
||||
panic("todo")
|
||||
panic("todo: reflectlite.rtype.Out")
|
||||
}
|
||||
|
||||
// add returns p+x.
|
||||
@@ -408,7 +408,7 @@ func implements(T, V *abi.Type) bool {
|
||||
}
|
||||
return false
|
||||
*/
|
||||
panic("todo")
|
||||
panic("todo: reflectlite.implements")
|
||||
}
|
||||
|
||||
// directlyAssignable reports whether a value x of type V can be directly
|
||||
@@ -544,7 +544,7 @@ func haveIdenticalUnderlyingType(T, V *abi.Type, cmpTags bool) bool {
|
||||
|
||||
return false
|
||||
*/
|
||||
panic("todo")
|
||||
panic("todo: reflectlite.haveIdenticalUnderlyingType")
|
||||
}
|
||||
|
||||
// toType converts from a *rtype to a Type that can be returned
|
||||
|
||||
@@ -98,7 +98,7 @@ func (v Value) pointer() unsafe.Pointer {
|
||||
}
|
||||
return v.ptr
|
||||
*/
|
||||
panic("todo")
|
||||
panic("todo: reflectlite.Value.pointer")
|
||||
}
|
||||
|
||||
// packEface converts v to the empty interface.
|
||||
@@ -263,7 +263,7 @@ func (v Value) Elem() Value {
|
||||
}
|
||||
panic(&ValueError{"reflectlite.Value.Elem", v.kind()})
|
||||
*/
|
||||
panic("todo")
|
||||
panic("todo: reflectlite.Value.Elem")
|
||||
}
|
||||
|
||||
func valueInterface(v Value) any {
|
||||
@@ -367,7 +367,7 @@ func (v Value) numMethod() int {
|
||||
}
|
||||
return v.typ.NumMethod()
|
||||
*/
|
||||
panic("todo")
|
||||
panic("todo: reflectlite.Value.numMethod")
|
||||
}
|
||||
|
||||
// Set assigns x to the value v.
|
||||
@@ -455,7 +455,7 @@ func (v Value) assignTo(context string, dst *abi.Type, target unsafe.Pointer) Va
|
||||
// Failed.
|
||||
// TODO(xsw):
|
||||
// panic(context + ": value of type " + toRType(v.typ).String() + " is not assignable to type " + toRType(dst).String())
|
||||
panic("todo")
|
||||
panic("todo: reflectlite.Value.assignTo")
|
||||
}
|
||||
|
||||
// arrayAt returns the i-th element of p,
|
||||
|
||||
Reference in New Issue
Block a user