/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. using System;
  4. namespace ICSharpCode.NRefactory.VB.Parser
  5. {
  6. public class XmlModeInfo : ICloneable
  7. {
  8. public bool inXmlTag, inXmlCloseTag, isDocumentStart;
  9. public int level;
  10. public XmlModeInfo(bool isSpecial)
  11. {
  12. level = isSpecial ? -1 : 0;
  13. inXmlTag = inXmlCloseTag = isDocumentStart = false;
  14. }
  15. public object Clone()
  16. {
  17. return new XmlModeInfo(false) {
  18. inXmlCloseTag = this.inXmlCloseTag,
  19. inXmlTag = this.inXmlTag,
  20. isDocumentStart = this.isDocumentStart,
  21. level = this.level
  22. };
  23. }
  24. }
  25. }