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

Method branch

gapil/bapi/encode.go:544–554  ·  view source on GitHub ↗
(n *semantic.Branch)

Source from the content-addressed store, hash-verified

542}
543
544func (e *encoder) branch(n *semantic.Branch) (outID uint64) {
545 e.build(&e.instances.Branch, e.maps.Branch, n, &outID, func() *Branch {
546 return &Branch{
547 Ast: e.astBranch(n.AST),
548 Condition: e.expr(n.Condition),
549 True: e.block(n.True),
550 False: e.block(n.False),
551 }
552 })
553 return
554}
555
556func (e *encoder) builtin(n *semantic.Builtin) Builtin {
557 switch n {

Callers 2

nodeMethod · 0.95
statMethod · 0.95

Calls 4

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

Tested by

no test coverage detected