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

Method pseudonym

gapil/bapi/encode.go:1239–1254  ·  view source on GitHub ↗
(n *semantic.Pseudonym)

Source from the content-addressed store, hash-verified

1237}
1238
1239func (e *encoder) pseudonym(n *semantic.Pseudonym) (outID uint64) {
1240 e.build(&e.instances.Pseudonym, e.maps.Pseudonym, n, &outID, func() *Pseudonym {
1241 n.SortMembers()
1242 p := &Pseudonym{
1243 Owner: e.node(n.Owner()),
1244 Ast: e.astPseudonym(n.AST),
1245 Annotations: e.annotations(n.Annotations),
1246 Name: e.str(n.Name()),
1247 Docs: e.docs(n.Docs),
1248 To: e.ty(n.To),
1249 }
1250 foreach(n.Methods, e.function, &p.Methods)
1251 return p
1252 })
1253 return
1254}
1255
1256func (e *encoder) read(n *semantic.Read) (outID uint64) {
1257 e.build(&e.instances.Read, e.maps.Read, n, &outID, func() *Read {

Callers 2

nodeMethod · 0.95
tyMethod · 0.95

Calls 11

buildMethod · 0.95
nodeMethod · 0.95
astPseudonymMethod · 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