[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
@@ -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 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| {
|
||||
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 {
|
||||
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}")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user