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

Method case_

gapil/bapi/decode.go:449–458  ·  view source on GitHub ↗
(caseID uint64)

Source from the content-addressed store, hash-verified

447}
448
449func (d *decoder) case_(caseID uint64) (out *semantic.Case) {
450 d.build(d.content.Instances.Case, &d.inst.Case, caseID, &out,
451 func(p *Case, s *semantic.Case) {
452 s.AST = d.astCase(p.Ast)
453 s.Annotations = d.annotations(p.Annotations)
454 s.Block = d.block(p.Block)
455 foreach(p.Conditions, d.expr, &s.Conditions)
456 })
457 return
458}
459
460func (d *decoder) cast(castID uint64) (out *semantic.Cast) {
461 d.build(d.content.Instances.Cast, &d.inst.Cast, castID, &out,

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