[AA FIR] support symbol pointer restore for value parameter from delegated setter
^KT-54051
This commit is contained in:
committed by
Space Team
parent
55ca2d608b
commit
dfc59d5d07
+2
-2
@@ -26,7 +26,7 @@ internal class KtFirValueParameterSymbolPointer(
|
||||
}
|
||||
|
||||
val function = ownerSymbol.firSymbol.fir as? FirFunction ?: return null
|
||||
val firValueParameterSymbol = function.valueParameters.getOrNull(index)?.takeIf { it.name == name } ?: return null
|
||||
return analysisSession.firSymbolBuilder.variableLikeBuilder.buildValueParameterSymbol(firValueParameterSymbol.symbol)
|
||||
val firValueParameterSymbol = function.valueParameters.getOrNull(index)?.symbol?.takeIf { it.name == name } ?: return null
|
||||
return analysisSession.firSymbolBuilder.variableLikeBuilder.buildValueParameterSymbol(firValueParameterSymbol)
|
||||
}
|
||||
}
|
||||
|
||||
+6
@@ -106,6 +106,12 @@ public class FirIdeNormalAnalysisSourceModuleSymbolByPsiTestGenerated extends Ab
|
||||
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/delegateField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedProp.kt")
|
||||
public void testDelegatedProp() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/delegatedProp.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("deprecated.kt")
|
||||
public void testDeprecated() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user