(node: ts.Node)
| 2529 | const diagnostics: Array<JSDocDiagnostic> = [] |
| 2530 | const sourceFile = ts.createSourceFile("example.ts", code, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS) |
| 2531 | for (const statement of sourceFile.statements) { |
| 2532 | if (!ts.isImportDeclaration(statement) || !ts.isStringLiteralLike(statement.moduleSpecifier)) continue |
| 2533 | if (statement.importClause?.isTypeOnly) continue |
| 2534 | const source = statement.moduleSpecifier.text |
| 2535 | const namedAllowed = policy.allowedNamedBySource.get(source) |
| 2536 | const namespaceModule = policy.namespaceModuleBySource.get(source) |
no outgoing calls
no test coverage detected
searching dependent graphs…