Package xsbti

Interface Problem


public interface Problem
  • Method Details

    • category

      String category()
    • severity

      Severity severity()
    • message

      String message()
    • position

      Position position()
    • rendered

      default Optional<String> 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

      default Optional<DiagnosticCode> 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 default List<DiagnosticRelatedInformation> diagnosticRelatedInforamation()
      Deprecated.
    • diagnosticRelatedInformation

      default List<DiagnosticRelatedInformation> 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

      default List<Action> 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 Example
       
      You 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