Convert Diagnostic.java to Kotlin
This commit is contained in:
@@ -13,32 +13,17 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
package org.jetbrains.kotlin.diagnostics
|
||||||
|
|
||||||
package org.jetbrains.kotlin.diagnostics;
|
import com.intellij.openapi.util.TextRange
|
||||||
|
import com.intellij.psi.PsiElement
|
||||||
|
import com.intellij.psi.PsiFile
|
||||||
|
|
||||||
import com.intellij.openapi.util.TextRange;
|
interface Diagnostic {
|
||||||
import com.intellij.psi.PsiElement;
|
val factory: DiagnosticFactory<*>
|
||||||
import com.intellij.psi.PsiFile;
|
val severity: Severity
|
||||||
import org.jetbrains.annotations.NotNull;
|
val psiElement: PsiElement
|
||||||
|
val textRanges: List<TextRange>
|
||||||
import java.util.List;
|
val psiFile: PsiFile
|
||||||
|
val isValid: Boolean
|
||||||
public interface Diagnostic {
|
|
||||||
|
|
||||||
@NotNull
|
|
||||||
DiagnosticFactory<?> getFactory();
|
|
||||||
|
|
||||||
@NotNull
|
|
||||||
Severity getSeverity();
|
|
||||||
|
|
||||||
@NotNull
|
|
||||||
PsiElement getPsiElement();
|
|
||||||
|
|
||||||
@NotNull
|
|
||||||
List<TextRange> getTextRanges();
|
|
||||||
|
|
||||||
@NotNull
|
|
||||||
PsiFile getPsiFile();
|
|
||||||
|
|
||||||
boolean isValid();
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user