7 overrides of Kind
Microsoft.CodeAnalysis (5)
Diagnostic\ExternalFileLocation.cs (1)
51public override LocationKind Kind
Diagnostic\MetadataLocation.cs (1)
25public override LocationKind Kind
Diagnostic\NoLocation.cs (1)
19public override LocationKind Kind
Diagnostic\SourceLocation.cs (1)
56public override LocationKind Kind
Diagnostic\XmlLocation.cs (1)
48public override LocationKind Kind
Microsoft.CodeAnalysis.VisualBasic (2)
Locations\EmbeddedTreeLocation.vb (1)
19Public Overrides ReadOnly Property Kind As LocationKind
Locations\MyTemplateLocation.vb (1)
19Public Overrides ReadOnly Property Kind As LocationKind
25 references to Kind
Microsoft.CodeAnalysis (5)
Diagnostic\DiagnosticFormatter.cs (1)
32switch (diagnostic.Location.Kind)
Diagnostic\Location.cs (1)
97string result = Kind.ToString();
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (1)
56return location != null && location.Kind == LocationKind.SourceFile;
DiagnosticAnalyzer\DiagnosticQueue.cs (2)
111Debug.Assert(diagnostic.Location.Kind == LocationKind.SourceFile || diagnostic.Location.Kind == LocationKind.ExternalFile);
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (3)
256Debug.Assert(location.Kind is LocationKind.None or 260WriteInteger((int)location.Kind); 267else if (location.Kind == LocationKind.MetadataFile)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
3904Assert.Equal(LocationKind.ExternalFile, diagnostic.Location.Kind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\CompilationCreationTests.cs (1)
2569Assert.Equal(LocationKind.MetadataFile, ((MetadataLocation)Lib1_V1.Locations[0]).Kind);
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (2)
336switch (location.Kind) 426else if (diagnostic.Location.Kind == LocationKind.ExternalFile)
Microsoft.CodeAnalysis.VisualBasic (3)
CommandLine\CommandLineDiagnosticFormatter.vb (1)
136If diagnostic.Location.Kind = LocationKind.ExternalFile Then
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (1)
548loc.Kind = LocationKind.SourceFile AndAlso DirectCast(loc, SourceLocation).SourceTree Is Me._onlyDiagnosticsFromTree AndAlso
Symbols\Source\SourceNamespaceSymbol.vb (1)
87If location.Kind = LocationKind.None Then
Microsoft.CodeAnalysis.Workspaces (10)
CodeFixes\CodeFix.cs (1)
70else if (diagnostic.Location.Kind == LocationKind.ExternalFile)
Diagnostics\DiagnosticAnalysisResultBuilder.cs (3)
57switch (diagnostic.Location.Kind) 139switch (diagnostic.Location.Kind) 184throw ExceptionUtilities.UnexpectedValue(diagnostic.Location.Kind);
Diagnostics\DiagnosticData.cs (1)
268else if (location.Kind == LocationKind.ExternalFile)
Shared\Extensions\ISolutionExtensions.cs (1)
44switch (location.Kind)
Shared\Extensions\ProjectExtensions.cs (1)
24Debug.Assert(location.Kind == LocationKind.ExternalFile);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (3)
256Debug.Assert(location.Kind is LocationKind.None or 260WriteInteger((int)location.Kind); 267else if (location.Kind == LocationKind.MetadataFile)