[AA] KtPsiBasedSymbolPointer: drop redundant comments

^KT-54311
This commit is contained in:
Dmitrii Gridin
2022-10-17 12:42:15 +02:00
committed by Space Team
parent f7bd79a151
commit 588c0bbb03
@@ -37,11 +37,6 @@ public class KtPsiBasedSymbolPointer<S : KtSymbol>(private val psiPointer: Smart
public fun <S : KtSymbol> createForSymbolFromSource(symbol: S): KtPsiBasedSymbolPointer<S>? {
if (symbol.origin != KtSymbolOrigin.SOURCE) return null
// If symbol points to a generated member, we won't be able to recover it later on, because there is no corresponding
// psi by which it can be found
// (intersection | substitution) overrides are intermediate, non-materialized (i.e., fake) members, coming from super type(s).
// Therefore, no corresponding psi either.
val psi = when (val psi = symbol.psi) {
is KtDeclaration -> psi
is KtFile -> psi