[FIR] Generate _ instead of value for unused setters in FIR builders

This commit is contained in:
Dmitriy Novozhilov
2021-02-12 12:04:32 +03:00
committed by TeamCityServer
parent d696a488b5
commit 0e31551797
29 changed files with 31 additions and 31 deletions
@@ -78,7 +78,7 @@ open class FirConstructorBuilder : FirAbstractConstructorBuilder, FirAnnotationC
@Deprecated("Modification of 'controlFlowGraphReference' has no impact for FirConstructorBuilder", level = DeprecationLevel.HIDDEN)
override var controlFlowGraphReference: FirControlFlowGraphReference?
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -78,7 +78,7 @@ class FirPrimaryConstructorBuilder : FirAbstractConstructorBuilder, FirAnnotatio
@Deprecated("Modification of 'controlFlowGraphReference' has no impact for FirPrimaryConstructorBuilder", level = DeprecationLevel.HIDDEN)
override var controlFlowGraphReference: FirControlFlowGraphReference?
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -52,7 +52,7 @@ class FirAnnotationCallBuilder : FirCallBuilder, FirAnnotationContainerBuilder,
@Deprecated("Modification of 'typeRef' has no impact for FirAnnotationCallBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -46,7 +46,7 @@ class FirBinaryLogicExpressionBuilder : FirAnnotationContainerBuilder, FirExpres
@Deprecated("Modification of 'typeRef' has no impact for FirBinaryLogicExpressionBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -41,7 +41,7 @@ class FirBlockBuilder : FirAnnotationContainerBuilder, FirExpressionBuilder {
@Deprecated("Modification of 'typeRef' has no impact for FirBlockBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -45,7 +45,7 @@ class FirBreakExpressionBuilder : FirLoopJumpBuilder, FirAnnotationContainerBuil
@Deprecated("Modification of 'typeRef' has no impact for FirBreakExpressionBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -40,7 +40,7 @@ class FirClassReferenceExpressionBuilder : FirAnnotationContainerBuilder, FirExp
@Deprecated("Modification of 'typeRef' has no impact for FirClassReferenceExpressionBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -44,7 +44,7 @@ class FirComparisonExpressionBuilder : FirAnnotationContainerBuilder, FirExpress
@Deprecated("Modification of 'typeRef' has no impact for FirComparisonExpressionBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -61,7 +61,7 @@ class FirComponentCallBuilder : FirCallBuilder, FirAnnotationContainerBuilder, F
@Deprecated("Modification of 'typeRef' has no impact for FirComponentCallBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -45,7 +45,7 @@ class FirContinueExpressionBuilder : FirLoopJumpBuilder, FirAnnotationContainerB
@Deprecated("Modification of 'typeRef' has no impact for FirContinueExpressionBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -47,7 +47,7 @@ class FirElvisExpressionBuilder : FirAnnotationContainerBuilder, FirExpressionBu
@Deprecated("Modification of 'typeRef' has no impact for FirElvisExpressionBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -44,7 +44,7 @@ class FirEqualityOperatorCallBuilder : FirAnnotationContainerBuilder, FirExpress
@Deprecated("Modification of 'typeRef' has no impact for FirEqualityOperatorCallBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -40,7 +40,7 @@ class FirErrorExpressionBuilder : FirAnnotationContainerBuilder, FirExpressionBu
@Deprecated("Modification of 'typeRef' has no impact for FirErrorExpressionBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
@@ -58,7 +58,7 @@ class FirErrorResolvedQualifierBuilder : FirAbstractResolvedQualifierBuilder, Fi
@Deprecated("Modification of 'typeRef' has no impact for FirErrorResolvedQualifierBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -43,7 +43,7 @@ class FirGetClassCallBuilder : FirCallBuilder, FirAnnotationContainerBuilder, Fi
@Deprecated("Modification of 'typeRef' has no impact for FirGetClassCallBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -58,7 +58,7 @@ open class FirImplicitInvokeCallBuilder : FirAbstractFunctionCallBuilder, FirAnn
@Deprecated("Modification of 'typeRef' has no impact for FirImplicitInvokeCallBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -40,7 +40,7 @@ class FirLambdaArgumentExpressionBuilder : FirAnnotationContainerBuilder, FirExp
@Deprecated("Modification of 'typeRef' has no impact for FirLambdaArgumentExpressionBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -41,7 +41,7 @@ class FirLazyBlockBuilder : FirAnnotationContainerBuilder, FirExpressionBuilder
@Deprecated("Modification of 'typeRef' has no impact for FirLazyBlockBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -45,7 +45,7 @@ class FirNamedArgumentExpressionBuilder : FirAnnotationContainerBuilder, FirExpr
@Deprecated("Modification of 'typeRef' has no impact for FirNamedArgumentExpressionBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -55,7 +55,7 @@ class FirResolvedQualifierBuilder : FirAbstractResolvedQualifierBuilder, FirAnno
@Deprecated("Modification of 'classId' has no impact for FirResolvedQualifierBuilder", level = DeprecationLevel.HIDDEN)
override var classId: ClassId?
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -47,7 +47,7 @@ class FirReturnExpressionBuilder : FirAnnotationContainerBuilder, FirExpressionB
@Deprecated("Modification of 'typeRef' has no impact for FirReturnExpressionBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -40,7 +40,7 @@ class FirSpreadArgumentExpressionBuilder : FirAnnotationContainerBuilder, FirExp
@Deprecated("Modification of 'typeRef' has no impact for FirSpreadArgumentExpressionBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -44,7 +44,7 @@ class FirStringConcatenationCallBuilder : FirCallBuilder, FirAnnotationContainer
@Deprecated("Modification of 'typeRef' has no impact for FirStringConcatenationCallBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -50,21 +50,21 @@ class FirThisReceiverExpressionBuilder : FirQualifiedAccessBuilder, FirAnnotatio
@Deprecated("Modification of 'explicitReceiver' has no impact for FirThisReceiverExpressionBuilder", level = DeprecationLevel.HIDDEN)
override var explicitReceiver: FirExpression?
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
@Deprecated("Modification of 'dispatchReceiver' has no impact for FirThisReceiverExpressionBuilder", level = DeprecationLevel.HIDDEN)
override var dispatchReceiver: FirExpression
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
@Deprecated("Modification of 'extensionReceiver' has no impact for FirThisReceiverExpressionBuilder", level = DeprecationLevel.HIDDEN)
override var extensionReceiver: FirExpression
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -43,7 +43,7 @@ class FirThrowExpressionBuilder : FirAnnotationContainerBuilder, FirExpressionBu
@Deprecated("Modification of 'typeRef' has no impact for FirThrowExpressionBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -48,7 +48,7 @@ class FirTypeOperatorCallBuilder : FirCallBuilder, FirAnnotationContainerBuilder
@Deprecated("Modification of 'typeRef' has no impact for FirTypeOperatorCallBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -41,7 +41,7 @@ class FirWhenSubjectExpressionBuilder : FirAnnotationContainerBuilder, FirExpres
@Deprecated("Modification of 'typeRef' has no impact for FirWhenSubjectExpressionBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -42,7 +42,7 @@ class FirWrappedDelegateExpressionBuilder : FirAnnotationContainerBuilder, FirEx
@Deprecated("Modification of 'typeRef' has no impact for FirWrappedDelegateExpressionBuilder", level = DeprecationLevel.HIDDEN)
override var typeRef: FirTypeRef
get() = throw IllegalStateException()
set(value) {
set(_) {
throw IllegalStateException()
}
}
@@ -154,7 +154,7 @@ private fun SmartPrinter.printFieldInBuilder(field: FieldWithDefault, builder: B
println()
withIndent {
println("get() = throw IllegalStateException()")
println("set(value) {")
println("set(_) {")
withIndent {
println("throw IllegalStateException()")
}