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

Method astBlock

gapil/bapi/encode.go:1614–1621  ·  view source on GitHub ↗
(n *ast.Block)

Source from the content-addressed store, hash-verified

1612}
1613
1614func (e *encoder) astBlock(n *ast.Block) (outID uint64) {
1615 e.build(&e.instances.AstBlock, e.maps.ASTBlock, n, &outID, func() *ASTBlock {
1616 p := &ASTBlock{}
1617 foreach(n.Statements, e.astNode, &p.Statements)
1618 return p
1619 })
1620 return
1621}
1622
1623func (e *encoder) astBool(n *ast.Bool) (outID uint64) {
1624 e.build(&e.instances.AstBool, e.maps.ASTBool, n, &outID, func() *ASTBool {

Callers 8

blockMethod · 0.95
astBranchMethod · 0.95
astDefaultMethod · 0.95
astCaseMethod · 0.95
astFunctionMethod · 0.95
astIterationMethod · 0.95
astMapIterationMethod · 0.95
astNodeMethod · 0.95

Calls 2

buildMethod · 0.95
foreachFunction · 0.85

Tested by

no test coverage detected