C# Class Microsoft.Cci.Ast.AstErrorMessage

Error information relating to a portion of a source document. This class is used for errors reported by the AST base classes.
Inheritance: ErrorMessage
Mostra file Open project: visualmutator/visualmutator

Public Methods

Method Description
AstErrorMessage ( ISourceItem sourceItem, System.Error error ) : System.Collections.Generic

Allocates an object providing error information relating to a portion of a source document.

AstErrorMessage ( ISourceItem sourceItem, System.Error error, IEnumerable relatedLocations ) : System.Collections.Generic

Allocates an object providing error information relating to a portion of a source document.

MakeShallowCopy ( ISourceDocument targetDocument ) : ISourceErrorMessage

Makes a copy of this error message, changing only Location and SourceLocation to come from the given source document. Returns the same instance if the given source document is the same as this.SourceLocation.SourceDocument.

Private Methods

Method Description
AstErrorMessage ( ISourceLocation sourceLocation, long errorCode, string messageKey, IEnumerable relatedLocations, string messageArguments ) : System.Collections.Generic

Allocates an object providing error information relating to a portion of a source document.

Method Details

AstErrorMessage() public method

Allocates an object providing error information relating to a portion of a source document.
public AstErrorMessage ( ISourceItem sourceItem, System.Error error ) : System.Collections.Generic
sourceItem ISourceItem The source item to which the error applies.
error System.Error An enumeration code that corresponds to this error. The enumeration identifier is used as the message key and the enumeration value is used as the code.
return System.Collections.Generic

AstErrorMessage() public method

Allocates an object providing error information relating to a portion of a source document.
public AstErrorMessage ( ISourceItem sourceItem, System.Error error, IEnumerable relatedLocations ) : System.Collections.Generic
sourceItem ISourceItem The source item to which the error applies.
error System.Error An enumeration code that corresponds to this error. The enumeration identifier is used as the message key and the enumeration value is used as the code.
relatedLocations IEnumerable Zero ore more locations that are related to this error.
return System.Collections.Generic

MakeShallowCopy() public method

Makes a copy of this error message, changing only Location and SourceLocation to come from the given source document. Returns the same instance if the given source document is the same as this.SourceLocation.SourceDocument.
public MakeShallowCopy ( ISourceDocument targetDocument ) : ISourceErrorMessage
targetDocument ISourceDocument The document to which the resulting error message must refer.
return ISourceErrorMessage