(node: p.TSESTree.Parameter)
| 219 | } |
| 220 | |
| 221 | function getParam(node: p.TSESTree.Parameter): Param { |
| 222 | if (node.type !== "Identifier") error("parameter must be a variable", node); |
| 223 | if (!node.typeAnnotation) error("parameter type is required", node); |
| 224 | const name = node.name; |
| 225 | const type = convertType(node.typeAnnotation.typeAnnotation); |
| 226 | return { name, type }; |
| 227 | } |
| 228 | |
| 229 | function getRecFunc(node: p.TSESTree.FunctionDeclaration, ctx: Context, restFunc: (() => Term) | null): Term { |
| 230 | if (!node.id) error("function name is required", node); |
no test coverage detected