In `FirFunctionCallRefinementExtension.intercept`,...
# compiler
y
In
FirFunctionCallRefinementExtension.intercept
, I get
CallInfo
and a
FirNamedFunctionSymbol
, from which I can get
valueParameterSymbols
. Is there an easy way to pair up those value params to the
CallInfo.arguments
? I can do it manually, but wondering if there's a utility in the compiler already. In other words, given some
arguments
and
valueParameterSymbols
, I want to associate the arguments to the parameters, while respecting named arguments, varargs, trailing lambdas, etc.
d
Interception happens before creation of the candidate, so the argument mapping is not built yet at this point (it's part of the candidate processing). But you can call it manually using this utility. It's declared on the
BodyResolveComponents
receiver, but it effectively uses only
session
and
scopeSession
from it, so you can just make your own dummy implementation.
thank you color 1