private SignatureHelpItem UpdateItem(SignatureHelpItem item, SupportedPlatformData platformData, ISymbol symbol) { var platformParts = platformData.ToDisplayParts().ToTaggedText(); if (platformParts.Length == 0) { return(item); } var startingNewLine = new List <TaggedText>(); startingNewLine.AddLineBreak(); var concatted = startingNewLine.Concat(platformParts); var updatedDescription = item.DescriptionParts.IsDefault ? concatted : item.DescriptionParts.Concat(concatted); item.DescriptionParts = updatedDescription.ToImmutableArrayOrEmpty(); return(item); }
private static bool Include(SignatureHelpItem item, IEnumerable <string> parameterNames) { var itemParameterNames = item.Parameters.Select(p => p.Name).ToSet(); return(parameterNames.All(itemParameterNames.Contains)); }