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

Method astFunction

gapil/bapi/encode.go:1772–1783  ·  view source on GitHub ↗
(n *ast.Function)

Source from the content-addressed store, hash-verified

1770}
1771
1772func (e *encoder) astFunction(n *ast.Function) (outID uint64) {
1773 e.build(&e.instances.AstFunction, e.maps.ASTFunction, n, &outID, func() *ASTFunction {
1774 p := &ASTFunction{
1775 Annotations: e.astAnnotations(n.Annotations),
1776 Generic: e.astGeneric(n.Generic),
1777 Block: e.astBlock(n.Block),
1778 }
1779 foreach(n.Parameters, e.astParameter, &p.Parameters)
1780 return p
1781 })
1782 return
1783}
1784
1785func (e *encoder) astGeneric(n *ast.Generic) (outID uint64) {
1786 e.build(&e.instances.AstGeneric, e.maps.ASTGeneric, n, &outID, func() *ASTGeneric {

Callers 2

functionMethod · 0.95
astNodeMethod · 0.95

Calls 5

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

Tested by

no test coverage detected