27 references to WorkspaceDiagnosticKind
AnalyzerRunner (1)
Program.cs (1)
82
if (workspaceDiagnostic.Kind ==
WorkspaceDiagnosticKind
.Failure)
Microsoft.CodeAnalysis.Workspaces (6)
Workspace\Solution\DocumentDiagnostic.cs (1)
9
public class DocumentDiagnostic(
WorkspaceDiagnosticKind
kind, string message, DocumentId documentId) : WorkspaceDiagnostic(kind, message)
Workspace\Solution\ProjectDiagnostic.cs (1)
9
public class ProjectDiagnostic(
WorkspaceDiagnosticKind
kind, string message, ProjectId projectId) : WorkspaceDiagnostic(kind, message)
Workspace\WorkspaceDiagnostic.cs (4)
11
public class WorkspaceDiagnostic(
WorkspaceDiagnosticKind
kind, string message)
13
public
WorkspaceDiagnosticKind
Kind { get; } = kind;
22
case
WorkspaceDiagnosticKind
.Failure: kindText = WorkspacesResources.Failure; break;
23
case
WorkspaceDiagnosticKind
.Warning: kindText = WorkspacesResources.Warning; break;
Microsoft.CodeAnalysis.Workspaces.MSBuild (19)
MSBuild\DiagnosticReporter.cs (1)
36
Report(new WorkspaceDiagnostic(
WorkspaceDiagnosticKind
.Failure, message));
MSBuild\DiagnosticReporterLoggerProvider.cs (3)
50
var
kind = logLevel == LogLevel.Warning ?
WorkspaceDiagnosticKind
.Warning :
WorkspaceDiagnosticKind
.Failure;
MSBuild\MSBuildProjectLoader.Worker.cs (2)
147
WorkspaceDiagnosticKind
.Warning,
490
var diagnostic = new ProjectDiagnostic(
WorkspaceDiagnosticKind
.Warning, message, projectId);
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (2)
259
WorkspaceDiagnosticKind
.Warning,
301
WorkspaceDiagnosticKind
.Warning,
MSBuild\MSBuildWorkspace.cs (11)
343
_reporter.Report(new ProjectDiagnostic(
WorkspaceDiagnosticKind
.Failure,
358
_reporter.Report(new ProjectDiagnostic(
WorkspaceDiagnosticKind
.Failure, exception.Message, projectChanges.ProjectId));
375
_reporter.Report(new ProjectDiagnostic(
WorkspaceDiagnosticKind
.Failure, exception.Message, projectChanges.ProjectId));
394
_reporter.Report(new DocumentDiagnostic(
WorkspaceDiagnosticKind
.Failure, message, document.Id));
412
_reporter.Report(new DocumentDiagnostic(
WorkspaceDiagnosticKind
.Failure, message, document.Id));
505
_reporter.Report(new DocumentDiagnostic(
WorkspaceDiagnosticKind
.Failure, exception.Message, id));
533
_reporter.Report(new DocumentDiagnostic(
WorkspaceDiagnosticKind
.Failure, exception.Message, documentId));
537
_reporter.Report(new DocumentDiagnostic(
WorkspaceDiagnosticKind
.Failure, exception.Message, documentId));
541
_reporter.Report(new DocumentDiagnostic(
WorkspaceDiagnosticKind
.Failure, exception.Message, documentId));
577
_reporter.Report(new ProjectDiagnostic(
WorkspaceDiagnosticKind
.Failure, message, projectId));
613
_reporter.Report(new ProjectDiagnostic(
WorkspaceDiagnosticKind
.Failure, message, projectId));
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
MSBuildWorkspaceTestBase.cs (1)
29
AssertEx.Equal(expectedFailures, workspace.Diagnostics.Where(d => d.Kind ==
WorkspaceDiagnosticKind
.Failure).Select(d => d.Message));