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

Method branch

gapil/bapi/decode.go:360–369  ·  view source on GitHub ↗
(branchID uint64)

Source from the content-addressed store, hash-verified

358}
359
360func (d *decoder) branch(branchID uint64) (out *semantic.Branch) {
361 d.build(d.content.Instances.Branch, &d.inst.Branch, branchID, &out,
362 func(p *Branch, s *semantic.Branch) {
363 s.AST = d.astBranch(p.Ast)
364 s.Condition = d.expr(p.Condition)
365 s.True = d.block(p.True)
366 s.False = d.block(p.False)
367 })
368 return
369}
370
371func (d *decoder) boolValue(boolValueID uint64) semantic.BoolValue {
372 return semantic.BoolValue(d.content.Instances.BoolValue[boolValueID-1].Value)

Callers 2

statMethod · 0.95
nodeMethod · 0.95

Calls 4

buildMethod · 0.95
astBranchMethod · 0.95
exprMethod · 0.95
blockMethod · 0.95

Tested by

no test coverage detected