(node)
| 162579 | return isNonVariableTopLevelDeclaration(node) || ts.isVariableStatement(node); |
| 162580 | } |
| 162581 | function isNonVariableTopLevelDeclaration(node) { |
| 162582 | switch (node.kind) { |
| 162583 | case 256 /* SyntaxKind.FunctionDeclaration */: |
| 162584 | case 257 /* SyntaxKind.ClassDeclaration */: |
| 162585 | case 261 /* SyntaxKind.ModuleDeclaration */: |
| 162586 | case 260 /* SyntaxKind.EnumDeclaration */: |
| 162587 | case 259 /* SyntaxKind.TypeAliasDeclaration */: |
| 162588 | case 258 /* SyntaxKind.InterfaceDeclaration */: |
| 162589 | case 265 /* SyntaxKind.ImportEqualsDeclaration */: |
| 162590 | return true; |
| 162591 | default: |
| 162592 | return false; |
| 162593 | } |
| 162594 | } |
| 162595 | function forEachTopLevelDeclaration(statement, cb) { |
| 162596 | switch (statement.kind) { |
| 162597 | case 256 /* SyntaxKind.FunctionDeclaration */: |
no outgoing calls
no test coverage detected
searching dependent graphs…