/NRefactory/ICSharpCode.NRefactory.VB/Lexer/Special/SpecialTracker.cs

http://github.com/icsharpcode/ILSpy · C# · 71 lines · 6 code · 2 blank · 63 comment · 0 complexity · c624a606bacff4dd1eaeabba5ec46473 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. using System.Collections.Generic;
  5. using System.Text;
  6. namespace ICSharpCode.NRefactory.VB.Parser
  7. {
  8. // public class SpecialTracker
  9. // {
  10. // List<ISpecial> currentSpecials = new List<ISpecial>();
  11. //
  12. // CommentType currentCommentType;
  13. // StringBuilder sb = new StringBuilder();
  14. // Location startPosition;
  15. // bool commentStartsLine;
  16. //
  17. // public List<ISpecial> CurrentSpecials {
  18. // get {
  19. // return currentSpecials;
  20. // }
  21. // }
  22. //
  23. // /// <summary>
  24. // /// Gets the specials from the SpecialTracker and resets the lists.
  25. // /// </summary>
  26. // public List<ISpecial> RetrieveSpecials()
  27. // {
  28. // List<ISpecial> tmp = currentSpecials;
  29. // currentSpecials = new List<ISpecial>();
  30. // return tmp;
  31. // }
  32. //
  33. // public void AddEndOfLine(Location point)
  34. // {
  35. // currentSpecials.Add(new BlankLine(point));
  36. // }
  37. //
  38. // public void AddPreprocessingDirective(PreprocessingDirective directive)
  39. // {
  40. // if (directive == null)
  41. // throw new ArgumentNullException("directive");
  42. // currentSpecials.Add(directive);
  43. // }
  44. //
  45. // // used for comment tracking
  46. // public void StartComment(CommentType commentType, bool commentStartsLine, Location startPosition)
  47. // {
  48. // this.currentCommentType = commentType;
  49. // this.startPosition = startPosition;
  50. // this.sb.Length = 0;
  51. // this.commentStartsLine = commentStartsLine;
  52. // }
  53. //
  54. // public void AddChar(char c)
  55. // {
  56. // sb.Append(c);
  57. // }
  58. //
  59. // public void AddString(string s)
  60. // {
  61. // sb.Append(s);
  62. // }
  63. //
  64. // public void FinishComment(Location endPosition)
  65. // {
  66. // currentSpecials.Add(new Comment(currentCommentType, sb.ToString(), commentStartsLine, startPosition, endPosition));
  67. // }
  68. // }
  69. }