Caleb B
10/19/2025, 11:17 PMFirReference signifies?dmitriy.novozhilov
10/20/2025, 9:11 AMdmitriy.novozhilov
10/20/2025, 9:14 AMFirReference represents the reference from some expression to some declaration. E.g. in the following code
fun foo() {} // (1)
fun test() {
foo()
}
there is a function call foo() which
• before resolution references to something called foo, which is represented by FirSimpleNamedReference
• after resolution, when the compiler understood that the function (1) is called, the reference in the FirFunctionCall is replaced with FirResolvedNamedReference, which contains the symbol of the function (1)