[FIR] Minor. Add @BaseTransformedType to FirWhenBranch
This commit is contained in:
@@ -5,10 +5,12 @@
|
|||||||
|
|
||||||
package org.jetbrains.kotlin.fir.expressions
|
package org.jetbrains.kotlin.fir.expressions
|
||||||
|
|
||||||
|
import org.jetbrains.kotlin.fir.BaseTransformedType
|
||||||
import org.jetbrains.kotlin.fir.FirElement
|
import org.jetbrains.kotlin.fir.FirElement
|
||||||
import org.jetbrains.kotlin.fir.visitors.FirTransformer
|
import org.jetbrains.kotlin.fir.visitors.FirTransformer
|
||||||
import org.jetbrains.kotlin.fir.visitors.FirVisitor
|
import org.jetbrains.kotlin.fir.visitors.FirVisitor
|
||||||
|
|
||||||
|
@BaseTransformedType
|
||||||
interface FirWhenBranch : FirElement {
|
interface FirWhenBranch : FirElement {
|
||||||
// NB: we can represent subject, if it's inside, as a special kind of expression
|
// NB: we can represent subject, if it's inside, as a special kind of expression
|
||||||
// when (mySubject) {
|
// when (mySubject) {
|
||||||
|
|||||||
+1
-1
@@ -456,7 +456,7 @@ abstract class FirTransformer<in D> : FirVisitor<CompositeTransformResult<FirEle
|
|||||||
return transformTypeRefWithNullability(userTypeRef, data)
|
return transformTypeRefWithNullability(userTypeRef, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
open fun <E : FirElement> transformWhenBranch(whenBranch: E, data: D): CompositeTransformResult<E> {
|
open fun transformWhenBranch(whenBranch: FirWhenBranch, data: D): CompositeTransformResult<FirWhenBranch> {
|
||||||
return transformElement(whenBranch, data)
|
return transformElement(whenBranch, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user