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

Method pseudonym

gapil/bapi/decode.go:1005–1020  ·  view source on GitHub ↗
(pseudID uint64)

Source from the content-addressed store, hash-verified

1003}
1004
1005func (d *decoder) pseudonym(pseudID uint64) (out *semantic.Pseudonym) {
1006 d.build(d.content.Instances.Pseudonym, &d.inst.Pseudonym, pseudID, &out,
1007 func(p *Pseudonym, s *semantic.Pseudonym) {
1008 s.AST = d.astPseudonym(p.Ast)
1009 s.Annotations = d.annotations(p.Annotations)
1010 s.Named = semantic.Named(d.str(p.Name))
1011 s.Docs = d.docs(p.Docs)
1012 s.To = d.ty(p.To)
1013 foreach(p.Methods, d.function, &s.Methods)
1014 if owner := d.node(p.Owner); owner != nil {
1015 semantic.Add(owner.(semantic.Owner), s)
1016 }
1017 d.toSort = append(d.toSort, s)
1018 })
1019 return
1020}
1021
1022func (d *decoder) read(readID uint64) (out *semantic.Read) {
1023 d.build(d.content.Instances.Read, &d.inst.Read, readID, &out,

Callers 2

nodeMethod · 0.95
tyMethod · 0.95

Calls 9

buildMethod · 0.95
astPseudonymMethod · 0.95
annotationsMethod · 0.95
strMethod · 0.95
docsMethod · 0.95
tyMethod · 0.95
nodeMethod · 0.95
foreachFunction · 0.85
AddMethod · 0.65

Tested by

no test coverage detected