From 492ea4fda8385f42a0da1d72c36255ac3dce97d8 Mon Sep 17 00:00:00 2001 From: ayushcodes10 Date: Wed, 16 Sep 2026 14:19:39 +0530 Subject: [PATCH] Thread the object receiver into raw_calls for Kotlin Still toward issue 1698. Still no observable behavior change on its own: nothing reads the new kotlin_object_receiver field yet, so existing edges are unaffected. The resolver that consumes it lands in the next commit. Co-Authored-By: Claude Sonnet 5 (cherry picked from commit aed98d6395ffcfea4d1d77a7a9a08026f18e9f77) --- graphify/extractors/engine.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/graphify/extractors/engine.py b/graphify/extractors/engine.py index 10671a9e8..04cb471f7 100644 --- a/graphify/extractors/engine.py +++ b/graphify/extractors/engine.py @@ -6390,6 +6390,14 @@ def _extract_generic( if kotlin_qualified_prefix: rc_entry["lang"] = "kotlin" rc_entry["qualified_prefix"] = kotlin_qualified_prefix + # Kotlin object/class-qualified member call (#1698): the + # receiver + lang tag let _resolve_kotlin_member_calls + # claim it once the in-file bare-name lookup above (the + # only reason a real definition reaches raw_calls at + # all) has already failed. + if kotlin_object_receiver: + rc_entry["lang"] = "kotlin" + rc_entry["kotlin_object_receiver"] = kotlin_object_receiver raw_calls.append(rc_entry) # Indirect dispatch: a function passed BY NAME as a call argument