MCPcopy Index your code
hub / github.com/expr-lang/expr / Value

Function Value

internal/deref/deref.go:39–47  ·  view source on GitHub ↗
(v reflect.Value)

Source from the content-addressed store, hash-verified

37}
38
39func Value(v reflect.Value) reflect.Value {
40 for v.Kind() == reflect.Ptr || v.Kind() == reflect.Interface {
41 if v.IsNil() {
42 return v
43 }
44 v = v.Elem()
45 }
46 return v
47}
48
49func TypeKind(t reflect.Type, k reflect.Kind) (_ reflect.Type, _ reflect.Kind, changed bool) {
50 for k == reflect.Pointer {

Callers 9

EnvWithCacheFunction · 0.92
TestValueFunction · 0.92
TestValue_nilFunction · 0.92
TestValue_nil_in_chainFunction · 0.92
flattenFunction · 0.92
builtin.goFile · 0.92
FetchFunction · 0.92

Calls 1

ElemMethod · 0.80

Tested by 5

TestValueFunction · 0.74
TestValue_nilFunction · 0.74
TestValue_nil_in_chainFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…