FIR: add replaceSource to all FIR tree nodes
This commit is contained in:
+3
@@ -377,6 +377,9 @@ 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 {
|
||||
|
||||
+3
@@ -23,6 +23,9 @@ 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,4 +732,7 @@ object FirStub : FirElement {
|
||||
override fun <D> transformChildren(transformer: FirTransformer<D>, data: D): FirElement {
|
||||
return this
|
||||
}
|
||||
|
||||
override fun replaceSource(newSource: FirSourceElement?) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user