/// <summary> /// Adds lexical entry to the parsed entities. /// </summary> private void Add(LexicalEntry entry) { if (!m_entriesByIndex.ContainsKey(entry.StartPosition)) { m_entriesByIndex[entry.StartPosition] = new List <LexicalEntry>(); } m_entriesByIndex[entry.StartPosition].Add(entry); }
public void LexicalEntry_Uncovered() { LexicalEntry entry = new LexicalEntry("key", 1, 2); Assert.AreEqual("key [1:2]", entry.ToString()); }
/// <summary> /// Adds lexical entry to the parsed entities. /// </summary> private void Add(LexicalEntry entry) { if (!m_entriesByIndex.ContainsKey(entry.StartPosition)) m_entriesByIndex[entry.StartPosition] = new List<LexicalEntry>(); m_entriesByIndex[entry.StartPosition].Add(entry); }