226 references to IsInSource
Microsoft.CodeAnalysis (9)
Diagnostic\Location.cs (2)
59/// If <see cref="IsInSource"/> returns False this method returns an empty <see cref="TextSpan"/> which starts at position 0. 98if (IsInSource)
DiagnosticAnalyzer\AnalysisScope.cs (1)
226if (diagnostic.Location.IsInSource)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
1168if (!location.IsInSource)
DiagnosticAnalyzer\AnalyzerExecutor.AnalyzerDiagnosticReporter.cs (1)
118if (diagnostic.Location.IsInSource)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1364if (diagnostic.Location.IsInSource)
DiagnosticAnalyzer\DiagnosticAnalysisContextHelpers.cs (1)
90if (!location.IsInSource)
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (1)
157if (location.IsInSource)
Symbols\ISymbolExtensions.cs (1)
111if (location.IsInSource)
Microsoft.CodeAnalysis.CodeStyle (9)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
551Debug.Assert(diagnostic.Location.IsInSource);
HashCodeAnalyzer.cs (1)
70if (!method.Locations[0].IsInSource)
ISymbolExtensions.cs (1)
555=> symbol.Locations.Any() && symbol.Locations.All(location => location.IsInSource);
LocationExtensions.cs (3)
33if (!loc.IsInSource) 44Debug.Assert(loc1.IsInSource && loc2.IsInSource);
SymbolKey.BodyLevelSymbolKey.cs (2)
29if (location.IsInSource) 66Contract.ThrowIfFalse(locations.All(loc => loc.IsInSource));
SymbolKey.SymbolKeyWriter.cs (1)
255if (location.IsInSource)
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
AbstractCodeGenerationService.cs (1)
489if (!location.IsInSource)
AbstractCodeGenerationService_FindDeclaration.cs (1)
150if (location != null && location.IsInSource)
CodeGenerationContext.cs (1)
174if (location != null && !location.IsInSource)
Microsoft.CodeAnalysis.CodeStyle.LegacyTestFramework.UnitTestUtilities (1)
AbstractUserDiagnosticTest.cs (1)
213return diagnostic.Location.IsInSource
Microsoft.CodeAnalysis.CSharp (19)
Binder\Binder_Symbols.cs (4)
1848if (la.IsInSource != lb.IsInSource) return la.IsInSource ? 1 : -1; 1850if (!la.IsInSource) return containerResult;
Compilation\CSharpCompilation.cs (2)
4229Debug.Assert(loc1.IsInSource); 4230Debug.Assert(loc2.IsInSource);
Compilation\SyntaxTreeSemanticModel.cs (2)
1779if (loc.IsInSource && loc.SourceTree == this.SyntaxTree && declarationSpan.Contains(loc.SourceSpan)) 1800if (loc.IsInSource && loc.SourceTree == this.SyntaxTree && declarationSpan.Contains(loc.SourceSpan))
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (3)
367if (location.IsInSource) 407if (location.IsInSource) 436if (location.IsInSource)
Emitter\Model\PEModuleBuilder.cs (2)
260if (!loc.IsInSource) 469if (loc.IsInSource && (result == null || compilation.CompareSourceLocations(result, loc) > 0))
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (1)
226if (location.IsInSource && location.SourceTree == semanticModelOpt.SyntaxTree)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (2)
99if (location.IsInSource) 187Debug.Assert(typeDescr.Location.IsInSource); // AnonymousDelegateTemplateSymbol requires a location in source for ordering.
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
92Debug.Assert(location.IsInSource);
Symbols\NamespaceOrTypeSymbol.cs (1)
217if (loc.IsInSource && loc.SourceTree == syntax.SyntaxTree && syntax.Span.Contains(loc.SourceSpan))
Symbols\Symbol.cs (1)
374if (location == null || !location.IsInSource)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
CSharpCodeGenerationHelpers.cs (1)
199var contextTree = contextLocation != null && contextLocation.IsInSource
CSharpDeclareAsNullableCodeFixProvider.cs (1)
213else if (symbol is IFieldSymbol { CorrespondingTupleField: IFieldSymbol { Locations: [{ IsInSource: true } location] } })
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Squiggles\ErrorSquiggleProducerTests.cs (1)
431if (!context.Symbol.IsImplicitlyDeclared && context.Symbol.Locations.First().IsInSource)
Microsoft.CodeAnalysis.CSharp.Features (3)
CSharpDeclareAsNullableCodeFixProvider.cs (1)
213else if (symbol is IFieldSymbol { CorrespondingTupleField: IFieldSymbol { Locations: [{ IsInSource: true } location] } })
Debugging\BreakpointResolver.cs (1)
40var location = method.Locations.First(loc => loc.IsInSource);
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (1)
83if (!location.IsInSource)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests.cs (1)
141Assert.True(generatedClass.Locations.Single().IsInSource);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (17)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (12)
4804Assert.True(type.Locations.Single().IsInSource); 4827Assert.True(type.Locations.Single().IsInSource); 4850Assert.True(type.Locations.Single().IsInSource); 4873Assert.True(type.Locations.Single().IsInSource); 4896Assert.True(type.Locations.Single().IsInSource); 4919Assert.True(element.Locations.Single().IsInSource); 4942Assert.True(element.Locations.Single().IsInSource); 4965Assert.True(element.Locations.Single().IsInSource); 5000Assert.True(element.Locations.Single().IsInSource); 5046Assert.True(element.Locations.Single().IsInSource); 5095Assert.True(element.Locations.Single().IsInSource); 5118Assert.True(element.Locations.Single().IsInSource);
Symbols\AnonymousTypesSymbolTests.cs (2)
1646Assert.True(sym.Symbol.Locations[0].IsInSource); 1655Assert.True(m.Locations[0].IsInSource);
Symbols\CovariantReturnTests.cs (1)
673var attributeExpected = isCovariant && !method.Locations[0].IsInSource;
Symbols\Source\PropertyTests.cs (2)
1964Assert.True(locs[0].IsInSource, "InSource"); 1971Assert.True(locs[0].IsInSource, "InSource");
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Syntax\SyntaxNodeTests.cs (4)
2044Assert.True(nodeLocation.IsInSource); 2049Assert.True(tokenLocation.IsInSource); 2054Assert.True(triviaLocation.IsInSource); 2060Assert.True(spanLocation.IsInSource);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CSharpCodeGenerationHelpers.cs (1)
199var contextTree = contextLocation != null && contextLocation.IsInSource
Rename\CSharpRenameRewriterLanguageService.cs (2)
146_renamableDeclarationLocation = _renamedSymbol.Locations.FirstOrDefault(loc => loc.IsInSource && loc.SourceTree == _semanticModel.SyntaxTree); 978if (location.IsInSource && reverseMappedLocations.ContainsKey(location))
Microsoft.CodeAnalysis.EditorFeatures (1)
GoToDefinition\AbstractGoToDefinitionService.cs (1)
100var sourceLocations = symbol.Locations.WhereAsArray(loc => loc.IsInSource);
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (2)
Diagnostics\AbstractSuppressionDiagnosticTest.cs (1)
53diagnostics = diagnostics.Where(d => d.Location.IsInSource);
Diagnostics\AbstractUserDiagnosticTest.cs (1)
213return diagnostic.Location.IsInSource
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
MetadataAsSource\AbstractMetadataAsSourceTests.cs (1)
113Assert.False(generatedSymbol.Locations.Where(loc => loc.IsInSource).IsEmpty());
SymbolFinder\DependentTypeFinderTests.cs (2)
584Assert.Single(delegates.Where(i => i.Locations.Any(loc => loc.IsInSource))); // We should find a single source delegate 614Assert.Single(enums.Where(i => i.Locations.Any(loc => loc.IsInSource))); // We should find a single source type
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
Peek\DefinitionPeekableItem.cs (1)
84var sourceLocations = symbol.Locations.Where(l => l.IsInSource).ToList();
Peek\PeekableItemFactory.cs (1)
89if (firstLocation.IsInSource || _metadataAsSourceFileService.IsNavigableMetadataSymbol(symbol))
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (12)
Diagnostics\DiagnosticServiceTests.vb (1)
1293Dim sourceLoc = context.Symbol.Locations.First(Function(l) l.IsInSource)
FindReferences\FindReferencesTests.LinkedFiles.vb (4)
307Dim sourceReferences = references.Where(Function(r) r.Definition.Locations(0).IsInSource).ToArray() 350Dim sourceReferences = references.Where(Function(r) r.Definition.Locations(0).IsInSource).ToArray() 393Dim sourceReferences = references.Where(Function(r) r.Definition.Locations(0).IsInSource).ToArray() 436Dim sourceReferences = references.Where(Function(r) r.Definition.Locations(0).IsInSource).ToArray()
FindReferences\FindReferencesTests.vb (2)
500Return loc.IsInSource AndAlso Not loc.SourceTree.IsHiddenPosition(loc.SourceSpan.Start) 502Return loc.IsInSource
Workspaces\TryFindSourceDefinitionTests.vb (5)
70Assert.True(mappedType.Locations.All(Function(Loc) Loc.IsInSource)) 114Assert.True(mappedType.Locations.All(Function(Loc) Loc.IsInSource)) 151Assert.True(mappedMember.Locations.All(Function(Loc) Loc.IsInSource)) 188Assert.True(mappedMember.Locations.All(Function(Loc) Loc.IsInSource)) 225Assert.True(mappedMember.Locations.All(Function(Loc) Loc.IsInSource))
Microsoft.CodeAnalysis.Features (44)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
551Debug.Assert(diagnostic.Location.IsInSource);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (1)
212if (diagnostic.Location.IsInSource && documentOpt != null)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (2)
167Contract.ThrowIfFalse(diagnostic.Location.IsInSource); 189Contract.ThrowIfFalse(!diagnostic.Location.IsInSource);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaWarningBatchFixAllProvider.cs (1)
38foreach (var diagnostic in diagnostics.Where(d => d.Location.IsInSource && !d.IsSuppressed))
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.BatchFixer.cs (2)
45foreach (var diagnostic in diagnostics.Where(d => d.Location.IsInSource && d.IsSuppressed)) 91foreach (var diagnostic in diagnostics.Where(d => !d.Location.IsInSource && d.IsSuppressed))
CodeFixes\Suppression\WrapperCodeFixProvider.cs (2)
32var documentDiagnostics = diagnostics.Where(d => d.Location.IsInSource).ToImmutableArray(); 39var projectDiagnostics = diagnostics.Where(d => !d.Location.IsInSource).ToImmutableArray();
CodeLens\CodeLensFindReferenceProgress.cs (3)
112_locations.AddRange(locations.Where(location => location.IsInSource)); 136!reference.Location.IsInSource || 137!definition.Locations.Any(static loc => loc.IsInSource);
CodeLens\LocationComparer.cs (3)
19if (x != null && x.IsInSource && y != null && y.IsInSource) 30if (obj != null && obj.IsInSource)
Debugging\AbstractBreakpointResolver.cs (2)
81var location = methodSymbol.Locations.First(loc => loc.IsInSource); 266if ((methodOrProperty.Language == _language) && methodOrProperty.Locations.Any(static location => location.IsInSource))
DocumentHighlighting\AbstractDocumentHighlightsService.cs (3)
218if (symbol.Locations.First().IsInSource) 232if (location.IsInSource) 308if (location != null && location.IsInSource)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
181Debug.Assert(location.IsInSource);
ExtractMethod\MethodExtractor.VariableSymbol.cs (5)
214Contract.ThrowIfFalse(_localSymbol.Locations[0].IsInSource); 215Contract.ThrowIfFalse(other._localSymbol.Locations[0].IsInSource); 235Contract.ThrowIfFalse(_localSymbol.Locations[0].IsInSource); 326Contract.ThrowIfFalse(locationLeft.IsInSource); 327Contract.ThrowIfFalse(locationRight.IsInSource);
FindUsages\AbstractFindUsagesService_FindImplementations.cs (1)
128if (location.IsInSource && !seenLocations.Add((location.SourceTree.FilePath, location.SourceSpan)))
FindUsages\IDefinitionsAndReferencesFactory.cs (2)
183if (location.IsInSource) 247Debug.Assert(location.IsInSource);
GenerateMember\AbstractGenerateMemberService.cs (1)
52return locations.Any(static loc => loc.IsInSource);
GenerateType\AbstractGenerateTypeService.State.cs (2)
303!symbol.Locations.Any(static loc => loc.IsInSource)) 309var sourceTreeToBeGeneratedIn = symbol.Locations.First(loc => loc.IsInSource).SourceTree;
HashCodeAnalyzer.cs (1)
70if (!method.Locations[0].IsInSource)
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (4)
299var derivedSymbols = allDerivedSymbols.WhereAsArray(symbol => symbol.Locations.Any(static l => l.IsInSource)); 344var implementingSymbols = allImplementingSymbols.WhereAsArray(symbol => symbol.Locations.Any(static l => l.IsInSource)); 370var overridingSymbols = allOverridingSymbols.WhereAsArray(symbol => symbol.Locations.Any(static l => l.IsInSource)); 723else if (location.IsInSource && location.IsVisibleSourceLocation())
MetadataAsSource\MetadataAsSourceHelpers.cs (1)
87if (location.IsInSource)
Navigation\NavigableItemFactory.cs (1)
65: locations.Where(loc => loc.IsInSource);
Navigation\NavigableItemFactory.SymbolLocationNavigableItem.cs (1)
42=> _location.IsInSource ? _solution.GetDocument(_location.SourceTree) : null;
PullMemberUp\MemberAndDestinationValidator.cs (1)
25destination.Locations.Any(static (location, arg) => location.IsInSource && !arg.solution.GetRequiredDocument(location.SourceTree).IsGeneratedCode(arg.cancellationToken), (solution, cancellationToken));
Rename\SymbolicRenameInfo.cs (1)
219else if (location.IsInSource)
SolutionCrawler\WorkCoordinator.SemanticChangeProcessor.cs (1)
180Debug.Assert(location.IsInSource);
ValueTracking\ValueTracker.FindReferencesProgress.cs (1)
41if (!location.Location.IsInSource)
Microsoft.CodeAnalysis.Test.Utilities (3)
Diagnostics\DiagnosticDescription.cs (2)
157if (_location.IsInSource) 540if (l.IsInSource)
Diagnostics\DiagnosticExtensions.cs (1)
445=> e.Location.IsInSource ? $"{e.Severity} {e.Id}: {e.GetMessage(CultureInfo.CurrentCulture)}" :
Microsoft.CodeAnalysis.VisualBasic (22)
Binding\Binder_Expressions.vb (2)
2996declarationLocation.IsInSource AndAlso 2997referenceLocation IsNot Nothing AndAlso referenceLocation.IsInSource AndAlso
CommandLine\CommandLineDiagnosticFormatter.vb (1)
131If diagnostic.Location.IsInSource Then
Compilation\SyntaxTreeSemanticModel.vb (2)
1144If location.IsInSource AndAlso location.SourceTree Is _syntaxTree AndAlso parameter.Span.Contains(location.SourceSpan) Then 1330If location.IsInSource AndAlso location.SourceTree Is _syntaxTree AndAlso declarationSyntax.Span.Contains(location.SourceSpan) Then
Emit\PEModuleBuilder.vb (2)
301If loc.IsInSource AndAlso (result Is Nothing OrElse compilation.CompareSourceLocations(result, loc) > 0) Then 688If Not loc.IsInSource Then
Symbols\AnonymousTypes\AnonymousTypeManager_Templates.vb (1)
34If location.IsInSource Then
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTemplateSymbol.vb (1)
337Debug.Assert(newLocation.IsInSource)
Symbols\LexicalSortKey.vb (2)
181Debug.Assert(first.IsInSource OrElse first.IsEmbeddedOrMyTemplateLocation()) 182Debug.Assert(second.IsInSource OrElse second.IsEmbeddedOrMyTemplateLocation())
Symbols\MethodSymbolExtensions.vb (1)
51If location.IsInSource AndAlso location.SourceTree Is syntaxTree AndAlso parameter.Span.Contains(location.SourceSpan) Then
Symbols\NamedTypeSymbolExtensions.vb (3)
30If methodLoc.IsInSource AndAlso methodLoc.SourceTree Is tree AndAlso methodLoc.SourceSpan = nameSpan Then 40If methodLoc.IsInSource AndAlso methodLoc.SourceTree Is tree AndAlso methodLoc.SourceSpan = nameSpan Then 61If methodLoc.IsInSource AndAlso
Symbols\Source\OverrideHidingHelper.vb (2)
450Debug.Assert(hidingMember.Locations(0).IsInSource) 469Debug.Assert(hidingMember.Locations(0).IsInSource)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
1368Debug.Assert(firstLocation.IsInSource)
Symbols\Source\SourceModuleSymbol.vb (1)
1038If loc.IsInSource Then
Symbols\Source\SourceNamedTypeSymbol.vb (1)
540If location.IsInSource AndAlso Not DirectCast(location.SourceTree, VisualBasicSyntaxTree).IsEmbeddedSyntaxTree Then
Symbols\Source\SourceTypeParameterSymbol.vb (1)
117Debug.Assert(loc.IsInSource)
Symbols\Symbol.vb (1)
313If location.IsInSource AndAlso location.SourceTree IsNot Nothing Then
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Debugging\BreakpointResolver.vb (1)
30Dim location = method.Locations.First(Function(loc) loc.IsInSource)
ExtractMethod\VisualBasicSelectionValidator.vb (1)
285Not symbol.Locations.First().IsInSource OrElse
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Diagnostics\DiagnosticAnalyzerTests.vb (2)
316Dim sourceLoc = context.Symbol.Locations.First(Function(l) l.IsInSource) 510Dim sourceLoc = context.Symbol.Locations.First(Function(l) l.IsInSource)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Source\PropertyTests.vb (1)
6014Assert.True(p11.Locations(0).IsInSource, "Parameter Location(0) IsInSource")
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (11)
CompilationTestUtils.vb (8)
993If e.Location.IsInSource Then 1026If Not (loc1.IsInSource Or loc1.IsInMetadata) Then 1027If Not (loc2.IsInSource Or loc2.IsInMetadata) Then 1035ElseIf Not (loc2.IsInSource Or loc2.IsInMetadata) Then 1037ElseIf loc1.IsInSource AndAlso loc2.IsInSource Then 1060ElseIf loc1.IsInSource Then 1062ElseIf loc2.IsInSource Then
ParserTestUtilities.vb (3)
465<%= If(e.Location.IsInSource, New XAttribute("start", e.Location.SourceSpan.Start), Nothing) %> 466<%= If(e.Location.IsInSource, New XAttribute("end", e.Location.SourceSpan.End), Nothing) %> 467<%= If(e.Location.IsInSource, New XAttribute("length", e.Location.SourceSpan.Length), Nothing) %>
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Rename\VisualBasicRenameRewriterLanguageService.vb (1)
124_renamableDeclarationLocation = _renamedSymbol.Locations.Where(Function(loc) loc.IsInSource AndAlso loc.SourceTree Is _semanticModel.SyntaxTree).FirstOrDefault()
Microsoft.CodeAnalysis.Workspaces (36)
AbstractCodeGenerationService.cs (1)
489if (!location.IsInSource)
AbstractCodeGenerationService_FindDeclaration.cs (1)
150if (location != null && location.IsInSource)
CodeFixes\CodeFix.cs (1)
62if (diagnostic.Location.IsInSource)
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (1)
120.Where(d => d.Location.IsInSource)
CodeGenerationContext.cs (1)
174if (location != null && !location.IsInSource)
Diagnostics\DiagnosticData.cs (1)
289if (location.IsInSource)
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
43private static readonly Func<Location, bool> s_isInSource = static loc => loc.IsInSource;
FindSymbols\FindReferences\Finders\AbstractMemberScopedReferenceFinder.cs (1)
35if (location == null || !location.IsInSource)
FindSymbols\FindReferences\MetadataUnifyingEquivalenceComparer.cs (1)
51=> symbol.Locations.Any(static l => l.IsInSource);
FindSymbols\SymbolFinder.cs (1)
206return symbol.Locations.Any(static loc => loc.IsInSource);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs\ISymbolExtensions.cs (1)
555=> symbol.Locations.Any() && symbol.Locations.All(location => location.IsInSource);
LocationExtensions.cs (3)
33if (!loc.IsInSource) 44Debug.Assert(loc1.IsInSource && loc2.IsInSource);
Rename\ConflictEngine\ConflictResolver.cs (6)
102var renameSymbolDeclarationLocation = renameLocations.Symbol.Locations.Where(loc => loc.IsInSource).FirstOrDefault(); 174return conflictResolution.ReplacementTextValid && renamedSymbol != null && renamedSymbol.Locations.Any(static loc => loc.IsInSource); 333if (newLocation.IsInSource) 371if (location != null && location.IsInSource) 414.OrderBy(l => l.IsInSource ? solution.GetDocumentId(l.SourceTree)!.Id : Guid.Empty) 415.ThenBy(l => l.IsInSource ? l.SourceSpan.Start : int.MaxValue);
Rename\ConflictEngine\ConflictResolver.Session.cs (3)
536var newLocations = (await Task.WhenAll(newLocationTasks).ConfigureAwait(false)).WhereNotNull().Where(loc => loc.IsInSource); 582if (!newLocation.IsInSource) 623newLocation.IsInSource ||
Rename\RenameUtilities.cs (1)
91var documentsOfRenameSymbolDeclaration = symbol.Locations.Where(l => l.IsInSource).Select(l => solution.GetRequiredDocument(l.SourceTree!));
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (5)
68referencedSymbol.Locations.Any(static loc => loc.IsInSource)) 179if (location.IsInSource) 187if (referencedSymbol.Kind == SymbolKind.NamedType && referencedSymbol.Locations.All(l => l.IsInSource)) 202if (location.IsInSource) 220RoslynDebug.Assert(location.IsInSource);
Shared\Extensions\IFindReferencesResultExtensions.cs (1)
77if (definition.Locations.Any(static loc => loc.IsInSource))
Shared\Extensions\ISymbolExtensions.cs (2)
81if (symbol.Locations.All(loc => loc.IsInSource)) 659static bool isSymbolDefinedInSource(Location l) => l.IsInSource;
Shared\Extensions\ITypeSymbolExtensions.cs (1)
163typeSymbol.Locations.Any(static location => location.IsInSource)) ||
SymbolKey.BodyLevelSymbolKey.cs (2)
29if (location.IsInSource) 66Contract.ThrowIfFalse(locations.All(loc => loc.IsInSource));
SymbolKey.SymbolKeyWriter.cs (1)
255if (location.IsInSource)
Microsoft.VisualStudio.LanguageServices (7)
Library\ObjectBrowser\AbstractListItemFactory.cs (3)
133|| symbol.Locations.Any(static l => l.IsInSource || l.IsInMetadata); 148if (symbol.Locations.Any(static l => l.IsInSource)) 578if (typeMember.Locations.Any(static l => l.IsInSource))
MoveStaticMembers\VisualStudioMoveStaticMembersOptionsService.cs (1)
182.Where(l => l.IsInSource &&
Progression\GraphBuilder.cs (1)
201preferredLocation = newSymbol.Locations.Where(loc => loc.IsInSource).FirstOrDefault();
Progression\GraphQueries\IsUsedByGraphQuery.cs (1)
35.Where(l => l != null && l.IsInSource);
Workspace\VisualStudioSymbolNavigationService.cs (1)
69var sourceLocations = symbol.Locations.Where(loc => loc.IsInSource);
Microsoft.VisualStudio.LanguageServices.Implementation (5)
CodeModel\AbstractCodeModelService.cs (1)
594if (location.IsInSource)
CodeModel\Collections\ExternalNamespaceEnumerator.cs (1)
86if (namedType.Locations.Any(static l => l.IsInMetadata || l.IsInSource))
CodeModel\Collections\OverloadsCollection.cs (1)
71var location = method.Locations.FirstOrDefault(l => l.IsInSource);
CodeModel\Collections\PartialTypeCollection.cs (1)
55foreach (var location in symbol.Locations.Where(l => l.IsInSource))
RoslynVisualStudioWorkspace.cs (1)
136var sourceLocation = symbol.Locations.Where(l => l.IsInSource).FirstOrDefault();