Class Message
Represents a message emitted from code-analyzing entities such as lexers, parsers, semantic analyzers and compilers.
Messages have severity type like warning, info or error etc.
Inheritance
System.Object
Message
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.dll
Syntax
public sealed class Message
Constructors
Message(SourceCodeRef, MessageType, Int32, ICodeProcessor)
Declaration
public Message(SourceCodeRef srcRef, MessageType type, int code, ICodeProcessor from)
Parameters
Message(SourceCodeRef, MessageType, Int32, ICodeProcessor, SourcePosition)
Declaration
public Message(SourceCodeRef srcRef, MessageType type, int code, ICodeProcessor from, SourcePosition position)
Parameters
Message(SourceCodeRef, MessageType, Int32, ICodeProcessor, SourcePosition, Token)
Declaration
public Message(SourceCodeRef srcRef, MessageType type, int code, ICodeProcessor from, SourcePosition position, Token token)
Parameters
Message(SourceCodeRef, MessageType, Int32, ICodeProcessor, SourcePosition, Token, String)
Declaration
public Message(SourceCodeRef srcRef, MessageType type, int code, ICodeProcessor from, SourcePosition position, Token token, string text)
Parameters
Message(SourceCodeRef, MessageType, Int32, ICodeProcessor, SourcePosition, Token, String, Exception)
Declaration
public Message(SourceCodeRef srcRef, MessageType type, int code, ICodeProcessor from, SourcePosition position, Token token, string text, Exception exception)
Parameters
Fields
AssociatedException
Declaration
public readonly Exception AssociatedException
Field Value
| Type |
Description |
| System.Exception |
|
Code
Declaration
Field Value
| Type |
Description |
| System.Int32 |
|
From
Declaration
public readonly ICodeProcessor From
Field Value
Position
Declaration
public readonly SourcePosition Position
Field Value
SourceCodeReference
Declaration
public readonly SourceCodeRef SourceCodeReference
Field Value
Text
Declaration
public readonly string Text
Field Value
| Type |
Description |
| System.String |
|
Token
Declaration
public readonly Token Token
Field Value
Type
Declaration
public readonly MessageType Type
Field Value
Properties
IsError
Indicates whether this message is an error message
Declaration
public bool IsError { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
IsInfo
Indicates whether this message is an info message
Declaration
public bool IsInfo { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
IsInternal
Indicates whether this message is an internal message
Declaration
public bool IsInternal { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
IsWarning
Indicates whether this message is a warning message
Declaration
public bool IsWarning { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Methods
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Overrides
System.Object.ToString()
Extension Methods