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

Method cstBranch

gapil/bapi/encode.go:2082–2093  ·  view source on GitHub ↗
(n *cst.Branch)

Source from the content-addressed store, hash-verified

2080}
2081
2082func (e *encoder) cstBranch(n *cst.Branch) (outID uint64) {
2083 e.build(&e.instances.CstBranch, e.maps.CSTBranch, n, &outID, func() *CSTBranch {
2084 p := &CSTBranch{
2085 Branch: e.cstBranch(n.Branch),
2086 Pre: e.cstSeparator(n.Pre),
2087 Post: e.cstSeparator(n.Post),
2088 }
2089 foreach(n.Children, e.cstNode, &p.Children)
2090 return p
2091 })
2092 return
2093}
2094
2095func (e *encoder) cstFragment(n cst.Fragment) *CSTFragment {
2096 switch n := n.(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