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

Method astCase

gapil/bapi/decode.go:1474–1482  ·  view source on GitHub ↗
(astCaseID uint64)

Source from the content-addressed store, hash-verified

1472}
1473
1474func (d *decoder) astCase(astCaseID uint64) (out *ast.Case) {
1475 d.build(d.content.Instances.AstCase, &d.inst.ASTCase, astCaseID, &out,
1476 func(p *ASTCase, s *ast.Case) {
1477 s.Annotations = d.astAnnotations(p.Annotations)
1478 s.Block = d.astBlock(p.Block)
1479 foreach(p.Conditions, d.astNode, &s.Conditions)
1480 })
1481 return
1482}
1483
1484func (d *decoder) astClass(astClassID uint64) (out *ast.Class) {
1485 d.build(d.content.Instances.AstClass, &d.inst.ASTClass, astClassID, &out,

Callers 3

case_Method · 0.95
choiceMethod · 0.95
astNodeMethod · 0.95

Calls 4

buildMethod · 0.95
astAnnotationsMethod · 0.95
astBlockMethod · 0.95
foreachFunction · 0.85

Tested by

no test coverage detected