FIR: provide 'replaceSource' only for FirQualifiedAccess inheritors

This commit is contained in:
Mikhail Glukhikh
2021-03-12 13:00:42 +03:00
parent 4d65b0ef5a
commit c641fa739b
263 changed files with 181 additions and 835 deletions
@@ -381,9 +381,6 @@ class FirFakeArgumentForCallableReference(
override fun <D> transformChildren(transformer: FirTransformer<D>, data: D): FirElement {
error("should not be called")
}
override fun replaceSource(newSource: FirSourceElement?) {
}
}
fun ConeKotlinType.isKCallableType(): Boolean {
@@ -23,9 +23,6 @@ class FirControlFlowGraphReferenceImpl(
override fun <D> transformChildren(transformer: FirTransformer<D>, data: D): FirControlFlowGraphReference {
return this
}
override fun replaceSource(newSource: FirSourceElement?) {
}
}
class DataFlowInfo(val variableStorage: VariableStorage, val flowOnNodes: Map<CFGNode<*>, Flow>)
@@ -732,7 +732,4 @@ object FirStub : FirElement {
override fun <D> transformChildren(transformer: FirTransformer<D>, data: D): FirElement {
return this
}
override fun replaceSource(newSource: FirSourceElement?) {
}
}
@@ -34,7 +34,6 @@ class FirIntegerOperatorCall @FirImplementationDetail constructor(
argumentList: FirArgumentList,
calleeReference: FirNamedReference,
) : FirFunctionCallImpl(
source,
typeRef,
annotations,
typeArguments,
@@ -43,6 +42,7 @@ class FirIntegerOperatorCall @FirImplementationDetail constructor(
extensionReceiver,
argumentList,
calleeReference,
source,
)
@FirBuilderDsl