180 references to Contains
Microsoft.CodeAnalysis (5)
DiagnosticAnalyzer\AnalysisScope.cs (1)
289return !FilterSpanOpt.HasValue || FilterSpanOpt.GetValueOrDefault().Contains(filterSpan);
Syntax\SyntaxNode.cs (3)
529if (node == null || !this.FullSpan.Contains(node.FullSpan)) 964if (!this.FullSpan.Contains(span)) 971!.FirstAncestorOrSelf<SyntaxNode, TextSpan>((a, span) => a.FullSpan.Contains(span), span);
Syntax\SyntaxTreeExtensions.cs (1)
35node = root.DescendantNodes(n => n.FullSpan.Contains(change)).LastOrDefault();
Microsoft.CodeAnalysis.CodeStyle (14)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
541r => r.SyntaxTree == diagnosticLocation.SourceTree && r.Span.Contains(diagnosticLocation.SourceSpan));
src\Compilers\Core\Portable\Syntax\SyntaxTreeExtensions.cs (1)
35node = root.DescendantNodes(n => n.FullSpan.Contains(change)).LastOrDefault();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
117if (currentNode != null && searchSpan.Contains(currentNode.FullSpan) && predicate(currentNode))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextSpanExtensions.cs (2)
64return span.Contains(innerSpan) && outerSpan.Contains(span);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
163operationSpan.Contains(baseSpan))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (2)
392Debug.Assert((token1.IndexInStream >= 0 && token2.IndexInStream >= 0) || token1.Token.Equals(token2.Token.GetPreviousToken(includeZeroWidth: true)) || token2.Token.LeadingTrivia.Span.Contains(token1.Token.Span)); 417Debug.Assert((token1.IndexInStream >= 0 && token2.IndexInStream >= 0) || token1.Token.Equals(token2.Token.GetPreviousToken(includeZeroWidth: true)) || token2.Token.LeadingTrivia.Span.Contains(token1.Token.Span));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
41else if (node.Span.Contains(_span)) 83if (self._span.Contains(operation.TextSpan)) 89if (operation.TextSpan.Contains(self._span))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
721if (change.Span.Contains(insertionPoint) && IsNullOrWhitespace(change.NewText))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (1)
44Debug.Assert(ownerOfHeader.FullSpan.Contains(lastTokenOrNodeOfHeader.Span));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (1)
111if (textSpan.Contains(member.Span))
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringHelpers.cs (1)
57if (selection.Contains(node.Span))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
139var node = token.Parent!.AncestorsAndSelf().First(a => a.FullSpan.Contains(span));
Microsoft.CodeAnalysis.CSharp (15)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
643return (location.SourceTree == syntaxTree) && span.Contains(location.SourceSpan);
Compilation\MemberSemanticModel.cs (1)
1841if (result == null || resultSpan.Contains(span))
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
155!Root.Span.Contains(attributeOrParameter.Span))
Compilation\SyntaxTreeSemanticModel.cs (3)
108if (span.HasValue && !this.Root.FullSpan.Contains(span.Value)) 1047if (node != null && node.FullSpan.Contains(span)) 1813if (loc.IsInSource && loc.SourceTree == this.SyntaxTree && declarationSpan.Contains(loc.SourceSpan))
Compiler\UnprocessedDocumentationCommentFinder.cs (1)
40return _filterSpanWithinTree.HasValue && !_filterSpanWithinTree.Value.Contains(fullSpan);
FlowAnalysis\AbstractFlowPass.cs (1)
305return RegionSpan.Contains(span);
FlowAnalysis\ReadWriteWalker.cs (3)
142if (!IsInside && node.Span.Contains(RegionSpan) && (expr.Kind == BoundKind.FieldAccess)) 254if (!IsInside && node.Syntax != null && node.Syntax.Span.Contains(RegionSpan)) 264if (!IsInside && node.Syntax != null && node.Syntax.Span.Contains(RegionSpan))
Symbols\NamespaceOrTypeSymbol.cs (1)
227if (loc.IsInSource && loc.SourceTree == syntax.SyntaxTree && syntax.Span.Contains(loc.SourceSpan))
Symbols\Symbol.cs (1)
454if (loc.IsInSource && loc.SourceTree == tree && declarationSpan.Contains(loc.SourceSpan))
Symbols\Symbol_Attributes.cs (1)
498argumentLocation.SourceSpan.Contains(location.SourceSpan))
Syntax\SyntaxNormalizer.cs (1)
136if (_consideredSpan.Contains(nextToken.FullSpan))
Microsoft.CodeAnalysis.CSharp.CodeStyle (9)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (2)
150if (forStatement.Condition is null || !forStatement.Condition.Span.Contains(_comparison.Span)) 328if (descendentNodeSpanStart >= comparisonSpanStart && scopeSpan.Contains(descendentNode.Span))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
534if (textSpan.Contains(trivia.Span))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (6)
978return (constructor.Body != null && GetBlockBodySpan(constructor.Body).Contains(span)) || 979(constructor.Initializer != null && constructor.Initializer.Span.Contains(span)); 981return method.Body != null && GetBlockBodySpan(method.Body).Contains(span); 983return property.AccessorList != null && property.AccessorList.Span.Contains(span); 985return @enum.EqualsValue != null && @enum.EqualsValue.Span.Contains(span); 987return field.Declaration != null && field.Declaration.Span.Contains(span);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
133if (!localFunction.FullSpan.Contains(referenceSpan))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (3)
Interactive\CSharpSendToInteractiveSubmissionProvider.cs (2)
73if (startNode.Span.Contains(endNode.Span)) 77else if (endNode.Span.Contains(startNode.Span))
StringCopyPaste\StringCopyPasteData.cs (1)
156if (!selectionSpan.Contains(interpolation.Span))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
4132if (!_topmostNode.FullSpan.Contains(context.Node.FullSpan))
Semantics\OutVarTests.cs (5)
1079if (typeofExpression?.Type?.FullSpan.Contains(decl.Span) == true) 1210if (dataFlowParent.Span.Contains(reference.Span) && reference.SpanStart > decl.SpanStart) 1261if (!dataFlowParent.Span.Contains(reference.Span)) 1298if (!dataFlowParent.Span.Contains(reference.Span) && 1319if (!dataFlowParent.Span.Contains(reference.Span))
Microsoft.CodeAnalysis.CSharp.Features (14)
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (1)
359if (!compilationUnit.Span.Contains(span))
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
605if (!fixAllSpans.Any(fixAllSpan => fixAllSpan.Contains(originalNode.Span)))
EditAndContinue\DeclarationBody\InstanceConstructorDeclarationBody.cs (1)
48if (HasExplicitInitializer && InitializerActiveStatementSpan.Contains(span))
ExtractMethod\CSharpSelectionValidator.cs (3)
282if (variable.Initializer != null && variable.Initializer.Span.Contains(span)) 308return blockSpan.Contains(textSpan); 319return expressionBodiedMemberBody.Contains(textSpan);
ExtractMethod\Extensions.cs (2)
92return initializer.ArgumentList.Arguments.Any(a => a.Span.Contains(textSpan)); 174if (!textSpan.Contains(trivia.Span))
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (2)
70if (!currentSpan.Contains(expression.Span)) 89if (!currentSpan.Contains(expression.Span))
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (2)
150if (forStatement.Condition is null || !forStatement.Condition.Span.Contains(_comparison.Span)) 328if (descendentNodeSpanStart >= comparisonSpanStart && scopeSpan.Contains(descendentNode.Span))
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (1)
133if (!localFunction.FullSpan.Contains(referenceSpan))
StringIndentation\CSharpStringIndentationService.cs (1)
129if (content is InterpolationSyntax && content.Span.Contains(sourceSpan))
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\AnonymousTypesSemanticsTests.cs (1)
2059if (span.Contains(node.Span))
Symbols\AnonymousTypesSymbolTests.cs (2)
1702Assert.True(statement1.Span.Contains(typeA3.Locations[0].SourceSpan)); 1703Assert.True(statement2.Span.Contains(typeA4.Locations[0].SourceSpan));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Diagnostics\LocationsTests.cs (2)
570Assert.True(treeSpan.Contains(diagnostics[0].Location.SourceSpan)); 598Assert.True(treeSpan.Contains(diagnostics[0].Location.SourceSpan));
Syntax\LambdaUtilitiesTests.cs (1)
49bool expected = enclosingMethod.MethodKind == MethodKind.LambdaMethod && enclosingSyntax.Span.Contains(span.Value);
Microsoft.CodeAnalysis.CSharp.Workspaces (13)
CodeGeneration\CSharpSyntaxGenerator.cs (4)
2748if (root.Span.Contains(declaration.Span)) 2887if (root.Span.Contains(declaration.Span)) 2926if (root.Span.Contains(declaration.Span)) 2996if (root.Span.Contains(node.Span))
Rename\CSharpRenameRewriterLanguageService.cs (1)
164if (_conflictLocations.Any(cf => cf.Contains(lambda.Span)))
Simplification\Simplifiers\NameSimplifier.cs (1)
455return !name.Span.Contains(argumentDecl.Span);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
534if (textSpan.Contains(trivia.Span))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (6)
978return (constructor.Body != null && GetBlockBodySpan(constructor.Body).Contains(span)) || 979(constructor.Initializer != null && constructor.Initializer.Span.Contains(span)); 981return method.Body != null && GetBlockBodySpan(method.Body).Contains(span); 983return property.AccessorList != null && property.AccessorList.Span.Contains(span); 985return @enum.EqualsValue != null && @enum.EqualsValue.Span.Contains(span); 987return field.Declaration != null && field.Declaration.Span.Contains(span);
Microsoft.CodeAnalysis.Features (11)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
134static bool IsEnclosingSpan(TextSpan span, TextChange textChange) => span.Contains(textChange.Span);
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
239if (!fixAllSpans.Any(fixAllSpan => fixAllSpan.Contains(originalIfStatement.Span)))
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
1325if (!body.Envelope.Contains(trackedSpan))
EditAndContinue\MemberBody.cs (1)
22=> Envelope.Contains(span) && !IsExcludedActiveStatementSpanWithinEnvelope(span);
ExtractMethod\AbstractSyntaxTriviaService.cs (2)
36Contract.ThrowIfFalse(textSpan.Contains(tokens[TriviaLocation.AfterBeginningOfSpan].Span) && textSpan.Contains(tokens[TriviaLocation.BeforeEndOfSpan].Span));
ExtractMethod\MethodExtractor.Analyzer.SymbolMapBuilder.cs (1)
64!_span.Contains(token.Span) ||
ExtractMethod\SelectionResult.cs (1)
104return firstStatement == lastStatement || firstStatement.Span.Contains(lastStatement.Span);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
99if (!spanToSearch.Contains(declarationToken.Span))
SolutionCrawler\AbstractDocumentDifferenceService.cs (1)
169if (!oldMember.Span.Contains(range.Span))
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
541r => r.SyntaxTree == diagnosticLocation.SourceTree && r.Span.Contains(diagnosticLocation.SourceSpan));
Microsoft.CodeAnalysis.UnitTests (17)
Text\TextSpanTest.cs (17)
147Assert.False(span_05_15.Contains(span_00_03)); 148Assert.False(span_00_03.Contains(span_05_15)); 151Assert.True(span_05_15.Contains(span_10_11)); 154Assert.True(span_05_15.Contains(span_05_15)); 157Assert.False(span_05_15.Contains(span_03_10)); 158Assert.False(span_03_10.Contains(span_05_15)); 165Assert.False(new TextSpan(2, 5).Contains(new TextSpan(0, 0))); 166Assert.False(new TextSpan(2, 5).Contains(new TextSpan(10, 0))); 169Assert.True(new TextSpan(2, 5).Contains(new TextSpan(3, 0))); 172Assert.True(new TextSpan(2, 5).Contains(new TextSpan(2, 0))); 175Assert.True(new TextSpan(2, 5).Contains(new TextSpan(7, 0))); 178Assert.True(new TextSpan(2, 0).Contains(new TextSpan(2, 0))); 185Assert.False(new TextSpan(0, 0).Contains(new TextSpan(2, 5))); 186Assert.False(new TextSpan(10, 0).Contains(new TextSpan(2, 5))); 189Assert.False(new TextSpan(3, 0).Contains(new TextSpan(2, 5))); 192Assert.False(new TextSpan(2, 0).Contains(new TextSpan(2, 5))); 195Assert.False(new TextSpan(7, 0).Contains(new TextSpan(2, 5)));
Microsoft.CodeAnalysis.VisualBasic (11)
Analysis\FlowAnalysis\AbstractFlowPass.Regions.vb (1)
58Return Me._region.Contains(span)
Analysis\FlowAnalysis\ReadWriteWalker.vb (6)
110If (Me._regionPlace <> RegionPlace.Inside AndAlso fieldAccess.Syntax.Span.Contains(_region)) Then NoteReceiverRead(fieldAccess) 135If _region.Contains(receiverSyntax.Span) Then readOrWritten.Add(CType(receiver, BoundLocal).LocalSymbol) 137If _region.Contains(receiverSyntax.Span) Then readOrWritten.Add(Me.MeParameter) 139If _region.Contains(receiverSyntax.Span) Then readOrWritten.Add(Me.MeParameter) 141If _region.Contains(receiverSyntax.Span) Then readOrWritten.Add(CType(receiver, BoundParameter).ParameterSymbol) 143If _region.Contains(receiverSyntax.Span) Then readOrWritten.Add(CType(receiver, BoundRangeVariable).RangeVariable)
Binding\Binder_Invocation.vb (1)
1300If node.SyntaxTree Is groupOpt.Syntax.SyntaxTree AndAlso node.Span.Contains(groupOpt.Syntax.Span) Then
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (1)
549(Not Me._filterSpanWithinTree.HasValue OrElse Me._filterSpanWithinTree.Value.Contains(loc.SourceSpan))
Compilation\DocumentationComments\UnprocessedDocumentationCommentFinder.vb (1)
51Return Me._filterSpanWithinTree.HasValue AndAlso Not Me._filterSpanWithinTree.Value.Contains(fullSpan)
Syntax\SyntaxNormalizer.vb (1)
674If _consideredSpan.Contains(nextToken.FullSpan) Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (4)
393If textSpan.Contains(trivia.Span) Then 865If declaration.Initializer IsNot Nothing AndAlso declaration.Initializer.Span.Contains(span) Then 872If [property] IsNot Nothing AndAlso [property].Initializer IsNot Nothing AndAlso [property].Initializer.Span.Contains(span) Then 886Return blockSpan.Contains(textSpan)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
888Return outerSpan.Contains(innerSpan)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTokenExtensions.vb (1)
88If Not token.LeadingTrivia.Span.Contains(originalToken.Span) Then
Microsoft.CodeAnalysis.VisualBasic.Features (9)
CodeFixes\CorrectNextControlVariable\CorrectNextControlVariableCodeFixProvider.vb (1)
51Dim indexOfControlVariable = nextStatement.ControlVariables.IndexOf(Function(n) n.Span.Contains(context.Span))
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (1)
124Return begin.Span.Contains(node.Span)
EditAndContinue\DeclarationBody\FieldWithMultipleAsNewClauseDeclarationBody.vb (1)
43Return TextSpan.FromBounds(_modifedIdentifier.Span.End, OtherActiveStatementContainer.Span.Start).Contains(span)
ExtractMethod\Extensions.vb (6)
189If Not textSpan.Contains(directive.Span) Then 253Return withBlockSpan.Contains(token.Span) 264Return initializerSpan.Contains(token.Span) 273If range.UpperBound.Span.Contains(token.Span) AndAlso 284Return span.Contains(token.Span) 321Return blockSpan.Contains(textSpan)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
TestSyntaxNodes.vb (2)
324Assert.True(tree.FullSpan.Contains(tree.Span)) 353Assert.True(tree.FullSpan.Contains(tree.Span))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (10)
CodeGeneration\VisualBasicSyntaxGenerator.vb (4)
3382If root.Span.Contains(declaration.Span) Then 3462If root.Span.Contains(declaration.Span) Then 3488If root.Span.Contains(declaration.Span) Then 3602If root.Span.Contains(declaration.Span) Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (4)
393If textSpan.Contains(trivia.Span) Then 865If declaration.Initializer IsNot Nothing AndAlso declaration.Initializer.Span.Contains(span) Then 872If [property] IsNot Nothing AndAlso [property].Initializer IsNot Nothing AndAlso [property].Initializer.Span.Contains(span) Then 886Return blockSpan.Contains(textSpan)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
888Return outerSpan.Contains(innerSpan)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTokenExtensions.vb (1)
88If Not token.LeadingTrivia.Span.Contains(originalToken.Span) Then
Microsoft.CodeAnalysis.Workspaces (19)
CodeCleanup\AbstractCodeCleanerService.cs (1)
451return spans[0].Contains(nodeSpan);
CodeFixes\FixAllOccurrences\FixAllContext.cs (1)
252&& (filterSpan == null || filterSpan.Value.Contains(d.Location.SourceSpan))).ToImmutableArray();
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (1)
224if (root.FullSpan.Contains(this.Span))
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
85Debug.Assert(location.ComplexifiedTargetSpan.Contains(location.ConflictCheckSpan) || location.Type == RelatedLocationType.UnresolvableConflict);
src\Compilers\Core\Portable\Syntax\SyntaxTreeExtensions.cs (1)
35node = root.DescendantNodes(n => n.FullSpan.Contains(change)).LastOrDefault();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
117if (currentNode != null && searchSpan.Contains(currentNode.FullSpan) && predicate(currentNode))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextSpanExtensions.cs (2)
64return span.Contains(innerSpan) && outerSpan.Contains(span);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
163operationSpan.Contains(baseSpan))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (2)
392Debug.Assert((token1.IndexInStream >= 0 && token2.IndexInStream >= 0) || token1.Token.Equals(token2.Token.GetPreviousToken(includeZeroWidth: true)) || token2.Token.LeadingTrivia.Span.Contains(token1.Token.Span)); 417Debug.Assert((token1.IndexInStream >= 0 && token2.IndexInStream >= 0) || token1.Token.Equals(token2.Token.GetPreviousToken(includeZeroWidth: true)) || token2.Token.LeadingTrivia.Span.Contains(token1.Token.Span));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (3)
41else if (node.Span.Contains(_span)) 83if (self._span.Contains(operation.TextSpan)) 89if (operation.TextSpan.Contains(self._span))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
721if (change.Span.Contains(insertionPoint) && IsNullOrWhitespace(change.NewText))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (1)
44Debug.Assert(ownerOfHeader.FullSpan.Contains(lastTokenOrNodeOfHeader.Span));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (1)
111if (textSpan.Contains(member.Span))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringHelpers.cs (1)
57if (selection.Contains(node.Span))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
139var node = token.Parent!.AncestorsAndSelf().First(a => a.FullSpan.Contains(span));
Microsoft.Interop.ComInterfaceGenerator (2)
ComMethodInfo.cs (2)
110&& interfaceLocation.SourceSpan.Contains(methodLocation.SourceSpan)) 127if (declaringSyntax.GetLocation().SourceSpan.Contains(methodLocationInAttributedInterfaceDeclaration.SourceSpan))
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\CustomMarshallerAttributeFixer.cs (1)
184&& attr.ApplicationSyntaxReference.Span.Contains(locationInAttribute.SourceSpan)).ConstructorArguments[0].Value!;
Microsoft.VisualStudio.LanguageServices (4)
Venus\ContainedDocument.cs (4)
520if (visibleSpanInOriginalText.Contains(spanInOriginalText) && visibleSpanInOriginalText.End != spanInOriginalText.End) 541if (spanInOriginalText.Contains(visibleSpanInOriginalText)) 816var newChanges = FilterTextChanges(document.GetTextSynchronously(CancellationToken.None), visibleSpans, changes.ToReadOnlyCollection()).Where(t => visibleSpan.Contains(t.Span)); 977if (service.TryGetCorrespondingOpenBrace(token, out var openBrace) && !textSpan.Contains(openBrace.Span))