Documentation
¶
Index ¶
- func AllMask(b *closed.Bitset) uint64
- func AlwaysValid(t closed.Type) bool
- func ContainsLabeledZero(t *closed.Enum) bool
- func ExternallyExhaustible(t closed.Type) bool
- func Find(t *types.TypeName, vs []closed.Type) closed.Type
- func FirstExportedLabel(vs []*types.Const) *types.Const
- func FirstExportedType(t *closed.TypeNamesAndType) types.Type
- func FirstExportedTypeName(ts []*types.TypeName) *types.TypeName
- func ImportsOf(c closed.Type) (imports map[string]bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlwaysValid ¶
AlwaysValid returns true if t is always valid.
This happens for bitsets with flags for each bit and an enum whose underlying type is bool.
func ContainsLabeledZero ¶
ContainsLabeledZero reports whether t includes an explicit label for its zero value.
func ExternallyExhaustible ¶
ExternallyExhaustible is true if every label/member/field of t is exported.
The question of whether the type of t itself is exported is unrelated.
func FirstExportedLabel ¶
FirstExportedLabel returns the first v in vs with an exported name or nil if there is none.
func FirstExportedType ¶
func FirstExportedType(t *closed.TypeNamesAndType) types.Type
FirstExportedType returns a Type correponding to FirstExportedTypeName which is a pointer if t.Type is a pointer.
func FirstExportedTypeName ¶
FirstExportedTypeName returns the first t in ts with an exported name or nil if there are none.
Types ¶
This section is empty.