/// <summary> /// Initializes a new instance of the <see cref="ICSharpCode.NRefactory.TypeSystem.Error"/> class. /// </summary> /// <param name='errorType'> /// The error type. /// </param> /// <param name='message'> /// The description of the error. /// </param> /// <param name='region'> /// The region of the error. /// </param> public Error(ErrorType errorType, string message, DomRegion region) { this.errorType = errorType; this.message = message; this.region = region; }
/// <summary> /// Initializes a new instance of the <see cref="ICSharpCode.NRefactory.TypeSystem.Error"/> class. /// </summary> /// <param name='errorType'> /// The error type. /// </param> /// <param name='message'> /// The description of the error. /// </param> /// <param name='location'> /// The location of the error. /// </param> public Error(ErrorType errorType, string message, TextLocation location) { this.errorType = errorType; this.message = message; this.region = new DomRegion(location, location); }
/// <summary> /// Initializes a new instance of the <see cref="ICSharpCode.NRefactory.TypeSystem.Error"/> class. /// </summary> /// <param name='errorType'> /// The error type. /// </param> /// <param name='message'> /// The description of the error. /// </param> public Error(ErrorType errorType, string message) { this.errorType = errorType; this.message = message; this.region = DomRegion.Empty; }
/// <summary> /// Initializes a new instance of the <see cref="ICSharpCode.NRefactory.TypeSystem.Error"/> class. /// </summary> /// <param name='errorType'> /// The error type. /// </param> /// <param name='message'> /// The description of the error. /// </param> /// <param name='location'> /// The location of the error. /// </param> public Error(ErrorType errorType, string message, AstLocation location) { this.ErrorType = errorType; this.Message = message; this.Region = new DomRegion(location, location); }