PageRenderTime 66ms CodeModel.GetById 63ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 4using System;
 5using System.Collections.Generic;
 6using System.Collections.ObjectModel;
 7using System.Collections.Specialized;
 8using System.Diagnostics;
 9using System.Linq;
10
11using ICSharpCode.AvalonEdit.Document;
12
13namespace ICSharpCode.AvalonEdit.Xml
14{
15	/// <summary> Information about syntax error that occured during parsing </summary>
16	public class SyntaxError: TextSegment
17	{
18		/// <summary> Object for which the error occured </summary>
19		public AXmlObject Object { get; internal set; }
20		/// <summary> Textual description of the error </summary>
21		public string Message { get; internal set; }
22		/// <summary> Any user data </summary>
23		public object Tag { get; set; }
24		
25		internal SyntaxError Clone(AXmlObject newOwner)
26		{
27			return new SyntaxError {
28				Object = newOwner,
29				Message = Message,
30				Tag = Tag,
31				StartOffset = StartOffset,
32				EndOffset = EndOffset,
33			};
34		}
35	}
36}