[AA] KT-55098 Render context receivers in declarations & function types

- `context(...)` is a modifier that must precede annotations and other
  modifiers, so for declarations it is rendered in
  `renderAnnotationsAndModifiers`.
- Ignore `@ContextFunctionTypeParams` in the annotation list of FE10
  types, as the annotation is an implementation detail of context
  receivers in K1 and shouldn't be rendered.

^KT-55098 fixed
This commit is contained in:
Marco Pennekamp
2022-12-02 16:12:07 +01:00
committed by Space Team
parent e2804693bf
commit 2cd16f055a
33 changed files with 380 additions and 30 deletions
@@ -1,3 +1,4 @@
context(kotlin.Int, s@kotlin.String)
class A {
constructor(int: kotlin.Int)
}
@@ -1 +1,2 @@
context(kotlin.Int, s@kotlin.String)
fun y()
@@ -1,2 +1,3 @@
context(kotlin.Int, s@kotlin.String)
val y: kotlin.Int
get()
@@ -1,9 +1,13 @@
context(A)
fun tooo()
context(B)
fun tooo()
context(A, B)
fun tooo()
context(B, A)
fun tooo()
class A