[FIR] Add exhaustive checker for when expressions
Also remove generating default else branch introduced in38fa0122and54eb4cf9
This commit is contained in:
+1
@@ -425,6 +425,7 @@ object ImplementationConfigurator : AbstractFirTreeImplementationConfigurator()
|
||||
|
||||
impl(whenExpression) {
|
||||
default("calleeReference", "FirStubReference()")
|
||||
defaultFalse("isExhaustive")
|
||||
useTypes(stubReferenceType)
|
||||
}
|
||||
|
||||
|
||||
+1
@@ -500,6 +500,7 @@ object NodeConfigurator : AbstractFieldConfigurator() {
|
||||
+field("subject", expression, nullable = true).withTransform()
|
||||
+field("subjectVariable", variable.withArgs("F" to "*"), nullable = true)
|
||||
+fieldList("branches", whenBranch).withTransform()
|
||||
+booleanField("isExhaustive", withReplace = true)
|
||||
needTransformOtherChildren()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user