Skip to content

Commit a006536

Browse files
committed
For for-ide diagnostics
1 parent 066a629 commit a006536

File tree

1 file changed

+3
-2
lines changed
  • compiler-plugin/compiler-plugin-k2/src/main/kotlin/kotlinx/rpc/codegen/checkers/diagnostics

1 file changed

+3
-2
lines changed

compiler-plugin/compiler-plugin-k2/src/main/kotlin/kotlinx/rpc/codegen/checkers/diagnostics/FirRpcDiagnostics.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import org.jetbrains.kotlin.fir.types.ConeKotlinType
1717
import org.jetbrains.kotlin.name.Name
1818
import org.jetbrains.kotlin.psi.KtAnnotated
1919
import org.jetbrains.kotlin.psi.KtElement
20+
import org.jetbrains.kotlin.psi.KtNameReferenceExpression
2021

2122
// ###########################################################################
2223
// ### BIG WARNING, LISTEN CLOSELY! ###
@@ -25,8 +26,8 @@ import org.jetbrains.kotlin.psi.KtElement
2526
// ###########################################################################
2627

2728
object FirRpcDiagnostics : RpcKtDiagnosticsContainer() {
28-
val WRONG_RPC_ANNOTATION_TARGET by error1<KtAnnotated, ConeKotlinType>()
29-
val CHECKED_ANNOTATION_VIOLATION by error3<KtAnnotated, Int, ConeKotlinType, FirBasedSymbol<*>>()
29+
val WRONG_RPC_ANNOTATION_TARGET by error1<KtElement, ConeKotlinType>()
30+
val CHECKED_ANNOTATION_VIOLATION by error3<KtElement, Int, ConeKotlinType, FirBasedSymbol<*>>()
3031
val NON_SUSPENDING_REQUEST_WITHOUT_STREAMING_RETURN_TYPE by error0<KtElement>()
3132
val AD_HOC_POLYMORPHISM_IN_RPC_SERVICE by error2<KtElement, Int, Name>()
3233
val TYPE_PARAMETERS_IN_RPC_FUNCTION by error0<KtElement>(SourceElementPositioningStrategies.TYPE_PARAMETERS_LIST)

0 commit comments

Comments
 (0)