Package xsbti
Interface Problem
public interface Problem
-
Method Summary
Modifier and TypeMethodDescriptionactions()Actions (aka quick fixes) that are able to either fix or address the issue that is causing this Problem.category()default Optional<DiagnosticCode>The unique code attached to the diagnostic being reported.default List<DiagnosticRelatedInformation>Deprecated.default List<DiagnosticRelatedInformation>The possible releated information for the diagnostic being reported.message()position()rendered()If present, the string shown to the user when displaying this Problem.severity()
-
Method Details
-
category
String category() -
severity
Severity severity() -
message
String message() -
position
Position position() -
rendered
If present, the string shown to the user when displaying this Problem. Otherwise, the Problem will be shown in an implementation-defined way based on the values of its other fields. -
diagnosticCode
The unique code attached to the diagnostic being reported.NOTE: To avoid breaking compatibility we provide a default to account for older Scala versions that do not have codes.
-
diagnosticRelatedInforamation
Deprecated.usediagnosticRelatedInformation()instead. -
diagnosticRelatedInformation
The possible releated information for the diagnostic being reported.NOTE: To avoid breaking compatibility we provide a default to account for older Scala versions that do not have the concept of "related information".
-
actions
Actions (aka quick fixes) that are able to either fix or address the issue that is causing this Problem.For example given the following code:
trait Example: def foo(): Unit def bar(): Unit class MyExample extends ExampleYou could expect this to have multiple actions attatched:- An option to implement a stub method for `foo()` and `bar()`
- An option to make `MyExample` abstract
-
diagnosticRelatedInformation()instead.