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

Method enumEntry

gapil/bapi/decode.go:582–594  ·  view source on GitHub ↗
(enumEntryID uint64)

Source from the content-addressed store, hash-verified

580}
581
582func (d *decoder) enumEntry(enumEntryID uint64) (out *semantic.EnumEntry) {
583 d.build(d.content.Instances.EnumEntry, &d.inst.EnumEntry, enumEntryID, &out,
584 func(p *EnumEntry, s *semantic.EnumEntry) {
585 s.AST = d.astEnumEntry(p.Ast)
586 s.Named = semantic.Named(d.str(p.Name))
587 s.Docs = d.docs(p.Docs)
588 s.Value = d.expr(p.Value)
589 if owner := d.node(p.Owner); owner != nil {
590 semantic.Add(owner.(semantic.Owner), s)
591 }
592 })
593 return
594}
595
596func (d *decoder) fence(fenceID uint64) (out *semantic.Fence) {
597 d.build(d.content.Instances.Fence, &d.inst.Fence, fenceID, &out,

Callers 2

exprMethod · 0.95
nodeMethod · 0.95

Calls 7

buildMethod · 0.95
astEnumEntryMethod · 0.95
strMethod · 0.95
docsMethod · 0.95
exprMethod · 0.95
nodeMethod · 0.95
AddMethod · 0.65

Tested by

no test coverage detected