35 references to WorkspaceDiagnosticKind
AnalyzerRunner (1)
Program.cs (1)
82if (workspaceDiagnostic.Kind == WorkspaceDiagnosticKind.Failure)
Microsoft.CodeAnalysis.Workspaces (6)
Workspace\Solution\DocumentDiagnostic.cs (1)
13public DocumentDiagnostic(WorkspaceDiagnosticKind kind, string message, DocumentId documentId)
Workspace\Solution\ProjectDiagnostic.cs (1)
13public ProjectDiagnostic(WorkspaceDiagnosticKind kind, string message, ProjectId projectId)
Workspace\WorkspaceDiagnostic.cs (4)
13public WorkspaceDiagnosticKind Kind { get; } 16public WorkspaceDiagnostic(WorkspaceDiagnosticKind kind, string message) 28case WorkspaceDiagnosticKind.Failure: kindText = WorkspacesResources.Failure; break; 29case WorkspaceDiagnosticKind.Warning: kindText = WorkspacesResources.Warning; break;
Microsoft.CodeAnalysis.Workspaces.MSBuild (27)
MSBuild\DiagnosticReporter.cs (1)
36Report(new WorkspaceDiagnostic(WorkspaceDiagnosticKind.Failure, message));
MSBuild\Logging\DiagnosticLog.cs (5)
21=> _items.Any(i => i.Kind == WorkspaceDiagnosticKind.Failure); 42public void Add(string message, string projectFilePath, WorkspaceDiagnosticKind kind = WorkspaceDiagnosticKind.Failure) 45public void Add(Exception exception, string projectFilePath, WorkspaceDiagnosticKind kind = WorkspaceDiagnosticKind.Failure)
MSBuild\Logging\DiagnosticLogItem.cs (3)
11public WorkspaceDiagnosticKind Kind { get; } 15public DiagnosticLogItem(WorkspaceDiagnosticKind kind, string message, string projectFilePath) 22public DiagnosticLogItem(WorkspaceDiagnosticKind kind, Exception exception, string projectFilePath)
MSBuild\Logging\MSBuildDiagnosticLogger.cs (2)
29_log?.Add(new MSBuildDiagnosticLogItem(WorkspaceDiagnosticKind.Failure, _projectFilePath, e.Message, e.File, e.LineNumber, e.ColumnNumber)); 35_log?.Add(new MSBuildDiagnosticLogItem(WorkspaceDiagnosticKind.Warning, _projectFilePath, e.Message, e.File, e.LineNumber, e.ColumnNumber));
MSBuild\Logging\MSBuildDiagnosticLogItem.cs (1)
15public MSBuildDiagnosticLogItem(WorkspaceDiagnosticKind kind, string projectFilePath, string message, string fileName, int lineNumber, int columnNumber)
MSBuild\MSBuildProjectLoader.Worker.cs (2)
151WorkspaceDiagnosticKind.Warning, 496var diagnostic = new ProjectDiagnostic(WorkspaceDiagnosticKind.Warning, message, projectId);
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (2)
250WorkspaceDiagnosticKind.Warning, 292WorkspaceDiagnosticKind.Warning,
MSBuild\MSBuildWorkspace.cs (11)
325_reporter.Report(new ProjectDiagnostic(WorkspaceDiagnosticKind.Failure, 340_reporter.Report(new ProjectDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, projectChanges.ProjectId)); 357_reporter.Report(new ProjectDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, projectChanges.ProjectId)); 376_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, message, document.Id)); 394_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, message, document.Id)); 489_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, id)); 517_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, documentId)); 521_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, documentId)); 525_reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, documentId)); 536_reporter.Report(new ProjectDiagnostic(WorkspaceDiagnosticKind.Failure, message, projectId)); 551_reporter.Report(new ProjectDiagnostic(WorkspaceDiagnosticKind.Failure, message, projectId));
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
MSBuildWorkspaceTestBase.cs (1)
29AssertEx.Equal(expectedFailures, workspace.Diagnostics.Where(d => d.Kind == WorkspaceDiagnosticKind.Failure).Select(d => d.Message));