MCPcopy Create free account
hub / github.com/Effect-TS/effect / isLocalSourceFile

Function isLocalSourceFile

packages/tools/jsdocs/src/Jsdocs.ts:1759–1763  ·  view source on GitHub ↗
(cwd: string, sourceFile: ts.SourceFile)

Source from the content-addressed store, hash-verified

1757}
1758
1759function isLocalSourceFile(cwd: string, sourceFile: ts.SourceFile): boolean {
1760 if (sourceFile.isDeclarationFile) return false
1761 const relative = path.relative(cwd, sourceFile.fileName)
1762 return relative === "" || (!relative.startsWith("..") && !path.isAbsolute(relative))
1763}
1764
1765function symbolDeclarations(symbol: ts.Symbol, checker: ts.TypeChecker): ReadonlyArray<ts.Declaration> {
1766 const target = resolvedSymbolTarget(symbol, checker)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected