Mercurial > pub > ImplabNet
diff Implab/Parsing/EnumAlphabet.cs @ 59:21611344d366
code cleanup
author | cin |
---|---|
date | Wed, 18 Jun 2014 03:54:02 +0400 |
parents | c0bf853aa04f |
children | 653c4e04968b |
line wrap: on
line diff
--- a/Implab/Parsing/EnumAlphabet.cs Tue Jun 17 19:40:43 2014 +0400 +++ b/Implab/Parsing/EnumAlphabet.cs Wed Jun 18 03:54:02 2014 +0400 @@ -1,6 +1,7 @@ using Implab; using System; using System.Collections.Generic; +using System.Diagnostics; using System.Globalization; using System.Linq; using System.Text; @@ -45,11 +46,12 @@ public EnumAlphabet() - : base() { + : base(_symbols.Length) { } public EnumAlphabet(int[] map) : base(map) { + Debug.Assert(map.Length == _symbols.Length); } @@ -61,8 +63,5 @@ get { return _symbols; } } - protected override int MapSize { - get { return _symbols.Length; } - } } }