[FIR] Move ReturnTypeCalculator to :fir:providers module

Also make it an abstract class and turn ReturnTypeCalculatorForFullBodyResolve
  into object (because it has no state and there is no need to create
  different instances of it)
This commit is contained in:
Dmitriy Novozhilov
2022-03-15 11:06:08 +03:00
committed by teamcity
parent ff1e2c05bf
commit effa3f197a
6 changed files with 9 additions and 10 deletions
@@ -21,7 +21,7 @@ class SimpleDiagnosticsCollector(
return CheckerRunningDiagnosticCollectorVisitor(
MutableCheckerContext(
this,
ReturnTypeCalculatorForFullBodyResolve()
ReturnTypeCalculatorForFullBodyResolve
),
components
)