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

Method IsFastMap

checker/nature/nature.go:389–394  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

387}
388
389func (n *Nature) IsFastMap() bool {
390 return n.Type != nil &&
391 n.Type.Kind() == reflect.Map &&
392 n.Type.Key().Kind() == reflect.String &&
393 n.Type.Elem().Kind() == reflect.Interface
394}
395
396func (n *Nature) Get(c *Cache, name string) (Nature, bool) {
397 if n.Kind == reflect.Map && n.TypeData != nil {

Callers 1

IdentifierNodeMethod · 0.95

Calls 2

KeyMethod · 0.80
ElemMethod · 0.80

Tested by

no test coverage detected