private SymbolResult(INamespaceOrTypeSymbol symbol, int weight, INamespaceOrTypeSymbol?originalSymbol) { Symbol = symbol; Weight = weight; NameParts = INamespaceOrTypeSymbolExtensions.GetNameParts(symbol); OriginalSymbol = originalSymbol; }
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); }