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