reflect.Value.IsValid (method)

108 uses

	reflect (current package)
		deepequal.go#L28: 	if !v1.IsValid() || !v2.IsValid() {
		deepequal.go#L29: 		return v1.IsValid() == v2.IsValid()
		deepequal.go#L149: 			if !val1.IsValid() || !val2.IsValid() || !deepValueEqual(val1, val2, visited) {
		map_swiss.go#L347: 	if !iter.m.IsValid() {
		map_swiss.go#L368: 	if v.IsValid() {
		value.go#L1569: func (v Value) IsValid() bool {
		value.go#L2820: 			if c.Chan.IsValid() {
		value.go#L2823: 			if c.Send.IsValid() {
		value.go#L2829: 			if !ch.IsValid() {
		value.go#L2841: 			if !v.IsValid() {
		value.go#L2856: 			if c.Send.IsValid() {
		value.go#L2860: 			if !ch.IsValid() {
		value.go#L3166: 	if !v.IsValid() || !u.IsValid() {
		value.go#L3167: 		return v.IsValid() == u.IsValid()

	encoding/asn1
		marshal.go#L577: 	if !v.IsValid() {

	encoding/binary
		binary.go#L724: 		if v.IsValid() {

	encoding/json
		decode.go#L364: 		if v.IsValid() {
		decode.go#L374: 		if v.IsValid() {
		decode.go#L388: 		if v.IsValid() {
		decode.go#L687: 			if !mapElem.IsValid() {
		decode.go#L805: 			if kv.IsValid() {
		encode.go#L348: 	if !v.IsValid() {

	fmt
		print.go#L372: 	if !v.IsValid() {
		print.go#L391: 	case p.value.IsValid():
		print.go#L747: 		if f.IsValid() && f.CanInterface() {
		print.go#L768: 	if depth > 0 && value.IsValid() && value.CanInterface() {
		print.go#L858: 		if !value.IsValid() {

	github.com/google/go-cmp/cmp
		compare.go#L148: 	if !vx.IsValid() || !vy.IsValid() || vx.Type() != vy.Type() {
		compare.go#L150: 		if vx.IsValid() {
		compare.go#L155: 		if vy.IsValid() {
		compare.go#L251: 	if si, ok := step.(SliceIndex); ok && si.isSlice && vx.IsValid() && vy.IsValid() {
		compare.go#L360: 	if !got.IsValid() || got.Bool() != want {
		compare.go#L394: 			if !vax.IsValid() || !vay.IsValid() {
		compare.go#L530: 		if !step.vx.IsValid() && !step.vy.IsValid() {
		options.go#L182: 	if !vx.IsValid() || !vx.CanInterface() || !vy.IsValid() || !vy.CanInterface() {
		options.go#L213: 	if !vx.IsValid() || !vy.IsValid() {
		options.go#L223: 	if !vx.IsValid() || !vy.IsValid() {
		options.go#L224: 		s.report(vx.IsValid() == vy.IsValid(), 0)
		report_compare.go#L383: 			if currKey.IsValid() {
		report_compare.go#L397: 				if k.IsValid() {
		report_compare.go#L424: 		case rv.NumDiff > 0 && !rv.ValueY.IsValid():
		report_compare.go#L426: 		case rv.NumDiff > 0 && !rv.ValueX.IsValid():
		report_references.go#L37: 	if deref && vx.IsValid() {
		report_references.go#L40: 	if deref && vy.IsValid() {
		report_reflect.go#L115: 	if !v.IsValid() {
		report_slices.go#L28: 	case !v.ValueX.IsValid() || !v.ValueY.IsValid():

	github.com/google/go-cmp/cmp/internal/value
		sort.go#L82: 		if !vx.IsValid() || !vy.IsValid() {
		sort.go#L83: 			return !vx.IsValid() && vy.IsValid()

	golang.org/x/tools/internal/typesinternal
		types.go#L23: 	if !f.IsValid() {
		types.go#L25: 		if !f.IsValid() {
		types.go#L49: 		if !f.IsValid() {

	google.golang.org/protobuf/internal/descfmt
		stringer.go#L276: 		if m := rv.MethodByName("GoType"); m.IsValid() {
		stringer.go#L306: 		if a.method.IsValid() {
		stringer.go#L309: 		if v.Kind() == reflect.Struct && !rv.IsValid() {
		stringer.go#L312: 		if !rv.IsValid() {

	google.golang.org/protobuf/internal/impl
		convert.go#L164: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L188: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L212: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L236: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L260: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L284: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L308: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L338: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L365: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L402: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L477: 	return v.IsValid() && v.Type() == c.goType
		convert_list.go#L55: 	return v.IsValid() && v.Type() == c.goType
		convert_list.go#L91: 	return v.IsValid() && v.Type() == c.goType
		convert_map.go#L50: 	return v.IsValid() && v.Type() == c.goType
		convert_map.go#L73: 	return rv.IsValid()
		convert_map.go#L78: 	if !rv.IsValid() {

	gotest.tools/v3/assert/cmp
		compare.go#L169: 		if !colValue.IsValid() {
		compare.go#L189: 			return toResult(colValue.MapIndex(itemValue).IsValid(), msg)

	net/http
		transport.go#L406: 	if rv := reflect.ValueOf(altProto["https"]); rv.IsValid() && rv.Type().Kind() == reflect.Struct && rv.Type().NumField() == 1 {

	text/template
		exec.go#L100: 	return v.IsValid() && v.Type() == missingValReflectType
		exec.go#L325: 	if !val.IsValid() {
		exec.go#L683: 	if !receiver.IsValid() {
		exec.go#L704: 	if method := ptr.MethodByName(fieldName); method.IsValid() {
		exec.go#L734: 			if !result.IsValid() {
		exec.go#L893: 	if !value.IsValid() {
		exec.go#L922: 			if !value.IsValid() {
		exec.go#L1119: 	if !v.IsValid() {
		funcs.go#L148: 		if fn := tmpl.execFuncs[name]; fn.IsValid() {
		funcs.go#L152: 	if fn := builtinFuncs()[name]; fn.IsValid() {
		funcs.go#L161: 	if !value.IsValid() {
		funcs.go#L213: 	if !item.IsValid() {
		funcs.go#L234: 			if x := item.MapIndex(index); x.IsValid() {
		funcs.go#L257: 	if !item.IsValid() {
		funcs.go#L323: 	if !fn.IsValid() {
		funcs.go#L448: 	if !v.IsValid() {
		funcs.go#L489: 				if arg1.IsValid() && arg.IsValid() {