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

Function isLocalSourceFile

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

Source from the content-addressed store, hash-verified

1706}
1707
1708function isLocalSourceFile(cwd: string, sourceFile: ts.SourceFile): boolean {
1709 if (sourceFile.isDeclarationFile) return false
1710 const relative = path.relative(cwd, sourceFile.fileName)
1711 return relative === "" || (!relative.startsWith("..") && !path.isAbsolute(relative))
1712}
1713
1714function symbolDeclarations(symbol: ts.Symbol, checker: ts.TypeChecker): ReadonlyArray<ts.Declaration> {
1715 const target = resolvedSymbolTarget(symbol, checker)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected