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

http://github.com/icsharpcode/ILSpy · C# · 52 lines · 4 code · 2 blank · 46 comment · 0 complexity · 9d1a2cedbb5d6bb2cfff846a4a2a15df 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
  5. {
  6. // /// <summary>
  7. // /// Interface for all specials.
  8. // /// </summary>
  9. // public interface ISpecial
  10. // {
  11. // Location StartPosition { get; }
  12. // Location EndPosition { get; }
  13. //
  14. // object AcceptVisitor(ISpecialVisitor visitor, object data);
  15. // }
  16. //
  17. // public interface ISpecialVisitor
  18. // {
  19. // object Visit(ISpecial special, object data);
  20. // object Visit(BlankLine special, object data);
  21. // object Visit(Comment special, object data);
  22. // object Visit(PreprocessingDirective special, object data);
  23. // }
  24. //
  25. // public abstract class AbstractSpecial : ISpecial
  26. // {
  27. // public abstract object AcceptVisitor(ISpecialVisitor visitor, object data);
  28. //
  29. // protected AbstractSpecial(Location position)
  30. // {
  31. // this.StartPosition = position;
  32. // this.EndPosition = position;
  33. // }
  34. //
  35. // protected AbstractSpecial(Location startPosition, Location endPosition)
  36. // {
  37. // this.StartPosition = startPosition;
  38. // this.EndPosition = endPosition;
  39. // }
  40. //
  41. // public Location StartPosition { get; set; }
  42. // public Location EndPosition { get; set; }
  43. //
  44. // public override string ToString()
  45. // {
  46. // return String.Format("[{0}: Start = {1}, End = {2}]",
  47. // GetType().Name, StartPosition, EndPosition);
  48. // }
  49. // }
  50. }