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
Afficher le fichier Open project: visualmutator/visualmutator

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat System.Collections.Generic

AstErrorMessage() public méthode

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.
Résultat System.Collections.Generic

MakeShallowCopy() public méthode

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.
Résultat ISourceErrorMessage