(file: ts.SourceFile)
| 528 | |
| 529 | export function getImportStringLiteralsFromSourceFile(sourceFile: ts.SourceFile): ts.StringLiteral[] { |
| 530 | const output: ts.StringLiteral[] = []; |
| 531 | for (const statement of sourceFile.statements) { |
| 532 | if (ts.isImportDeclaration(statement)) { |
| 533 | const importDeclaration: ts.ImportDeclaration = statement; |
| 534 | if (ts.isStringLiteral(importDeclaration.moduleSpecifier)) { |
| 535 | output.push(importDeclaration.moduleSpecifier); |
no outgoing calls
no test coverage detected