(node: SyntaxNode, ctx: ExtractorContext)
| 162 | } |
| 163 | |
| 164 | function handleTypeAlias(node: SyntaxNode, ctx: ExtractorContext): boolean { |
| 165 | const typeName = getChildByField(node, 'name'); // type_name wrapper |
| 166 | const nameNode = typeName ? getChildByField(typeName, 'name') : null; |
| 167 | if (nameNode) { |
| 168 | ctx.createNode('type_alias', atomText(nameNode, ctx.source), node, { |
| 169 | signature: collapseWs(getNodeText(node, ctx.source)).slice(0, 200), |
| 170 | }); |
| 171 | } |
| 172 | return true; |
| 173 | } |
| 174 | |
| 175 | function handlePpDefine(node: SyntaxNode, ctx: ExtractorContext): boolean { |
| 176 | const lhs = getChildByField(node, 'lhs'); |
no test coverage detected