mirror of
https://github.com/github/codeql.git
synced 2026-06-09 15:04:14 +02:00
In 2.4.0's unified parameters model, IrPropertyReference stores the bound extension receiver in the arguments list (indexed via the getter's extension receiver parameter). Our codeQlExtensionReceiver compat function only handled the case where symbol.owner is an IrFunction, returning null for IrPropertyReference (where symbol.owner is IrProperty). Fix: when the direct cast to IrFunction fails, look at the getter/setter function's parameters to find the extension receiver index. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>