[FIR] Split FirAnonymousFunction to expression and declaration
This commit is contained in:
+2
-1
@@ -58,7 +58,8 @@ object FirTreeBuilder : AbstractFirTreeBuilder() {
|
||||
val constructor = element("Constructor", Declaration, function, callableMemberDeclaration, typeParameterRefsOwner)
|
||||
val file = element("File", Declaration, annotatedDeclaration)
|
||||
|
||||
val anonymousFunction = element("AnonymousFunction", Declaration, function, expression, typeParametersOwner)
|
||||
val anonymousFunction = element("AnonymousFunction", Declaration, function, typeParametersOwner)
|
||||
val anonymousFunctionExpression = element("AnonymousFunctionExpression", Expression, expression)
|
||||
|
||||
val anonymousObject = element("AnonymousObject", Declaration, klass, controlFlowGraphOwner)
|
||||
val anonymousObjectExpression = element("AnonymousObjectExpression", Expression, expression)
|
||||
|
||||
+2
@@ -320,6 +320,8 @@ object ImplementationConfigurator : AbstractFirTreeImplementationConfigurator()
|
||||
default("resolvePhase", "FirResolvePhase.DECLARATIONS")
|
||||
}
|
||||
|
||||
noImpl(anonymousFunctionExpression)
|
||||
|
||||
impl(propertyAccessor) {
|
||||
default("receiverTypeRef") {
|
||||
value = "null"
|
||||
|
||||
+5
@@ -294,6 +294,11 @@ object NodeConfigurator : AbstractFieldConfigurator<FirTreeBuilder>(FirTreeBuild
|
||||
}
|
||||
+booleanField("isLambda")
|
||||
+typeParameters
|
||||
+field(typeRef, withReplace = true)
|
||||
}
|
||||
|
||||
anonymousFunctionExpression.configure {
|
||||
+field(anonymousFunction).withTransform()
|
||||
}
|
||||
|
||||
typeParameter.configure {
|
||||
|
||||
Reference in New Issue
Block a user