(n *cst.Branch)
| 2080 | } |
| 2081 | |
| 2082 | func (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 | |
| 2095 | func (e *encoder) cstFragment(n cst.Fragment) *CSTFragment { |
| 2096 | switch n := n.(type) { |
no test coverage detected