MCPcopy
hub / github.com/expr-lang/expr / FromType

Function FromType

checker/nature/nature.go:203–206  ·  view source on GitHub ↗

FromType calls FromType on a nil *Cache. See the comment on Cache.

(t reflect.Type)

Source from the content-addressed store, hash-verified

201
202// FromType calls FromType on a nil *Cache. See the comment on Cache.
203func FromType(t reflect.Type) Nature {
204 var c *Cache
205 return c.FromType(t)
206}
207
208func ArrayFromType(c *Cache, t reflect.Type) Nature {
209 elem := c.FromType(t)

Callers 3

SetTypeMethod · 0.92
NatureMethod · 0.85
NatureMethod · 0.85

Calls 1

FromTypeMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…