Skip to content

v0.1.61 — Kotlin static-receiver capture (Kythe-gap arc slice 2/3)

Choose a tag to compare

@fiveapplesonthetable fiveapplesonthetable released this 17 May 07:13
· 124 commits to master since this release

Kytge-gap arc, slice 2/3. Kotlin static-receiver capture,
symmetric with v0.1.60's Java pattern. Foo.bar
navigation_expression with a class-named receiver now emits a
TypeUse ref to Foo alongside the existing FieldAccess ref
(latter preserved for backward compatibility).

Same PascalCase filter rejects local-var receivers
(myFoo.bar → no myFoo TypeUse). With v0.1.60, the Kythe-gap
arc has covered Java + Kotlin — the two highest-volume languages
in the AOSP corpus, and the two where polymorphism most hurts
the heuristic resolver.

E2E test: kotlin_static_receiver_capture — positive
(Foo.staticBar emits TypeUse ref to Foo), negative
(myFoo.instanceBar does NOT emit myFoo TypeUse).

Next: v0.1.62 — resolver narrowing that pairs the TypeUse ref
with the immediately-following Call ref to pin the method
dispatch. This is the slice that should actually move the
49.6% resolved% number.