/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

  1. // Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
  2. // This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Collections.ObjectModel;
  6. using System.Collections.Specialized;
  7. using System.Diagnostics;
  8. using System.Linq;
  9. using ICSharpCode.AvalonEdit.Document;
  10. namespace ICSharpCode.AvalonEdit.Xml
  11. {
  12. /// <summary> Information about syntax error that occured during parsing </summary>
  13. public class SyntaxError: TextSegment
  14. {
  15. /// <summary> Object for which the error occured </summary>
  16. public AXmlObject Object { get; internal set; }
  17. /// <summary> Textual description of the error </summary>
  18. public string Message { get; internal set; }
  19. /// <summary> Any user data </summary>
  20. public object Tag { get; set; }
  21. internal SyntaxError Clone(AXmlObject newOwner)
  22. {
  23. return new SyntaxError {
  24. Object = newOwner,
  25. Message = Message,
  26. Tag = Tag,
  27. StartOffset = StartOffset,
  28. EndOffset = EndOffset,
  29. };
  30. }
  31. }
  32. }