Пример #1
0
 /// <summary>
 /// Set current result according to another.
 /// </summary>
 internal void SetFrom(SingleLookupResult other)
 {
     _kind = other.Kind;
     _symbolList.Clear();
     _symbolList.Add(other.Symbol);
     _error = other.Error;
 }
Пример #2
0
 internal void MergeEqual(SingleLookupResult result)
 {
     if (Kind > result.Kind)
     {
         // existing result is better
     }
     else if (result.Kind > Kind)
     {
         this.SetFrom(result);
     }
     else if ((object)result.Symbol != null)
     {
         // Same goodness. Include all symbols
         _symbolList.Add(result.Symbol);
     }
 }