@@ -30,15 +30,12 @@ public enum ParserResultType
3030 public abstract class ParserResult < T >
3131 {
3232 private readonly ParserResultType tag ;
33- //private readonly T value;
3433 private readonly IEnumerable < Type > verbTypes ;
3534 private readonly Type typeInfo ;
3635
37- //internal ParserResult(ParserResultType tag, T value, IEnumerable<Type> verbTypes)
3836 internal ParserResult ( ParserResultType tag , Type typeInfo , IEnumerable < Type > verbTypes )
3937 {
4038 this . tag = tag ;
41- //this.value = value;
4239 this . typeInfo = typeInfo ;
4340 this . verbTypes = verbTypes ;
4441 }
@@ -60,11 +57,6 @@ internal IEnumerable<Type> VerbTypes
6057 {
6158 get { return verbTypes ; }
6259 }
63-
64- //internal T Value
65- //{
66- // get { return value; }
67- //}
6860 }
6961
7062 /// <summary>
@@ -90,10 +82,8 @@ internal Parsed(T value)
9082 /// <summary>
9183 /// Gets the instance with parsed values.
9284 /// </summary>
93- //public new T Value
9485 public T Value
9586 {
96- //get { return base.Value; }
9787 get { return value ; }
9888 }
9989
@@ -148,16 +138,12 @@ public sealed class NotParsed<T> : ParserResult<T>, IEquatable<NotParsed<T>>
148138 {
149139 private readonly IEnumerable < Error > errors ;
150140
151- //internal NotParsed(T value, IEnumerable<Type> verbTypes, IEnumerable<Error> errors)
152- // : base(ParserResultType.NotParsed, value, verbTypes)
153141 internal NotParsed ( Type typeInfo , IEnumerable < Type > verbTypes , IEnumerable < Error > errors )
154142 : base ( ParserResultType . NotParsed , typeInfo , verbTypes )
155143 {
156144 this . errors = errors ;
157145 }
158146
159- //internal NotParsed(T value, IEnumerable<Error> errors)
160- // : this(value, Enumerable.Empty<Type>(), errors)
161147 internal NotParsed ( Type typeInfo , IEnumerable < Error > errors )
162148 : this ( typeInfo , Enumerable . Empty < Type > ( ) , errors )
163149 {
0 commit comments