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

Method choice

gapil/bapi/decode.go:470–479  ·  view source on GitHub ↗
(choiceID uint64)

Source from the content-addressed store, hash-verified

468}
469
470func (d *decoder) choice(choiceID uint64) (out *semantic.Choice) {
471 d.build(d.content.Instances.Choice, &d.inst.Choice, choiceID, &out,
472 func(p *Choice, s *semantic.Choice) {
473 s.AST = d.astCase(p.Ast)
474 s.Annotations = d.annotations(p.Annotations)
475 s.Expression = d.expr(p.Expression)
476 foreach(p.Conditions, d.expr, &s.Conditions)
477 })
478 return
479}
480
481func (d *decoder) class(classID uint64) (out *semantic.Class) {
482 d.build(d.content.Instances.Class, &d.inst.Class, classID, &out,

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