/AvalonEdit/ICSharpCode.AvalonEdit/Xml/SyntaxError.cs
http://github.com/icsharpcode/ILSpy · C# · 36 lines · 26 code · 4 blank · 6 comment · 0 complexity · fa8e6f5915796508efa4be30b0d1aab3 MD5 · raw file
- // 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
- {
- /// <summary> Information about syntax error that occured during parsing </summary>
- public class SyntaxError: TextSegment
- {
- /// <summary> Object for which the error occured </summary>
- public AXmlObject Object { get; internal set; }
- /// <summary> Textual description of the error </summary>
- public string Message { get; internal set; }
- /// <summary> Any user data </summary>
- public object Tag { get; set; }
-
- internal SyntaxError Clone(AXmlObject newOwner)
- {
- return new SyntaxError {
- Object = newOwner,
- Message = Message,
- Tag = Tag,
- StartOffset = StartOffset,
- EndOffset = EndOffset,
- };
- }
- }
- }