// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.Diagnostics; using System.Linq; using ICSharpCode.AvalonEdit.Document; namespace ICSharpCode.AvalonEdit.Xml { /// Information about syntax error that occured during parsing public class SyntaxError: TextSegment { /// Object for which the error occured public AXmlObject Object { get; internal set; } /// Textual description of the error public string Message { get; internal set; } /// Any user data public object Tag { get; set; } internal SyntaxError Clone(AXmlObject newOwner) { return new SyntaxError { Object = newOwner, Message = Message, Tag = Tag, StartOffset = StartOffset, EndOffset = EndOffset, }; } } }