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

Method case_

gapil/bapi/encode.go:624–635  ·  view source on GitHub ↗
(n *semantic.Case)

Source from the content-addressed store, hash-verified

622}
623
624func (e *encoder) case_(n *semantic.Case) (outID uint64) {
625 e.build(&e.instances.Case, e.maps.Case, n, &outID, func() *Case {
626 p := &Case{
627 Ast: e.astCase(n.AST),
628 Annotations: e.annotations(n.Annotations),
629 Block: e.block(n.Block),
630 }
631 foreach(n.Conditions, e.expr, &p.Conditions)
632 return p
633 })
634 return
635}
636
637func (e *encoder) cast(n *semantic.Cast) (outID uint64) {
638 e.build(&e.instances.Cast, e.maps.Cast, n, &outID, func() *Cast {

Callers 1

nodeMethod · 0.95

Calls 5

buildMethod · 0.95
astCaseMethod · 0.95
annotationsMethod · 0.95
blockMethod · 0.95
foreachFunction · 0.85

Tested by

no test coverage detected