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 <noreply@anthropic.com>
(cherry picked from commit aed98d6395)
This commit is contained in:
ayushcodes10 authored and safishamsi committed 2026-09-17 11:03:41 +01:00
1 parent 2595d62859
commit 492ea4fda8
1 file changed
+8
+8
View File
@@ -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