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

Method enumEntry

gapil/bapi/encode.go:778–789  ·  view source on GitHub ↗
(n *semantic.EnumEntry)

Source from the content-addressed store, hash-verified

776}
777
778func (e *encoder) enumEntry(n *semantic.EnumEntry) (outID uint64) {
779 e.build(&e.instances.EnumEntry, e.maps.EnumEntry, n, &outID, func() *EnumEntry {
780 p := &EnumEntry{}
781 p.Owner = e.node(n.Owner())
782 p.Ast = e.astEnumEntry(n.AST)
783 p.Name = e.str(n.Name())
784 p.Docs = e.docs(n.Docs)
785 p.Value = e.expr(n.Value)
786 return p
787 })
788 return
789}
790
791func (e *encoder) expr(n semantic.Expression) (outID uint64) {
792 e.build(&e.instances.Expression, e.maps.Expression, n, &outID, func() *Expression {

Callers 2

nodeMethod · 0.95
exprMethod · 0.95

Calls 8

buildMethod · 0.95
nodeMethod · 0.95
astEnumEntryMethod · 0.95
strMethod · 0.95
docsMethod · 0.95
exprMethod · 0.95
OwnerMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected