Introduce OptionalExpectationInspection

It works at INFORMATION level only and is intended to form quick-fixes
to add relevant actual declarations.

#KT-25533 Fixed
This commit is contained in:
Mikhail Glukhikh
2018-08-29 18:31:36 +03:00
parent ba84c6adf3
commit 4dd95e5640
16 changed files with 184 additions and 2 deletions
@@ -0,0 +1,11 @@
// "Create actual annotation class for module testModule_JVM (JVM)" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.OptionalExpectationInspection
package kotlin
annotation class ExperimentalMultiplatform
annotation class OptionalExpectation
@ExperimentalMultiplatform
@OptionalExpectation
expect annotation class <caret>Ann
@@ -0,0 +1,11 @@
// "Create actual annotation class for module testModule_JVM (JVM)" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.OptionalExpectationInspection
package kotlin
annotation class ExperimentalMultiplatform
annotation class OptionalExpectation
@ExperimentalMultiplatform
@OptionalExpectation
expect annotation class <caret>Ann
@@ -0,0 +1 @@
// Ann: to be implemented
@@ -0,0 +1,5 @@
package kotlin
// Ann: to be implemented
actual
annotation class Ann