public static CreateDocumentSetFromSources ( string filePath ) : Microsoft.CodeAnalysis.Document | ||
filePath | string | |
return | Microsoft.CodeAnalysis.Document |
public static IOrderedEnumerable <Diagnostic> GetSortedDiagnostics(string filePath, DiagnosticAnalyzer analyzer, string settingsPath) { var options = new AnalyzerOptions(ImmutableArray.Create <AdditionalText>(new SettingsFile(settingsPath))); return(GetSortedDiagnosticsFromDocuments(analyzer, DocumentSetCreator.CreateDocumentSetFromSources(filePath), options)); }