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

Method class

gapil/bapi/decode.go:481–495  ·  view source on GitHub ↗
(classID uint64)

Source from the content-addressed store, hash-verified

479}
480
481func (d *decoder) class(classID uint64) (out *semantic.Class) {
482 d.build(d.content.Instances.Class, &d.inst.Class, classID, &out,
483 func(p *Class, s *semantic.Class) {
484 s.AST = d.astClass(p.Ast)
485 s.Annotations = d.annotations(p.Annotations)
486 s.Named = semantic.Named(d.str(p.Name))
487 s.Docs = d.docs(p.Docs)
488 foreach(p.Fields, d.field, &s.Fields)
489 if owner := d.node(p.Owner); owner != nil {
490 semantic.Add(owner.(semantic.Owner), s)
491 }
492 d.toSort = append(d.toSort, s)
493 })
494 return
495}
496
497func (d *decoder) classInit(classInitID uint64) (out *semantic.ClassInitializer) {
498 d.build(d.content.Instances.ClassInit, &d.inst.ClassInit, classInitID, &out,

Callers 3

classInitMethod · 0.95
nodeMethod · 0.95
tyMethod · 0.95

Calls 8

buildMethod · 0.95
astClassMethod · 0.95
annotationsMethod · 0.95
strMethod · 0.95
docsMethod · 0.95
nodeMethod · 0.95
foreachFunction · 0.85
AddMethod · 0.65

Tested by

no test coverage detected