You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(typescript): add tsc_only toggle and surface synthesized anonymous callables (#179)
* feat(typescript): add tsc_only toggle and surface synthesized anonymous callables
Drop reliance on the obsolete `--call-graph-provider both`. Add a configurable
`tsc_only` knob on the TypeScript codeanalyzer config that passes `--tsc-only`
(codeanalyzer-typescript >= 0.4.2) to pin the resolver-based call graph.
Materialize Jelly-resolved anonymous callbacks as `TSSynthesizedCallable` so
anonymous call-graph edges don't dangle. Wire `get_synthesized_callables`
through the in-process, Neo4j, and facade backends, and add the nodes to the
NetworkX call graph.
Bump codeanalyzer-typescript 0.4.0 -> 0.4.3.
Closes#174
* docs: clarify project_path is optional (and only validated when passed) on the Neo4j backend
The existence check is keyed off the path, not the backend: any non-None
project_path is resolved and must be a directory on every backend, while None
skips validation entirely (the Neo4j backends read their graph out of band over
Bolt). Spell this out in `_normalize_project_path`, the java/python/typescript
factory docstrings, and the README Neo4j example.
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,6 +114,8 @@ analysis = CLDK.python(
114
114
classes = analysis.get_all_classes()
115
115
```
116
116
117
+
> **`project_path` with the Neo4j backend:** it's **optional** — the graph is read over Bolt, so you can omit it as shown above. CLDK validates `project_path` only when you actually pass one (it must exist and be a directory, on every backend); passing `None` skips that check. Supply a real path only if you also need on-disk source access (e.g. file content/snippets) alongside the graph.
118
+
117
119
> **Deprecation:** the old `CLDK(language="java").analysis(...)` entry point still works as a thin compatibility shim (it emits a `DeprecationWarning`). Prefer the `CLDK.java()` / `CLDK.python()` / `CLDK.typescript()` factory methods.
0 commit comments