MCPcopy Create free account
hub / github.com/effect-app/libs / nodeRange

Function nodeRange

repos/effect/packages/tools/jsdocs/src/Jsdocs.ts:2531–2533  ·  view source on GitHub ↗
(node: ts.Node)

Source from the content-addressed store, hash-verified

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)

Callers 6

inlineLinkSymbolFunction · 0.85
parseDocumentedTsFunction · 0.85
publicDeclarationRangeFunction · 0.85
parseTsMembersFunction · 0.85
parseNamespaceTsFunction · 0.85
parseSourceFileDocsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…