36 references to AnalysisKind
Microsoft.CodeAnalysis.Features (3)
Diagnostics\DiagnosticArguments.cs (3)
53
/// Optional <see cref="
AnalysisKind
"/>, if computing specific kind of diagnostics for a document request,
55
/// Only supported non-null values are <see cref="
AnalysisKind
.Syntax"/> and <see cref="
AnalysisKind
.Semantic"/>.
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\DocumentAnalysisExecutor.cs (1)
80
var
kind = AnalysisScope.Kind;
Microsoft.CodeAnalysis.Workspaces (32)
Diagnostics\DiagnosticAnalysisResult.cs (5)
202
private ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>>? GetMap(
AnalysisKind
kind)
205
AnalysisKind
.Syntax => _syntaxLocals,
206
AnalysisKind
.Semantic => _semanticLocals,
207
AnalysisKind
.NonLocal => _nonLocals,
241
public ImmutableArray<DiagnosticData> GetDocumentDiagnostics(DocumentId documentId,
AnalysisKind
kind)
Diagnostics\DiagnosticAnalyzerExtensions.cs (3)
26
public static bool SupportAnalysisKind(this DiagnosticAnalyzer analyzer,
AnalysisKind
kind)
29
AnalysisKind
.Syntax => analyzer.SupportsSyntaxDiagnosticAnalysis(),
30
AnalysisKind
.Semantic => analyzer.SupportsSemanticDiagnosticAnalysis(),
Diagnostics\DocumentAnalysisScope.cs (4)
26
AnalysisKind
kind)
28
Debug.Assert(kind is
AnalysisKind
.Syntax or
AnalysisKind
.Semantic);
46
public
AnalysisKind
Kind { get; }
Diagnostics\Extensions.cs (20)
146
var
kind = documentAnalysisScope.Kind;
151
case
AnalysisKind
.Syntax:
157
treeToAnalyze, additionalDocumentId: null, spanToAnalyze,
AnalysisKind
.Syntax, diagnosticIdsToFilter, includeSuppressedDiagnostics);
163
tree: null, documentAnalysisScope.TextDocument.Id, spanToAnalyze,
AnalysisKind
.Syntax, diagnosticIdsToFilter, includeSuppressedDiagnostics);
168
case
AnalysisKind
.Semantic:
172
treeToAnalyze, additionalDocumentId: null, spanToAnalyze,
AnalysisKind
.Semantic, diagnosticIdsToFilter, includeSuppressedDiagnostics);
186
tree, additionalDocumentId: null, span: null,
AnalysisKind
.Syntax, diagnosticIdsToFilter, includeSuppressedDiagnostics);
192
tree, additionalDocumentId: null, span: null,
AnalysisKind
.Semantic, diagnosticIdsToFilter, includeSuppressedDiagnostics);
198
var
kind = additionalDocumentId != null ?
AnalysisKind
.Syntax :
AnalysisKind
.NonLocal;
204
tree: null, additionalDocumentId: null, span: null,
AnalysisKind
.NonLocal, diagnosticIdsToFilter, includeSuppressedDiagnostics);
217
documentAnalysisScope.Span,
AnalysisKind
.Semantic, diagnosticIdsToFilter, includeSuppressedDiagnostics);
225
span: null,
AnalysisKind
.Semantic, diagnosticIdsToFilter, includeSuppressedDiagnostics);
245
AnalysisKind
kind,
263
AnalysisKind
kind,
277
case
AnalysisKind
.Syntax:
291
case
AnalysisKind
.Semantic:
353
case
AnalysisKind
.Syntax:
364
case
AnalysisKind
.Semantic: