[FIR] Make FirPlaceholderProjection having source element

This commit is contained in:
Victor Petukhov
2021-10-26 13:39:41 +03:00
parent 5047751b85
commit 697ef03d57
15 changed files with 107 additions and 21 deletions
@@ -85,6 +85,7 @@ object FirTreeBuilder : AbstractFirTreeBuilder() {
val constExpression by element(Expression, expression)
val typeProjection by element(TypeRef)
val starProjection by element(TypeRef, typeProjection)
val placeholderProjection by element(TypeRef, typeProjection)
val typeProjectionWithVariance by element(TypeRef, typeProjection)
val argumentList by element(Expression)
val call by sealedElement(Expression, statement) // TODO: may smth like `CallWithArguments` or `ElementWithArguments`?
@@ -453,11 +453,6 @@ object ImplementationConfigurator : AbstractFirTreeImplementationConfigurator()
default("name", "Name.special(\"<\${diagnostic.reason}>\")")
}
impl(typeProjection, "FirTypePlaceholderProjection") {
kind = Object
noSource()
}
impl(breakExpression) {
defaultTypeRefWithSource("FirImplicitNothingTypeRef")
useTypes(implicitNothingTypeRefType)