[FIR] drop redundant replace from wrapped expression
They were introduced for lazy ^KT-59687
This commit is contained in:
committed by
Space Team
parent
a81523fa74
commit
43705d9a75
-2
@@ -32,7 +32,5 @@ abstract class FirLambdaArgumentExpression : FirWrappedArgumentExpression() {
|
||||
|
||||
abstract override fun replaceAnnotations(newAnnotations: List<FirAnnotation>)
|
||||
|
||||
abstract override fun replaceExpression(newExpression: FirExpression)
|
||||
|
||||
abstract override fun <D> transformAnnotations(transformer: FirTransformer<D>, data: D): FirLambdaArgumentExpression
|
||||
}
|
||||
|
||||
-2
@@ -34,7 +34,5 @@ abstract class FirNamedArgumentExpression : FirWrappedArgumentExpression() {
|
||||
|
||||
abstract override fun replaceAnnotations(newAnnotations: List<FirAnnotation>)
|
||||
|
||||
abstract override fun replaceExpression(newExpression: FirExpression)
|
||||
|
||||
abstract override fun <D> transformAnnotations(transformer: FirTransformer<D>, data: D): FirNamedArgumentExpression
|
||||
}
|
||||
|
||||
-2
@@ -32,7 +32,5 @@ abstract class FirSpreadArgumentExpression : FirWrappedArgumentExpression() {
|
||||
|
||||
abstract override fun replaceAnnotations(newAnnotations: List<FirAnnotation>)
|
||||
|
||||
abstract override fun replaceExpression(newExpression: FirExpression)
|
||||
|
||||
abstract override fun <D> transformAnnotations(transformer: FirTransformer<D>, data: D): FirSpreadArgumentExpression
|
||||
}
|
||||
|
||||
-2
@@ -32,7 +32,5 @@ abstract class FirWrappedArgumentExpression : FirWrappedExpression() {
|
||||
|
||||
abstract override fun replaceAnnotations(newAnnotations: List<FirAnnotation>)
|
||||
|
||||
abstract override fun replaceExpression(newExpression: FirExpression)
|
||||
|
||||
abstract override fun <D> transformAnnotations(transformer: FirTransformer<D>, data: D): FirWrappedArgumentExpression
|
||||
}
|
||||
|
||||
-4
@@ -32,9 +32,5 @@ abstract class FirWrappedDelegateExpression : FirWrappedExpression() {
|
||||
|
||||
abstract override fun replaceAnnotations(newAnnotations: List<FirAnnotation>)
|
||||
|
||||
abstract override fun replaceExpression(newExpression: FirExpression)
|
||||
|
||||
abstract fun replaceDelegateProvider(newDelegateProvider: FirExpression)
|
||||
|
||||
abstract override fun <D> transformAnnotations(transformer: FirTransformer<D>, data: D): FirWrappedDelegateExpression
|
||||
}
|
||||
|
||||
@@ -31,7 +31,5 @@ abstract class FirWrappedExpression : FirExpression() {
|
||||
|
||||
abstract override fun replaceAnnotations(newAnnotations: List<FirAnnotation>)
|
||||
|
||||
abstract fun replaceExpression(newExpression: FirExpression)
|
||||
|
||||
abstract override fun <D> transformAnnotations(transformer: FirTransformer<D>, data: D): FirWrappedExpression
|
||||
}
|
||||
|
||||
-4
@@ -50,8 +50,4 @@ internal class FirLambdaArgumentExpressionImpl(
|
||||
override fun replaceAnnotations(newAnnotations: List<FirAnnotation>) {
|
||||
annotations = newAnnotations.toMutableOrEmpty()
|
||||
}
|
||||
|
||||
override fun replaceExpression(newExpression: FirExpression) {
|
||||
expression = newExpression
|
||||
}
|
||||
}
|
||||
|
||||
-4
@@ -52,8 +52,4 @@ internal class FirNamedArgumentExpressionImpl(
|
||||
override fun replaceAnnotations(newAnnotations: List<FirAnnotation>) {
|
||||
annotations = newAnnotations.toMutableOrEmpty()
|
||||
}
|
||||
|
||||
override fun replaceExpression(newExpression: FirExpression) {
|
||||
expression = newExpression
|
||||
}
|
||||
}
|
||||
|
||||
-4
@@ -50,8 +50,4 @@ internal class FirSpreadArgumentExpressionImpl(
|
||||
override fun replaceAnnotations(newAnnotations: List<FirAnnotation>) {
|
||||
annotations = newAnnotations.toMutableOrEmpty()
|
||||
}
|
||||
|
||||
override fun replaceExpression(newExpression: FirExpression) {
|
||||
expression = newExpression
|
||||
}
|
||||
}
|
||||
|
||||
-8
@@ -52,12 +52,4 @@ internal class FirWrappedDelegateExpressionImpl(
|
||||
override fun replaceAnnotations(newAnnotations: List<FirAnnotation>) {
|
||||
annotations = newAnnotations.toMutableOrEmpty()
|
||||
}
|
||||
|
||||
override fun replaceExpression(newExpression: FirExpression) {
|
||||
expression = newExpression
|
||||
}
|
||||
|
||||
override fun replaceDelegateProvider(newDelegateProvider: FirExpression) {
|
||||
delegateProvider = newDelegateProvider
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -641,11 +641,11 @@ object NodeConfigurator : AbstractFieldConfigurator<FirTreeBuilder>(FirTreeBuild
|
||||
}
|
||||
|
||||
wrappedExpression.configure {
|
||||
+field(expression).withReplace()
|
||||
+field(expression)
|
||||
}
|
||||
|
||||
wrappedDelegateExpression.configure {
|
||||
+field("delegateProvider", expression).withReplace()
|
||||
+field("delegateProvider", expression)
|
||||
}
|
||||
|
||||
enumEntryDeserializedAccessExpression.configure {
|
||||
|
||||
Reference in New Issue
Block a user