Show / Hide Table of Contents

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)
Namespace: NFX.CodeAnalysis
Assembly: NFX.dll
Syntax
public sealed class Message

Constructors

Message(SourceCodeRef, MessageType, Int32, ICodeProcessor)

Declaration
public Message(SourceCodeRef srcRef, MessageType type, int code, ICodeProcessor from)
Parameters
Type Name Description
SourceCodeRef srcRef
MessageType type
System.Int32 code
ICodeProcessor from

Message(SourceCodeRef, MessageType, Int32, ICodeProcessor, SourcePosition)

Declaration
public Message(SourceCodeRef srcRef, MessageType type, int code, ICodeProcessor from, SourcePosition position)
Parameters
Type Name Description
SourceCodeRef srcRef
MessageType type
System.Int32 code
ICodeProcessor from
SourcePosition position

Message(SourceCodeRef, MessageType, Int32, ICodeProcessor, SourcePosition, Token)

Declaration
public Message(SourceCodeRef srcRef, MessageType type, int code, ICodeProcessor from, SourcePosition position, Token token)
Parameters
Type Name Description
SourceCodeRef srcRef
MessageType type
System.Int32 code
ICodeProcessor from
SourcePosition position
Token token

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
Type Name Description
SourceCodeRef srcRef
MessageType type
System.Int32 code
ICodeProcessor from
SourcePosition position
Token token
System.String text

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
Type Name Description
SourceCodeRef srcRef
MessageType type
System.Int32 code
ICodeProcessor from
SourcePosition position
Token token
System.String text
System.Exception exception

Fields

AssociatedException

Declaration
public readonly Exception AssociatedException
Field Value
Type Description
System.Exception

Code

Declaration
public readonly int Code
Field Value
Type Description
System.Int32

From

Declaration
public readonly ICodeProcessor From
Field Value
Type Description
ICodeProcessor

Position

Declaration
public readonly SourcePosition Position
Field Value
Type Description
SourcePosition

SourceCodeReference

Declaration
public readonly SourceCodeRef SourceCodeReference
Field Value
Type Description
SourceCodeRef

Text

Declaration
public readonly string Text
Field Value
Type Description
System.String

Token

Declaration
public readonly Token Token
Field Value
Type Description
Token

Type

Declaration
public readonly MessageType Type
Field Value
Type Description
MessageType

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

MiscUtils.NonNull<T>(T, Func<Exception>, String)
ObjectValueConversion.AsString(Object, String, ConvertErrorHandling)
ObjectValueConversion.AsNonNullOrEmptyString(Object)
ObjectValueConversion.AsLaconicConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsJSONConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsXMLConfig(Object, ConfigSectionNode, ConvertErrorHandling)
ObjectValueConversion.AsChar(Object, Char, ConvertErrorHandling)
ObjectValueConversion.AsNullableChar(Object, Nullable<Char>, ConvertErrorHandling)
ObjectValueConversion.AsByte(Object, Byte, ConvertErrorHandling)
ObjectValueConversion.AsNullableByte(Object, Nullable<Byte>, ConvertErrorHandling)
ObjectValueConversion.AsSByte(Object, SByte, ConvertErrorHandling)
ObjectValueConversion.AsNullableSByte(Object, Nullable<SByte>, ConvertErrorHandling)
ObjectValueConversion.AsShort(Object, Int16, ConvertErrorHandling)
ObjectValueConversion.AsNullableShort(Object, Nullable<Int16>, ConvertErrorHandling)
ObjectValueConversion.AsUShort(Object, UInt16, ConvertErrorHandling)
ObjectValueConversion.AsNullableUShort(Object, Nullable<UInt16>, ConvertErrorHandling)
ObjectValueConversion.AsInt(Object, Int32, ConvertErrorHandling)
ObjectValueConversion.AsNullableInt(Object, Nullable<Int32>, ConvertErrorHandling)
ObjectValueConversion.AsUInt(Object, UInt32, ConvertErrorHandling)
ObjectValueConversion.AsNullableUInt(Object, Nullable<UInt32>, ConvertErrorHandling)
ObjectValueConversion.AsLong(Object, Int64, ConvertErrorHandling)
ObjectValueConversion.AsNullableLong(Object, Nullable<Int64>, ConvertErrorHandling)
ObjectValueConversion.AsULong(Object, UInt64, ConvertErrorHandling)
ObjectValueConversion.AsNullableULong(Object, Nullable<UInt64>, ConvertErrorHandling)
ObjectValueConversion.AsDouble(Object, Double, ConvertErrorHandling)
ObjectValueConversion.AsNullableDouble(Object, Nullable<Double>, ConvertErrorHandling)
ObjectValueConversion.AsFloat(Object, Single, ConvertErrorHandling)
ObjectValueConversion.AsNullableFloat(Object, Nullable<Single>, ConvertErrorHandling)
ObjectValueConversion.AsDecimal(Object, Decimal, ConvertErrorHandling)
ObjectValueConversion.AsNullableDecimal(Object, Nullable<Decimal>, ConvertErrorHandling)
ObjectValueConversion.AsBool(Object, Boolean, ConvertErrorHandling)
ObjectValueConversion.AsNullableBool(Object, Nullable<Boolean>, ConvertErrorHandling)
ObjectValueConversion.AsGUID(Object, Guid, ConvertErrorHandling)
ObjectValueConversion.AsNullableGUID(Object, Nullable<Guid>, ConvertErrorHandling)
ObjectValueConversion.AsDateTime(Object)
ObjectValueConversion.AsDateTime(Object, DateTime, ConvertErrorHandling)
ObjectValueConversion.AsNullableDateTime(Object, Nullable<DateTime>, ConvertErrorHandling)
ObjectValueConversion.AsGDID(Object)
ObjectValueConversion.AsGDID(Object, GDID, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDID(Object, Nullable<GDID>, ConvertErrorHandling)
ObjectValueConversion.AsGDIDSymbol(Object)
ObjectValueConversion.AsGDIDSymbol(Object, GDIDSymbol, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDIDSymbol(Object, Nullable<GDIDSymbol>, ConvertErrorHandling)
ObjectValueConversion.AsTimeSpan(Object)
ObjectValueConversion.AsTimeSpan(Object, TimeSpan, ConvertErrorHandling)
ObjectValueConversion.AsNullableTimeSpan(Object, Nullable<TimeSpan>, ConvertErrorHandling)
ObjectValueConversion.AsEnum<TEnum>(Object, TEnum, ConvertErrorHandling)
ObjectValueConversion.AsNullableEnum<TEnum>(Object, Nullable<TEnum>, ConvertErrorHandling)
ObjectValueConversion.AsUri(Object, Uri, ConvertErrorHandling)
JSONExtensions.ToJSON(Object, JSONWritingOptions)
JSONExtensions.ToJSON(Object, TextWriter, JSONWritingOptions)
JSONExtensions.ToJSON(Object, Stream, JSONWritingOptions, Encoding)
ErlObject.ToErlObject(Object)
ErlObject.ToErlObject(Object, ErlTypeOrder, Boolean)
Back to top Copyright © 2006-2018 Agnicore Inc
Generated by DocFX