Repository navigation
Conversation
|
Thanks for the pull request, @m3lonxd. A maintainer will review it soon. Want to talk it through while it is in review? Come join us on our Discord server. For longer-form discussion there is also GitHub Discussions. A couple of things that speed up review: make sure the test suite passes on Python 3.11 and 3.13, and that the change keeps extraction deterministic. |
There was a problem hiding this comment.
Graphify review 
1 possible issue to check · High impact
The added tests create TypeScript fixtures and check extracted method and call edges, including cases that should not resolve.
1 possible issue we couldn't confirm
- Test expects
Base['\uD83D']to fail closed, butBasedeclares a member with that same lone-surrogate key ·tests/test_ts_indexed_access_properties.py:229
They don't change the score.
Code graph · 4837 functions depend on this change
- 3 functions became more coupled.
extract()(1431 callers),extract_js()(106 callers),walk()(1 callers). - 58 of 659 test files are affected by this change.
- Gate, test list and every flagged function: in the Graphify check.
Reviewed e8d7625 · 1 of 1 earlier findings resolved · 2 earlier findings not re-checked
Extractor accuracy (Swift #5641, Apex #5627, Python #5647, TypeScript #5604/#5614/#5612, Bash caller-var #5602), GitHub Actions run-step extraction (#5603), incremental correctness (#5634/#5638/#5636), symlink and semantic-cache fixes (#5617/#5618), export/report hardening and perf (#5643/#5644/#5645/#5646/#5619/#5620/#5621), and CLI/docs/skill/install work (#5629/#5628/#5626/#5624/#5623/#5625/#5642/#5583). AST cache schema 59 to 60; Swift/Apex/Python/Bash/GHA inputs re-extract on first build. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Landed in v0.9.124 (just released to PyPI), cherry-picked with your authorship preserved so it shows under your name in the history. Thanks @m3lonxd for extracting callable properties typed via indexed access — verified green in the full suite and, where applicable, smoke-tested against the published package. 🙏 |
Fixes #5599.
What changed
lookup_type) resolution ingraphify/extractors/engine.py(_ts_unwrap_type,_ts_lookup_key_name,_ts_resolve_indexed_target,_ts_indexed_callable_property) so TypeScriptproperty_signaturemembers typed asStore['run'](or chainedStore['leaf']['exec'], double-quoted, or parenthesized) are recognized as callable when the referenced same-fileinterfaceortypealias member is amethod_signatureor callable property._ts_indexed_callable_propertyinto_js_member_nidcollision salting,type_alias_declarationcallable member extraction, andinterface_bodyproperty_signatureextraction (leaving non-lookup interface properties such ascallback: () => numberuntouched and keepinggraphify/cache.pyunchanged).CycleA['f'] -> CycleB['g']).Verification
tests/test_ts_indexed_access_properties.pyfail onorigin/v8(3 failed) and pass after the fix (40 passed acrosstest_ts_indexed_access_properties.py,test_ts_object_alias_methods.py,test_ts_typed_property_receivers.py,test_cross_language_call_resolution.py).pytest -q tests/test_extract.py -k "ts or typescript or interface or property":386 passed, 1 xfailed.ruff check,pyright tests/test_ts_indexed_access_properties.py(0 errors), andpython -m tools.skillgen --check(134 artifacts match) passed cleanly.