예제 #1
0
        /// <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);
        }
예제 #2
0
 public void LexicalEntry_Uncovered()
 {
     LexicalEntry entry = new LexicalEntry("key", 1, 2);
     Assert.AreEqual("key [1:2]", entry.ToString());
 }
예제 #3
0
        /// <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);
        }