[compiler] introduce dedicated Fir declaration for dangling modifier lists (KTIJ-23008)
ensure fir annotations are included in FirDanglingModifierList and resolved, dedicated DanglingTopLevelModifierListStructureElement exists for top level lists only, class level lists are processed by containing structure element
This commit is contained in:
@@ -57,6 +57,9 @@ sealed class KtFakeSourceElementKind : KtSourceElementKind() {
|
||||
// with a fake sources which refers to the target expression
|
||||
object GeneratedLambdaLabel : KtFakeSourceElementKind()
|
||||
|
||||
// for error element which is created for dangling modifier lists
|
||||
object DanglingModifierList : KtFakeSourceElementKind()
|
||||
|
||||
// for lambdas & functions with expression bodies the return statement is added
|
||||
// with a fake sources which refers to the return target
|
||||
sealed class ImplicitReturn : KtFakeSourceElementKind() {
|
||||
|
||||
Reference in New Issue
Block a user