PageRenderTime 23ms CodeModel.GetById 18ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/NRefactory/ICSharpCode.NRefactory.VB/Lexer/XmlModeInfo.cs

http://github.com/icsharpcode/ILSpy
C# | 29 lines | 23 code | 4 blank | 2 comment | 0 complexity | b7cf0554f6408a4acaad0c425478e1fd MD5 | raw file
 1// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
 2// This code is distributed under MIT X11 license (for details please see \doc\license.txt)
 3
 4using System;
 5
 6namespace ICSharpCode.NRefactory.VB.Parser
 7{
 8	public class XmlModeInfo : ICloneable
 9	{
10		public bool inXmlTag, inXmlCloseTag, isDocumentStart;
11		public int level;
12		
13		public XmlModeInfo(bool isSpecial)
14		{
15			level = isSpecial ? -1 : 0;
16			inXmlTag = inXmlCloseTag = isDocumentStart = false;
17		}
18		
19		public object Clone()
20		{
21			return new XmlModeInfo(false) {
22				inXmlCloseTag = this.inXmlCloseTag,
23				inXmlTag = this.inXmlTag,
24				isDocumentStart = this.isDocumentStart,
25				level = this.level
26			};
27		}
28	}
29}