Lines Matching refs:Reflect
5 package reflect
157 return "reflect: call of " + e.Method + " on zero Value"
159 return "reflect: call of " + e.Method + " on " + e.Kind.String() + " Value"
212 panic("reflect: " + methodName() + " using value obtained using unexported field")
225 panic("reflect: " + methodName() + " using value obtained using unexported field")
228 panic("reflect: " + methodName() + " using unaddressable value")
239 panic("reflect.Value.Addr of unaddressable value")
256 panic("reflect.Value.Bytes of non-byte slice")
267 panic("reflect.Value.Bytes of non-rune slice")
338 panic("reflect.Value.Call: call of nil function")
345 panic("reflect: CallSlice of non-variadic function")
348 panic("reflect: CallSlice with too few input arguments")
351 panic("reflect: CallSlice with too many input arguments")
358 panic("reflect: Call with too few input arguments")
361 panic("reflect: Call with too many input arguments")
366 panic("reflect: " + op + " using zero Value argument")
371 panic("reflect: " + op + " using " + xt.String() + " as type " + targ.String())
382 panic("reflect: cannot use " + xt.String() + " as type " + elem.String() + " in " + op)
394 panic("reflect.Value.Call: wrong argument count")
424 v = v.assignTo("reflect.Value.Call", targ, addr)
479 // The gc compilers know to do that for the name "reflect.callReflect".
511 panic("reflect: wrong return count from function created by MakeFunc")
523 panic("reflect: function created by MakeFunc using " + funcName(f) +
528 panic("reflect: function created by MakeFunc using " + funcName(f) +
560 panic("reflect: internal error: invalid method index")
564 panic("reflect: " + op + " of unexported method")
568 panic("reflect: " + op + " of method on nil interface value")
577 panic("reflect: internal error: invalid method index")
581 panic("reflect: " + op + " of unexported method")
592 // Reflect uses the "interface" calling convention for
615 // It is a streamlined version of the usual reflect call: the caller has
623 // The gc compilers know to do that for the name "reflect.callMethod".
686 panic(&ValueError{"reflect.Value.Cap", v.kind()})
707 panic(&ValueError{"reflect.Value.Complex", v.kind()})
746 panic(&ValueError{"reflect.Value.Elem", v.kind()})
753 panic(&ValueError{"reflect.Value.Field", v.kind()})
757 panic("reflect: Field index out of range")
792 panic("reflect: indirection through nil pointer to embedded struct")
834 panic(&ValueError{"reflect.Value.Float", v.kind()})
846 panic("reflect: array index out of range")
865 panic("reflect: slice index out of range")
876 panic("reflect: string index out of range")
882 panic(&ValueError{"reflect.Value.Index", v.kind()})
902 panic(&ValueError{"reflect.Value.Int", v.kind()})
908 panic(&ValueError{"reflect.Value.CanInterface", Invalid})
924 panic(&ValueError{"reflect.Value.Interface", 0})
930 panic("reflect.Value.Interface: cannot return value obtained from unexported field or method")
989 panic(&ValueError{"reflect.Value.IsNil", v.kind()})
1026 panic(&ValueError{"reflect.Value.Len", v.kind()})
1044 key = key.assignTo("reflect.Value.MapIndex", tt.key, nil)
1117 panic(&ValueError{"reflect.Value.Method", Invalid})
1120 panic("reflect: Method index out of range")
1123 panic("reflect: Method on nil interface value")
1134 panic(&ValueError{"reflect.Value.NumMethod", Invalid})
1149 panic(&ValueError{"reflect.Value.MethodByName", Invalid})
1179 panic(&ValueError{"reflect.Value.OverflowComplex", v.kind()})
1192 panic(&ValueError{"reflect.Value.OverflowFloat", v.kind()})
1212 panic(&ValueError{"reflect.Value.OverflowInt", v.kind()})
1225 panic(&ValueError{"reflect.Value.OverflowUint", v.kind()})
1230 // code using reflect cannot obtain unsafe.Pointers
1253 // created via reflect have the same underlying code pointer,
1270 panic(&ValueError{"reflect.Value.Pointer", v.kind()})
1289 panic("reflect: recv on send-only channel")
1322 panic("reflect: send on recv-only channel")
1325 x = x.assignTo("reflect.Value.Send", tt.elem, nil)
1345 x = x.assignTo("reflect.Set", v.typ, target)
1367 panic("reflect.Value.SetBytes of non-byte slice")
1378 panic("reflect.Value.setRunes of non-rune slice")
1389 panic(&ValueError{"reflect.Value.SetComplex", v.kind()})
1403 panic(&ValueError{"reflect.Value.SetFloat", v.kind()})
1417 panic(&ValueError{"reflect.Value.SetInt", v.kind()})
1439 panic("reflect: slice length out of range in SetLen")
1452 panic("reflect: slice capacity out of range in SetCap")
1468 key = key.assignTo("reflect.Value.SetMapIndex", tt.key, nil)
1480 val = val.assignTo("reflect.Value.SetMapIndex", tt.elem, nil)
1496 panic(&ValueError{"reflect.Value.SetUint", v.kind()})
1539 panic(&ValueError{"reflect.Value.Slice", v.kind()})
1543 panic("reflect.Value.Slice: slice of unaddressable array")
1559 panic("reflect.Value.Slice: string slice index out of bounds")
1566 panic("reflect.Value.Slice: slice index out of bounds")
1598 panic(&ValueError{"reflect.Value.Slice3", v.kind()})
1602 panic("reflect.Value.Slice3: slice of unaddressable array")
1617 panic("reflect.Value.Slice3: slice index out of bounds")
1652 // If you call String on a reflect.Value of other type, it's better to
1682 panic(&ValueError{"reflect.Value.Type", Invalid})
1696 panic("reflect: internal error: invalid method index")
1704 panic("reflect: internal error: invalid method index")
1729 panic(&ValueError{"reflect.Value.Uint", v.kind()})
1738 panic(&ValueError{"reflect.Value.UnsafeAddr", Invalid})
1741 panic("reflect.Value.UnsafeAddr of unaddressable value")
1800 panic("reflect.Append: slice overflow")
1838 typesMustMatch("reflect.AppendSlice", s.Type().Elem(), t.Type().Elem())
1852 panic(&ValueError{"reflect.Copy", dk})
1861 panic(&ValueError{"reflect.Copy", sk})
1867 typesMustMatch("reflect.Copy", de, se)
1957 panic("reflect.Select: invalid Dir")
1961 panic("reflect.Select: multiple default cases")
1965 panic("reflect.Select: default case has Chan value")
1968 panic("reflect.Select: default case has Send value")
1980 panic("reflect.Select: SendDir case using recv-only channel")
1986 panic("reflect.Select: SendDir case missing Send value")
1989 v = v.assignTo("reflect.Select", tt.elem, nil)
1998 panic("reflect.Select: RecvDir case has Send value")
2008 panic("reflect.Select: RecvDir case using send-only channel")
2043 panic("reflect.MakeSlice of non-slice type")
2046 panic("reflect.MakeSlice: negative len")
2049 panic("reflect.MakeSlice: negative cap")
2052 panic("reflect.MakeSlice: len > cap")
2062 panic("reflect.MakeChan of non-chan type")
2065 panic("reflect.MakeChan: negative buffer size")
2068 panic("reflect.MakeChan: unidirectional channel type")
2077 panic("reflect.MakeMap of non-map type")
2116 panic("reflect: Zero(nil)")
2130 panic("reflect: New(nil)")
2187 panic("reflect.Value.Convert: value of type " + v.typ.String() + " cannot be converted to type " + t.String())
2526 // for use in cases where the reflect code is so clever that