FIR IC: remove unnecessary lookup tracking in retrun type calc
This commit is contained in:
-3
@@ -245,9 +245,6 @@ private class ReturnTypeCalculatorWithJump(
|
|||||||
val baseDeclaration = baseSymbol.fir as FirTypedDeclaration
|
val baseDeclaration = baseSymbol.fir as FirTypedDeclaration
|
||||||
val baseReturnTypeRef = tryCalculateReturnType(baseDeclaration)
|
val baseReturnTypeRef = tryCalculateReturnType(baseDeclaration)
|
||||||
val baseReturnType = baseReturnTypeRef.type
|
val baseReturnType = baseReturnTypeRef.type
|
||||||
session.lookupTracker?.recordTypeResolveAsLookup(
|
|
||||||
baseReturnTypeRef, declaration.source, session.firProvider.getFirCallableContainerFile(declaration.symbol)?.source
|
|
||||||
)
|
|
||||||
val coneType = substitutor.substituteOrSelf(baseReturnType)
|
val coneType = substitutor.substituteOrSelf(baseReturnType)
|
||||||
val returnType = declaration.returnTypeRef.resolvedTypeFromPrototype(coneType)
|
val returnType = declaration.returnTypeRef.resolvedTypeFromPrototype(coneType)
|
||||||
declaration.replaceReturnTypeRef(returnType)
|
declaration.replaceReturnTypeRef(returnType)
|
||||||
|
|||||||
Reference in New Issue
Block a user