Beispiel #1
0
 /// <summary>
 /// Set current result according to another.
 /// </summary>
 public void SetFrom(SingleLookupResult other)
 {
     _kind = other.Kind;
     _symbolList.Clear();
     _symbolList.Add(other.Symbol);
     _error = other.Error;
 }
Beispiel #2
0
 public 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);
     }
 }