69 references to LocationKind
Microsoft.CodeAnalysis (17)
Diagnostic\DiagnosticFormatter.cs (3)
34case LocationKind.SourceFile: 35case LocationKind.XmlFile: 36case LocationKind.ExternalFile:
Diagnostic\ExternalFileLocation.cs (2)
51public override LocationKind Kind 55return LocationKind.ExternalFile;
Diagnostic\Location.cs (1)
26public abstract LocationKind Kind { get; }
Diagnostic\MetadataLocation.cs (2)
25public override LocationKind Kind 27get { return LocationKind.MetadataFile; }
Diagnostic\NoLocation.cs (2)
19public override LocationKind Kind 21get { return LocationKind.None; }
Diagnostic\SourceLocation.cs (2)
56public override LocationKind Kind 60return LocationKind.SourceFile;
Diagnostic\XmlLocation.cs (2)
48public override LocationKind Kind 52return LocationKind.XmlFile;
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 (9)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (5)
653var kind = (LocationKind)ReadInteger(); 654if (kind == LocationKind.None) 659else if (kind == LocationKind.SourceFile) 681else if (kind == LocationKind.MetadataFile)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (4)
256Debug.Assert(location.Kind is LocationKind.None or 257LocationKind.SourceFile or 258LocationKind.MetadataFile); 267else if (location.Kind == LocationKind.MetadataFile)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Diagnostics\DiagnosticAnalyzerTests.cs (2)
3904Assert.Equal(LocationKind.ExternalFile, diagnostic.Location.Kind); 3980Assert.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 (6)
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (6)
338case LocationKind.None: 339case LocationKind.MetadataFile: 340case LocationKind.XmlFile: 343case LocationKind.SourceFile: 360case LocationKind.ExternalFile: 426else if (diagnostic.Location.Kind == LocationKind.ExternalFile)
Microsoft.CodeAnalysis.VisualBasic (7)
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
Locations\EmbeddedTreeLocation.vb (2)
19Public Overrides ReadOnly Property Kind As LocationKind 21Return LocationKind.None
Locations\MyTemplateLocation.vb (2)
19Public Overrides ReadOnly Property Kind As LocationKind 21Return LocationKind.None
Symbols\Source\SourceNamespaceSymbol.vb (1)
87If location.Kind = LocationKind.None Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Diagnostics\DiagnosticAnalyzerTests.vb (1)
1679Assert.Equal(LocationKind.ExternalFile, diagnostic.Location.Kind)
ExtensionMethods\SemanticModelTests.vb (2)
1473Assert.Equal(LocationKind.None, alias1.Locations.Single().Kind) 1478Assert.Equal(LocationKind.SourceFile, alias2.Locations.Single().Kind)
Microsoft.CodeAnalysis.Workspaces (24)
CodeFixes\CodeFix.cs (1)
70else if (diagnostic.Location.Kind == LocationKind.ExternalFile)
Diagnostics\DiagnosticAnalysisResultBuilder.cs (10)
59case LocationKind.ExternalFile: 81case LocationKind.None: 85case LocationKind.SourceFile: 86case LocationKind.MetadataFile: 87case LocationKind.XmlFile: 141case LocationKind.ExternalFile: 154case LocationKind.None: 158case LocationKind.SourceFile: 178case LocationKind.MetadataFile: 179case LocationKind.XmlFile:
Diagnostics\DiagnosticData.cs (1)
268else if (location.Kind == LocationKind.ExternalFile)
Shared\Extensions\ISolutionExtensions.cs (2)
46case LocationKind.SourceFile: 48case LocationKind.ExternalFile:
Shared\Extensions\ProjectExtensions.cs (1)
24Debug.Assert(location.Kind == LocationKind.ExternalFile);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (5)
653var kind = (LocationKind)ReadInteger(); 654if (kind == LocationKind.None) 659else if (kind == LocationKind.SourceFile) 681else if (kind == LocationKind.MetadataFile)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (4)
256Debug.Assert(location.Kind is LocationKind.None or 257LocationKind.SourceFile or 258LocationKind.MetadataFile); 267else if (location.Kind == LocationKind.MetadataFile)