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

Method IsStructNil

ast/ast.go:741–743  ·  view source on GitHub ↗

IsStructNil returns true if this constant represents the empty struct.

()

Source from the content-addressed store, hash-verified

739
740// IsStructNil returns true if this constant represents the empty struct.
741func (c Constant) IsStructNil() bool {
742 return c.Type == StructShape && c.fst == nil
743}
744
745// Equals returns true if u is the same constant.
746func (c Constant) Equals(u Term) bool {

Callers 6

StructValuesMethod · 0.95
StringMethod · 0.95
DisplayStringMethod · 0.95
EqualsMethod · 0.95
HasTypeMethod · 0.80
matchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected