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

Method cstNode

gapil/bapi/decode.go:1908–1917  ·  view source on GitHub ↗
(p *CSTNode)

Source from the content-addressed store, hash-verified

1906}
1907
1908func (d *decoder) cstNode(p *CSTNode) cst.Node {
1909 switch n := protoutil.OneOf(p).(type) {
1910 case *CSTNode_Branch:
1911 return d.cstBranch(n.Branch)
1912 case *CSTNode_Leaf:
1913 return d.cstLeaf(n.Leaf)
1914 default:
1915 panic(fmt.Errorf("Unhandled CST Node: %T", n))
1916 }
1917}
1918
1919func (d *decoder) cstSeparator(p *CSTSeparator) cst.Separator {
1920 if p == nil {

Callers 1

mappingsMethod · 0.95

Calls 2

cstBranchMethod · 0.95
cstLeafMethod · 0.95

Tested by

no test coverage detected