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

Function ArrayFromType

checker/nature/nature.go:208–213  ·  view source on GitHub ↗
(c *Cache, t reflect.Type)

Source from the content-addressed store, hash-verified

206}
207
208func ArrayFromType(c *Cache, t reflect.Type) Nature {
209 elem := c.FromType(t)
210 nt := c.FromType(arrayType)
211 nt.Ref = &elem
212 return nt
213}
214
215func (n *Nature) IsAny(c *Cache) bool {
216 return n.Type != nil && n.Kind == reflect.Interface && n.NumMethods(c) == 0

Callers 1

binaryNodeMethod · 0.85

Calls 1

FromTypeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…