[FIR] Unify diagnostic message in FIR dump for syntax error between PSI and LT
This commit is contained in:
committed by
Space Team
parent
aef9b129d2
commit
8e3022452e
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
fun f(p: (kotlin.Int, ERROR_TYPE(Symbol not found for p2)) -> ERROR(Unwrapped type is null), `<no name provided>`: ERROR(No type for parameter))
|
fun f(p: (kotlin.Int, ERROR_TYPE(Symbol not found for p2)) -> ERROR(Incomplete code), `<no name provided>`: ERROR(No type for parameter))
|
||||||
|
|
||||||
fun `<no name provided>`()
|
fun `<no name provided>`()
|
||||||
|
|||||||
Vendored
+2
-2
@@ -50,9 +50,9 @@ KtFunctionSymbol:
|
|||||||
type: ERROR_TYPE
|
type: ERROR_TYPE
|
||||||
KtTypeErrorType:
|
KtTypeErrorType:
|
||||||
annotationsList: []
|
annotationsList: []
|
||||||
type: ERROR CLASS: Unwrapped type is null
|
type: ERROR CLASS: Incomplete code
|
||||||
]
|
]
|
||||||
type: kotlin/Function2<kotlin/Int, ERROR CLASS: Symbol not found for p2, ERROR CLASS: Unwrapped type is null>
|
type: kotlin/Function2<kotlin/Int, ERROR CLASS: Symbol not found for p2, ERROR CLASS: Incomplete code>
|
||||||
symbolKind: LOCAL
|
symbolKind: LOCAL
|
||||||
typeParameters: []
|
typeParameters: []
|
||||||
getContainingModule: KtSourceModule "Sources of main"
|
getContainingModule: KtSourceModule "Sources of main"
|
||||||
|
|||||||
@@ -63,9 +63,9 @@ FILE: e.kt
|
|||||||
public get(): <ERROR TYPE REF: Expression 'bar' of type 'ERROR CLASS: cycle' cannot be invoked as a function>
|
public get(): <ERROR TYPE REF: Expression 'bar' of type 'ERROR CLASS: cycle' cannot be invoked as a function>
|
||||||
public set(value: <ERROR TYPE REF: Expression 'bar' of type 'ERROR CLASS: cycle' cannot be invoked as a function>): R|kotlin/Unit|
|
public set(value: <ERROR TYPE REF: Expression 'bar' of type 'ERROR CLASS: cycle' cannot be invoked as a function>): R|kotlin/Unit|
|
||||||
|
|
||||||
public final class EmptyContinuation : R|e/A<ERROR CLASS: Unwrapped type is null>| {
|
public final class EmptyContinuation : R|e/A<ERROR CLASS: Incomplete code>| {
|
||||||
public constructor(): R|e/A.EmptyContinuation| {
|
public constructor(): R|e/A.EmptyContinuation| {
|
||||||
super<R|e/A<ERROR CLASS: Unwrapped type is null>|>()
|
super<R|e/A<ERROR CLASS: Incomplete code>|>()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1969,7 +1969,7 @@ open class RawFirBuilder(
|
|||||||
}
|
}
|
||||||
null -> FirErrorTypeRefBuilder().apply {
|
null -> FirErrorTypeRefBuilder().apply {
|
||||||
this.source = source
|
this.source = source
|
||||||
diagnostic = ConeSimpleDiagnostic("Unwrapped type is null", DiagnosticKind.Syntax)
|
diagnostic = ConeSimpleDiagnostic("Incomplete code", DiagnosticKind.Syntax)
|
||||||
}
|
}
|
||||||
else -> throw AssertionError("Unexpected type element: ${unwrappedElement.text}")
|
else -> throw AssertionError("Unexpected type element: ${unwrappedElement.text}")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user