Table of Contents

Class MessageInfo

Namespace
Dassie.Messages
Assembly
dc.dll

Represents a diagnostic message emitted by the compiler, such as an error message.

public class MessageInfo
Inheritance
MessageInfo
Inherited Members
Extension Methods

Properties

Code

The kind of error that the current MessageInfo instance represents.

public MessageCode Code { get; set; }

Property Value

MessageCode

CustomCode

Supports custom error codes to be used by analyzers.

public string CustomCode { get; set; }

Property Value

string

File

The name of the document the message originates from.

public string File { get; set; }

Property Value

string

HideCodePosition

Specifies wheter or not to display the code location in the generated output.

public bool HideCodePosition { get; set; }

Property Value

bool

Length

The length, in characters, of underlying code section the message refers to.

public int Length { get; set; }

Property Value

int

Location

The starting position of the message in the document.

public (int Line, int Column) Location { get; set; }

Property Value

(int Line, int Column)

Severity

The severity of the message.

public Severity Severity { get; set; }

Property Value

Severity

Source

The source of the message.

public MessageSource Source { get; set; }

Property Value

MessageSource

Text

The text of the message.

public string Text { get; set; }

Property Value

string

TextTemplate

A text template for the message.

public (string Identifier, object[] Arguments) TextTemplate { get; set; }

Property Value

(string Identifier, object[] Arguments)

Tip

Advanced information about the message aiding the user in debugging the cause of an error.

public string Tip { get; set; }

Property Value

string

TipTemplate

A text template for the tip.

public (string Identifier, object[] Arguments) TipTemplate { get; set; }

Property Value

(string Identifier, object[] Arguments)

ToolTip

A tooltip representing the message.

public Tooltip ToolTip { get; set; }

Property Value

Tooltip

Methods

ToString()

Converts the message into a human-readable format.

public override string ToString()

Returns

string

A friendly representation of the message.