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

Method cstBranch

gapil/bapi/decode.go:1875–1884  ·  view source on GitHub ↗
(cstBranchID uint64)

Source from the content-addressed store, hash-verified

1873}
1874
1875func (d *decoder) cstBranch(cstBranchID uint64) (out *cst.Branch) {
1876 d.build(d.content.Instances.CstBranch, &d.inst.CSTBranch, cstBranchID, &out,
1877 func(p *CSTBranch, s *cst.Branch) {
1878 s.Branch = d.cstBranch(p.Branch)
1879 s.Pre = d.cstSeparator(p.Pre)
1880 s.Post = d.cstSeparator(p.Post)
1881 foreach(p.Children, d.cstNode, &s.Children)
1882 })
1883 return
1884}
1885
1886func (d *decoder) cstFragment(p *CSTFragment) cst.Fragment {
1887 switch n := protoutil.OneOf(p).(type) {

Callers 3

cstFragmentMethod · 0.95
cstLeafMethod · 0.95
cstNodeMethod · 0.95

Calls 3

buildMethod · 0.95
cstSeparatorMethod · 0.95
foreachFunction · 0.85

Tested by

no test coverage detected