MCPcopy Create free account
hub / github.com/google/gapid / enum

Method enum

gapil/bapi/encode.go:761–776  ·  view source on GitHub ↗
(n *semantic.Enum)

Source from the content-addressed store, hash-verified

759}
760
761func (e *encoder) enum(n *semantic.Enum) (outID uint64) {
762 e.build(&e.instances.Enum, e.maps.Enum, n, &outID, func() *Enum {
763 n.SortMembers()
764 p := &Enum{}
765 p.Owner = e.node(n.Owner())
766 p.Ast = e.astEnum(n.AST)
767 p.Annotations = e.annotations(n.Annotations)
768 p.Name = e.str(n.Name())
769 p.Docs = e.docs(n.Docs)
770 p.IsBitfield = n.IsBitfield
771 p.NumberType = e.ty(n.NumberType)
772 foreach(n.Entries, e.enumEntry, &p.Entries)
773 return p
774 })
775 return
776}
777
778func (e *encoder) enumEntry(n *semantic.EnumEntry) (outID uint64) {
779 e.build(&e.instances.EnumEntry, e.maps.EnumEntry, n, &outID, func() *EnumEntry {

Callers 2

nodeMethod · 0.95
tyMethod · 0.95

Calls 11

buildMethod · 0.95
nodeMethod · 0.95
astEnumMethod · 0.95
annotationsMethod · 0.95
strMethod · 0.95
docsMethod · 0.95
tyMethod · 0.95
foreachFunction · 0.85
SortMembersMethod · 0.65
OwnerMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected