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

Method astGeneric

gapil/bapi/encode.go:1785–1794  ·  view source on GitHub ↗
(n *ast.Generic)

Source from the content-addressed store, hash-verified

1783}
1784
1785func (e *encoder) astGeneric(n *ast.Generic) (outID uint64) {
1786 e.build(&e.instances.AstGeneric, e.maps.ASTGeneric, n, &outID, func() *ASTGeneric {
1787 p := &ASTGeneric{
1788 Name: e.astIdentifier(n.Name),
1789 }
1790 foreach(n.Arguments, e.astNode, &p.Arguments)
1791 return p
1792 })
1793 return
1794}
1795
1796func (e *encoder) astGroup(n *ast.Group) (outID uint64) {
1797 e.build(&e.instances.AstGroup, e.maps.ASTGroup, n, &outID, func() *ASTGroup {

Callers 2

astFunctionMethod · 0.95
astNodeMethod · 0.95

Calls 3

buildMethod · 0.95
astIdentifierMethod · 0.95
foreachFunction · 0.85

Tested by

no test coverage detected