private static List <string> GetDirectoryDependencies(ReadOnlyArray <DirectoryArtifact> dependencies, PathTable pathTable, PipGraph graph) { return(GetJsonFriendlyList( dependencies .Where(value => value.Path.IsValid) .Select(value => { var pipHash = graph.GetFormattedSemiStableHash(graph.GetSealedDirectoryNode(value).ToPipId()); return $"{value.Path.ToString(pathTable)} (SealDirectorySemiStableHash: {pipHash}, PartialSealId: {value.PartialSealId}, IsSharedOpaque: {(value.IsSharedOpaque ? 1 : 0)})"; }) )); }
private static AutoCompleteItemParameter[] GetSymbolParameters(ReadOnlyArray <IParameterSymbol> paramsArray, DocumentationComment docComment, bool includeThis = false) { var result = paramsArray.Where(p => !includeThis || !p.IsThis) .Select(p => new AutoCompleteItemParameter() { Name = p.Name, Type = GetparameterTypeName(p.Type), Description = docComment != null ? docComment.GetParameterText(p.Name) : null }) .ToArray(); return(result.Length == 0 ? null : result); }
private static AutoCompleteItemParameter[] GetSymbolParameters(ReadOnlyArray<IParameterSymbol> paramsArray, DocumentationComment docComment, bool includeThis = false) { var result = paramsArray.Where(p => !includeThis || !p.IsThis) .Select(p => new AutoCompleteItemParameter() { Name = p.Name, Type = GetparameterTypeName(p.Type), Description = docComment != null ? docComment.GetParameterText(p.Name) : null }) .ToArray(); return result.Length == 0 ? null : result; }