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

Method choice

gapil/bapi/encode.go:648–659  ·  view source on GitHub ↗
(n *semantic.Choice)

Source from the content-addressed store, hash-verified

646}
647
648func (e *encoder) choice(n *semantic.Choice) (outID uint64) {
649 e.build(&e.instances.Choice, e.maps.Choice, n, &outID, func() *Choice {
650 p := &Choice{
651 Ast: e.astCase(n.AST),
652 Annotations: e.annotations(n.Annotations),
653 Expression: e.expr(n.Expression),
654 }
655 foreach(n.Conditions, e.expr, &p.Conditions)
656 return p
657 })
658 return
659}
660
661func (e *encoder) class(n *semantic.Class) (outID uint64) {
662 e.build(&e.instances.Class, e.maps.Class, n, &outID, func() *Class {

Callers 1

nodeMethod · 0.95

Calls 5

buildMethod · 0.95
astCaseMethod · 0.95
annotationsMethod · 0.95
exprMethod · 0.95
foreachFunction · 0.85

Tested by

no test coverage detected