(language: string, node: Node)
| 251 | } |
| 252 | |
| 253 | function shouldSkipNode(language: string, node: Node): boolean { |
| 254 | if (node.type === 'variable_declarator') { |
| 255 | return ( |
| 256 | !['javascript', 'javascriptreact', 'typescript', 'typescriptreact'].includes(language) || |
| 257 | !isFunctionVariableDeclarator(node) |
| 258 | ); |
| 259 | } |
| 260 | |
| 261 | if (node.type === 'lexical_declaration') { |
| 262 | return true; |
| 263 | } |
| 264 | |
| 265 | if (node.type === 'type_declaration') { |
| 266 | return true; |
| 267 | } |
| 268 | |
| 269 | return false; |
| 270 | } |
| 271 | |
| 272 | function getSymbolRangeNode(node: Node): Node { |
| 273 | const parent = node.parent; |
no test coverage detected