[FIR] Remove FirOperatorCall node from fir tree
This commit is contained in:
-4
@@ -174,10 +174,6 @@ object BuilderConfigurator : AbstractBuilderConfigurator<FirTreeBuilder>(FirTree
|
||||
default("resolvePhase", "FirResolvePhase.RAW_FIR")
|
||||
}
|
||||
|
||||
builder(operatorCall) {
|
||||
parents += callBuilder
|
||||
}
|
||||
|
||||
builder(typeOperatorCall) {
|
||||
parents += callBuilder
|
||||
default("argumentList") {
|
||||
|
||||
-1
@@ -83,7 +83,6 @@ object FirTreeBuilder : AbstractFirTreeBuilder() {
|
||||
val argumentList = element("ArgumentList", Expression)
|
||||
val call = element("Call", Expression, statement) // TODO: may smth like `CallWithArguments` or `ElementWithArguments`?
|
||||
val annotationCall = element("AnnotationCall", Expression, expression, call)
|
||||
val operatorCall = element("OperatorCall", Expression, expression, call)
|
||||
val comparisonExpression = element("ComparisonExpression", Expression, expression)
|
||||
val typeOperatorCall = element("TypeOperatorCall", Expression, expression, call)
|
||||
val assignmentOperatorStatement = element("AssignmentOperatorStatement", Expression, statement)
|
||||
|
||||
-5
@@ -225,11 +225,6 @@ object ImplementationConfigurator : AbstractFirTreeImplementationConfigurator()
|
||||
}
|
||||
}
|
||||
|
||||
impl(operatorCall) {
|
||||
default("typeRef", "FirImplicitTypeRefImpl(null)")
|
||||
useTypes(implicitTypeRefType)
|
||||
}
|
||||
|
||||
impl(comparisonExpression) {
|
||||
default("typeRef", "FirImplicitBooleanTypeRef(null)")
|
||||
useTypes(implicitBooleanTypeRefType)
|
||||
|
||||
-4
@@ -207,10 +207,6 @@ object NodeConfigurator : AbstractFieldConfigurator<FirTreeBuilder>(FirTreeBuild
|
||||
+field("calleeReference", namedReference)
|
||||
}
|
||||
|
||||
operatorCall.configure {
|
||||
+field("operation", operationType)
|
||||
}
|
||||
|
||||
comparisonExpression.configure {
|
||||
+field("operation", operationType)
|
||||
+field("compareToCall", functionCall)
|
||||
|
||||
Reference in New Issue
Block a user