dotty.tools.dotc.reporting

diagnostic

package diagnostic

Visibility
  1. Public
  2. All

Type Members

  1. class ExtendMessage extends AnyRef

    An extended message keeps the contained message from being evaluated, while allowing for extension for the msg string

    An extended message keeps the contained message from being evaluated, while allowing for extension for the msg string

    This is useful when we need to add additional information to an existing message.

  2. abstract class Message extends AnyRef

    A Message contains all semantic information necessary to easily comprehend what caused the message to be logged.

    A Message contains all semantic information necessary to easily comprehend what caused the message to be logged. Each message can be turned into a MessageContainer which contains the log level and can later be consumed by a subclass of Reporter. However, the error position is only part of MessageContainer, not Message.

    NOTE: you should not be persisting messages. Most messages take an implicit Context and these contexts weigh in at about 4mb per instance, as such persisting these will result in a memory leak.

    Instead use the persist method to create an instance that does not keep a reference to these contexts.

  3. class MessageContainer extends Exception with Diagnostic

  4. class NoExplanation extends Message

    The fallback Message containing no explanation and having no kind

Value Members

  1. object Message

  2. object MessageContainer extends Serializable

  3. object NoExplanation

    The extractor for NoExplanation can be used to check whether any error lacks an explanation

  4. object messages

Ungrouped