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

Method astCase

gapil/bapi/encode.go:1692–1702  ·  view source on GitHub ↗
(n *ast.Case)

Source from the content-addressed store, hash-verified

1690}
1691
1692func (e *encoder) astCase(n *ast.Case) (outID uint64) {
1693 e.build(&e.instances.AstCase, e.maps.ASTCase, n, &outID, func() *ASTCase {
1694 p := &ASTCase{
1695 Annotations: e.astAnnotations(n.Annotations),
1696 Block: e.astBlock(n.Block),
1697 }
1698 foreach(n.Conditions, e.astNode, &p.Conditions)
1699 return p
1700 })
1701 return
1702}
1703
1704func (e *encoder) astClass(n *ast.Class) (outID uint64) {
1705 e.build(&e.instances.AstClass, e.maps.ASTClass, n, &outID, func() *ASTClass {

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