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

Method block

gapil/bapi/encode.go:534–542  ·  view source on GitHub ↗
(n *semantic.Block)

Source from the content-addressed store, hash-verified

532}
533
534func (e *encoder) block(n *semantic.Block) (outID uint64) {
535 e.build(&e.instances.Block, e.maps.Block, n, &outID, func() *Block {
536 p := &Block{}
537 p.Ast = e.astBlock(n.AST)
538 foreach(n.Statements, e.stat, &p.Statements)
539 return p
540 })
541 return
542}
543
544func (e *encoder) branch(n *semantic.Branch) (outID uint64) {
545 e.build(&e.instances.Branch, e.maps.Branch, n, &outID, func() *Branch {

Callers 7

nodeMethod · 0.95
branchMethod · 0.95
case_Method · 0.95
functionMethod · 0.95
iterationMethod · 0.95
mapIterationMethod · 0.95
switch_Method · 0.95

Calls 3

buildMethod · 0.95
astBlockMethod · 0.95
foreachFunction · 0.85

Tested by

no test coverage detected