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

Method astBranch

gapil/bapi/encode.go:1632–1641  ·  view source on GitHub ↗
(n *ast.Branch)

Source from the content-addressed store, hash-verified

1630}
1631
1632func (e *encoder) astBranch(n *ast.Branch) (outID uint64) {
1633 e.build(&e.instances.AstBranch, e.maps.ASTBranch, n, &outID, func() *ASTBranch {
1634 return &ASTBranch{
1635 Condition: e.astNode(n.Condition),
1636 True: e.astBlock(n.True),
1637 False: e.astBlock(n.False),
1638 }
1639 })
1640 return
1641}
1642
1643func (e *encoder) astCall(n *ast.Call) (outID uint64) {
1644 e.build(&e.instances.AstCall, e.maps.ASTCall, n, &outID, func() *ASTCall {

Callers 2

branchMethod · 0.95
astNodeMethod · 0.95

Calls 3

buildMethod · 0.95
astNodeMethod · 0.95
astBlockMethod · 0.95

Tested by

no test coverage detected