dotty.tools.dotc.reporting

ConsoleReporter

Related Doc: package reporting

class ConsoleReporter extends Reporter with UniqueMessagePositions with HideNonSensicalMessages with MessageRendering

This class implements a Reporter that displays messages on a text console

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ConsoleReporter
  2. MessageRendering
  3. HideNonSensicalMessages
  4. UniqueMessagePositions
  5. Reporter
  6. ReporterResult
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConsoleReporter(reader: BufferedReader = Console.in, writer: PrintWriter = new PrintWriter(Console.err, true))

Type Members

  1. type ErrorHandler = (MessageContainer) ⇒ (Context) ⇒ Unit

    Definition Classes
    Reporter

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def ErrorLimit: Int

    maximal number of error messages to be printed

    maximal number of error messages to be printed

    Attributes
    protected
  5. def allErrors: List[Error]

    Definition Classes
    Reporter
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def columnMarker(pos: SourcePosition, offset: Int)(implicit ctx: Context): String

    The column markers aligned under the error

    The column markers aligned under the error

    Definition Classes
    MessageRendering
  9. def countString(n: Int, elements: String): String

    Returns a string meaning "n elements".

    Returns a string meaning "n elements".

    Attributes
    protected
    Definition Classes
    Reporter
  10. def diagnosticLevel(cont: MessageContainer): String

    Definition Classes
    MessageRendering
  11. def displayPrompt()(implicit ctx: Context): Unit

    Show prompt if -Xprompt is passed as a flag to the compiler

  12. def doReport(m: MessageContainer)(implicit ctx: Context): Unit

    Prints the message with the given position indication.

    Prints the message with the given position indication.

    Definition Classes
    ConsoleReporterReporter
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. var errorCount: Int

    Definition Classes
    Reporter → ReporterResult
  16. def errorMsg(pos: SourcePosition, msg: String, offset: Int)(implicit ctx: Context): String

    The error message (msg) aligned under pos

    The error message (msg) aligned under pos

    returns

    aligned error message

    Definition Classes
    MessageRendering
  17. def errorsReported: Boolean

    Have errors been reported by this reporter, or in the case where this is a StoreReporter, by an outer reporter?

    Have errors been reported by this reporter, or in the case where this is a StoreReporter, by an outer reporter?

    Definition Classes
    Reporter
  18. def explanation(m: Message)(implicit ctx: Context): String

    Explanation rendered under "Explanation" header

    Explanation rendered under "Explanation" header

    Definition Classes
    MessageRendering
  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def flush()(implicit ctx: Context): Unit

    Issue all error messages in this reporter to next outer one, or make sure they are written.

    Issue all error messages in this reporter to next outer one, or make sure they are written.

    Definition Classes
    ConsoleReporterReporter
  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. def hasErrors(): Boolean

    Definition Classes
    Reporter → ReporterResult
  23. def hasPending: Boolean

    Does this reporter contain not yet reported errors or warnings?

    Does this reporter contain not yet reported errors or warnings?

    Definition Classes
    Reporter
  24. def hasWarnings(): Boolean

    Definition Classes
    Reporter → ReporterResult
  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. def incomplete(m: MessageContainer)(implicit ctx: Context): Unit

    Definition Classes
    Reporter
  27. def isHidden(m: MessageContainer)(implicit ctx: Context): Boolean

    Hides non-sensical messages, unless we haven't reported any error yet or -Yshow-suppressed-errors is set.

    Hides non-sensical messages, unless we haven't reported any error yet or -Yshow-suppressed-errors is set.

    Definition Classes
    HideNonSensicalMessagesReporter
  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. def isReportedFeatureUseSite(featureTrait: Symbol): Boolean

    Definition Classes
    Reporter
  30. def messageAndPos(msg: Message, pos: SourcePosition, diagnosticLevel: String)(implicit ctx: Context): String

    The whole message rendered from msg

    The whole message rendered from msg

    Definition Classes
    MessageRendering
  31. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  34. def outer(pos: SourcePosition, prefix: String)(implicit ctx: Context): List[String]

    When inlining a method call, if there's an error we'd like to get the outer context and the pos at which the call was inlined.

    When inlining a method call, if there's an error we'd like to get the outer context and the pos at which the call was inlined.

    returns

    a list of strings with inline locations

    Definition Classes
    MessageRendering
  35. def posStr(pos: SourcePosition, diagnosticLevel: String, message: Message)(implicit ctx: Context): String

    The separator between errors containing the source file and error type

    The separator between errors containing the source file and error type

    returns

    separator containing error location and kind

    Definition Classes
    MessageRendering
  36. def printMessage(msg: String): Unit

    Prints the message.

  37. def printSummary(implicit ctx: Context): Unit

    Print the summary of warnings and errors

    Print the summary of warnings and errors

    Definition Classes
    Reporter
  38. def report(m: MessageContainer)(implicit ctx: Context): Unit

    Definition Classes
    Reporter
  39. def reportNewFeatureUseSite(featureTrait: Symbol): Unit

    Definition Classes
    Reporter
  40. def sourceLines(pos: SourcePosition)(implicit ctx: Context): (List[String], List[String], Int)

    Get the sourcelines before and after the position, as well as the offset for rendering line numbers

    Get the sourcelines before and after the position, as well as the offset for rendering line numbers

    returns

    (lines before error, lines after error, line numbers offset)

    Definition Classes
    MessageRendering
  41. def stripColor(str: String): String

    Remove ANSI coloring from str, useful for getting real length of strings

    Remove ANSI coloring from str, useful for getting real length of strings

    returns

    string stripped of ANSI escape codes

    Definition Classes
    MessageRendering
  42. def summary: String

    Summary of warnings and errors

    Summary of warnings and errors

    Definition Classes
    Reporter
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  44. def toString(): String

    Definition Classes
    AnyRef → Any
  45. def truncationOK: Boolean

    Definition Classes
    Reporter
  46. val unreportedWarnings: HashMap[String, Int]

    Definition Classes
    Reporter
  47. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. var warningCount: Int

    Definition Classes
    Reporter → ReporterResult
  51. def withIncompleteHandler[T](handler: ErrorHandler)(op: ⇒ T): T

    Definition Classes
    Reporter
  52. def withoutTruncating[T](body: ⇒ T): T

    Definition Classes
    Reporter

Inherited from MessageRendering

Inherited from HideNonSensicalMessages

Inherited from UniqueMessagePositions

Inherited from Reporter

Inherited from ReporterResult

Inherited from AnyRef

Inherited from Any

Ungrouped