35 references to WorkspaceDiagnosticKind
AnalyzerRunner (1)
Program.cs (1)
82
if (workspaceDiagnostic.Kind ==
WorkspaceDiagnosticKind
.Failure)
Microsoft.CodeAnalysis.Workspaces (6)
Workspace\Solution\DocumentDiagnostic.cs (1)
13
public DocumentDiagnostic(
WorkspaceDiagnosticKind
kind, string message, DocumentId documentId)
Workspace\Solution\ProjectDiagnostic.cs (1)
13
public ProjectDiagnostic(
WorkspaceDiagnosticKind
kind, string message, ProjectId projectId)
Workspace\WorkspaceDiagnostic.cs (4)
13
public
WorkspaceDiagnosticKind
Kind { get; }
16
public WorkspaceDiagnostic(
WorkspaceDiagnosticKind
kind, string message)
28
case
WorkspaceDiagnosticKind
.Failure: kindText = WorkspacesResources.Failure; break;
29
case
WorkspaceDiagnosticKind
.Warning: kindText = WorkspacesResources.Warning; break;
Microsoft.CodeAnalysis.Workspaces.MSBuild (27)
MSBuild\DiagnosticReporter.cs (1)
36
Report(new WorkspaceDiagnostic(
WorkspaceDiagnosticKind
.Failure, message));
MSBuild\Logging\DiagnosticLog.cs (5)
21
=> _items.Any(i => i.Kind ==
WorkspaceDiagnosticKind
.Failure);
42
public void Add(string message, string projectFilePath,
WorkspaceDiagnosticKind
kind =
WorkspaceDiagnosticKind
.Failure)
45
public void Add(Exception exception, string projectFilePath,
WorkspaceDiagnosticKind
kind =
WorkspaceDiagnosticKind
.Failure)
MSBuild\Logging\DiagnosticLogItem.cs (3)
11
public
WorkspaceDiagnosticKind
Kind { get; }
15
public DiagnosticLogItem(
WorkspaceDiagnosticKind
kind, string message, string projectFilePath)
22
public 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)
15
public MSBuildDiagnosticLogItem(
WorkspaceDiagnosticKind
kind, string projectFilePath, string message, string fileName, int lineNumber, int columnNumber)
MSBuild\MSBuildProjectLoader.Worker.cs (2)
151
WorkspaceDiagnosticKind
.Warning,
496
var diagnostic = new ProjectDiagnostic(
WorkspaceDiagnosticKind
.Warning, message, projectId);
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (2)
250
WorkspaceDiagnosticKind
.Warning,
292
WorkspaceDiagnosticKind
.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)
29
AssertEx.Equal(expectedFailures, workspace.Diagnostics.Where(d => d.Kind ==
WorkspaceDiagnosticKind
.Failure).Select(d => d.Message));