33 references to IsInMetadata
Microsoft.AspNetCore.Analyzer.Testing (2)
DiagnosticAnalyzerRunner.cs (1)
90if (diag.Location == Location.None || diag.Location.IsInMetadata)
DiagnosticVerifier.cs (1)
113if (diag.Location == Location.None || diag.Location.IsInMetadata)
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
66if (diag.Location == Location.None || diag.Location.IsInMetadata)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
66if (diag.Location == Location.None || diag.Location.IsInMetadata)
Microsoft.CodeAnalysis (2)
Diagnostic\Location.cs (2)
48/// Might return null even if <see cref="IsInMetadata"/> returns true. The module symbol might not be available anymore, 102else if (IsInMetadata)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
70else if (!symbol.Locations.Any(static loc => loc.IsInMetadata))
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
SymbolFinder\DependentTypeFinderTests.cs (2)
583Assert.True(delegates.Any(i => i.Locations.Any(loc => loc.IsInMetadata)), "We should find a metadata delegate"); 613Assert.True(enums.Any(i => i.Locations.Any(loc => loc.IsInMetadata)), "We should find a metadata enum");
Microsoft.CodeAnalysis.Features (6)
ChangeSignature\AbstractChangeSignatureService.cs (1)
149if (symbol.Locations.Any(static loc => loc.IsInMetadata))
CodeRefactorings\MoveType\AbstractMoveTypeService.State.cs (1)
59typeSymbol.Locations.Any(static loc => loc.IsInMetadata) ||
GoToBase\AbstractGoToBaseService.cs (1)
74else if (baseSymbol.Locations.Any(static l => l.IsInMetadata))
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
719if (location.IsInMetadata)
MetadataAsSource\MetadataAsSourceFileService.cs (1)
281if (!symbol.Locations.Any(static l => l.IsInMetadata))
ReplaceMethodWithProperty\AbstractReplaceMethodWithPropertyService.cs (1)
35if (current.Locations.Any(static loc => loc.IsInMetadata))
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\DiagnosticExtensions.cs (1)
447e.Location.IsInMetadata ? "metadata: " : "no location: ";
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (6)
CompilationTestUtils.vb (6)
1014ElseIf e.Location.IsInMetadata Then 1039If Not (loc1.IsInSource Or loc1.IsInMetadata) Then 1040If Not (loc2.IsInSource Or loc2.IsInMetadata) Then 1048ElseIf Not (loc2.IsInSource Or loc2.IsInMetadata) Then 1064ElseIf loc1.IsInMetadata AndAlso loc2.IsInMetadata Then
Microsoft.CodeAnalysis.Workspaces (7)
FindSymbols\FindReferences\DependentProjectsFinder.cs (1)
120var project = assembly.Locations.Any(static loc => loc.IsInMetadata)
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
42private static readonly Func<Location, bool> s_isInMetadata = static loc => loc.IsInMetadata;
FindSymbols\SymbolFinder_Helpers.cs (1)
18if (symbol.Locations.Any(static l => l.IsInMetadata))
Rename\ConflictEngine\ConflictResolver.cs (1)
364overriddenFromMetadata = overriddenSymbol == null || overriddenSymbol.Locations.All(loc => loc.IsInMetadata);
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
618if (overriddenSymbol == null || !overriddenSymbol.Locations.All(loc => loc.IsInMetadata))
Shared\Extensions\IFindReferencesResultExtensions.cs (1)
88definition.Locations.Any(static loc => loc.IsInMetadata))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
70else if (!symbol.Locations.Any(static loc => loc.IsInMetadata))
Microsoft.VisualStudio.LanguageServices (4)
Library\ObjectBrowser\AbstractListItemFactory.cs (3)
134|| symbol.Locations.Any(static l => l.IsInSource || l.IsInMetadata); 154if (symbol.Locations.Any(static l => l.IsInMetadata)) 576if (typeMember.Locations.Any(static l => l.IsInMetadata))
Progression\GraphBuilder.cs (1)
211if (preferredLocation == null && symbol.Locations.Any(static loc => loc.IsInMetadata))