MCPcopy
hub / github.com/google/mangle / IsMapNil

Method IsMapNil

ast/ast.go:736–738  ·  view source on GitHub ↗

IsMapNil returns true if this constant represents the empty map.

()

Source from the content-addressed store, hash-verified

734
735// IsMapNil returns true if this constant represents the empty map.
736func (c Constant) IsMapNil() bool {
737 return c.Type == MapShape && c.fst == nil
738}
739
740// IsStructNil returns true if this constant represents the empty struct.
741func (c Constant) IsStructNil() bool {

Callers 7

MapValuesMethod · 0.95
StringMethod · 0.95
DisplayStringMethod · 0.95
EqualsMethod · 0.95
HasTypeMethod · 0.80
matchFunction · 0.80
TestReducerCollectToMapFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestReducerCollectToMapFunction · 0.64