[FIR] Render error properties and function in FirRenderer
This commit is contained in:
committed by
Space Team
parent
5beec6b543
commit
4c6b6dd700
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirErrorPropertyImpl
|
|||||||
FIR source kind: KtRealSourceElementKind
|
FIR source kind: KtRealSourceElementKind
|
||||||
|
|
||||||
FIR element rendered:
|
FIR element rendered:
|
||||||
<ERROR TYPE REF: Destructuring declarations are only allowed for local variables/values>
|
<ERROR PROPERTY: Destructuring declarations are only allowed for local variables/values>
|
||||||
+2
@@ -64,6 +64,8 @@ FILE: conflictingOverloads.ll.kt
|
|||||||
public get(): R|kotlin/Int|
|
public get(): R|kotlin/Int|
|
||||||
public final val u: R|kotlin/Int| = Int(20)
|
public final val u: R|kotlin/Int| = Int(20)
|
||||||
public get(): R|kotlin/Int|
|
public get(): R|kotlin/Int|
|
||||||
|
<ERROR PROPERTY: Destructuring declarations are only allowed for local variables/values>
|
||||||
|
<ERROR PROPERTY: Destructuring declarations are only allowed for local variables/values>
|
||||||
public final typealias TA = R|A|
|
public final typealias TA = R|A|
|
||||||
public final typealias TA = R|B|
|
public final typealias TA = R|B|
|
||||||
public final typealias BA = R|A|
|
public final typealias BA = R|A|
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
FILE: topLevelDestruction.kt
|
FILE: topLevelDestruction.kt
|
||||||
<ERROR TYPE REF: Destructuring declarations are only allowed for local variables/values>
|
<ERROR PROPERTY: Destructuring declarations are only allowed for local variables/values>
|
||||||
|
|||||||
@@ -319,6 +319,16 @@ class FirRenderer(
|
|||||||
propertyAccessorRenderer?.render(property)
|
propertyAccessorRenderer?.render(property)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun visitErrorProperty(errorProperty: FirErrorProperty) {
|
||||||
|
print("<ERROR PROPERTY: ${errorProperty.diagnostic.reason}>")
|
||||||
|
printer.newLine()
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun visitErrorFunction(errorFunction: FirErrorFunction) {
|
||||||
|
print("<ERROR FUNCTION: ${errorFunction.diagnostic.reason}>")
|
||||||
|
printer.newLine()
|
||||||
|
}
|
||||||
|
|
||||||
override fun visitBackingField(backingField: FirBackingField) {
|
override fun visitBackingField(backingField: FirBackingField) {
|
||||||
modifierRenderer?.renderModifiers(backingField)
|
modifierRenderer?.renderModifiers(backingField)
|
||||||
print("<explicit backing field>: ")
|
print("<explicit backing field>: ")
|
||||||
|
|||||||
Reference in New Issue
Block a user