private SymbolResult(INamespaceOrTypeSymbol symbol, int weight, INamespaceOrTypeSymbol?originalSymbol)
 {
     Symbol         = symbol;
     Weight         = weight;
     NameParts      = INamespaceOrTypeSymbolExtensions.GetNameParts(symbol);
     OriginalSymbol = originalSymbol;
 }
示例#2
0
 public SearchResult(SymbolResult <INamespaceOrTypeSymbol> result)
     : this(
         result.DesiredName,
         result.NameNode,
         INamespaceOrTypeSymbolExtensions.GetNameParts(result.Symbol),
         result.Weight
         )
 {
 }
 public SymbolResult(INamespaceOrTypeSymbol symbol, int weight)
 {
     Symbol    = symbol;
     Weight    = weight;
     NameParts = INamespaceOrTypeSymbolExtensions.GetNameParts(symbol);
 }