(node: Node)
| 238 | } |
| 239 | |
| 240 | function isFunctionVariableDeclarator(node: Node): boolean { |
| 241 | if (node.type !== 'variable_declarator') { |
| 242 | return false; |
| 243 | } |
| 244 | |
| 245 | const valueNode = node.childForFieldName('value'); |
| 246 | if (!valueNode) { |
| 247 | return false; |
| 248 | } |
| 249 | |
| 250 | return valueNode.type === 'arrow_function' || valueNode.type === 'function_expression'; |
| 251 | } |
| 252 | |
| 253 | function shouldSkipNode(language: string, node: Node): boolean { |
| 254 | if (node.type === 'variable_declarator') { |