(n *ast.Function)
| 1770 | } |
| 1771 | |
| 1772 | func (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 | |
| 1785 | func (e *encoder) astGeneric(n *ast.Generic) (outID uint64) { |
| 1786 | e.build(&e.instances.AstGeneric, e.maps.ASTGeneric, n, &outID, func() *ASTGeneric { |
no test coverage detected