PageRenderTime 17ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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