Note

dotty.tools.dotc.reporting.Message.Note
See theNote companion object
abstract class Note

A note can produce an added string for an error message

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def render(using Context): String

The note rendered as part of an error message

The note rendered as part of an error message

Attributes

Concrete methods

def covers(other: Note)(using Context): Boolean

If note N1 covers note N2 then N1 and N2 won't be shown together in an error message. Instead we show the note that's strictly better in terms of the "covers" partial ordering, or, if there's no strict wionner, the first added note.

If note N1 covers note N2 then N1 and N2 won't be shown together in an error message. Instead we show the note that's strictly better in terms of the "covers" partial ordering, or, if there's no strict wionner, the first added note.

Attributes

Should the note be shown before the actual message or after? Default is after.

Should the note be shown before the actual message or after? Default is after.

Attributes