63 references to OverlapsWith
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNode.Iterators.cs (1)
40return span.OverlapsWith(childSpan)
Microsoft.CodeAnalysis.CodeStyle (5)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
281hasPragmaInAnalysisSpan = hasPragmaInAnalysisSpan || !span.HasValue || span.Value.OverlapsWith(trivia.Span);
AbstractSelectedMembers.cs (1)
155if (textSpan.OverlapsWith(id.Span))
NormalizedTextSpanCollection.cs (3)
164if (span1.OverlapsWith(span2)) 401if (span1.OverlapsWith(span2)) 434if (this[index].OverlapsWith(span))
Microsoft.CodeAnalysis.CSharp (4)
CSharpDeclarationComputer.cs (1)
30(node, level) => !node.Span.OverlapsWith(span) || InvalidLevel(level),
FlowAnalysis\ReadWriteWalker.cs (1)
206if (receiver.Type.IsStructType() && receiverSyntax.Span.OverlapsWith(RegionSpan))
Syntax\SyntaxNodeRemover.cs (2)
454var balanced = relatedDirectives.All(rd => rd.FullSpan.OverlapsWith(span)); 459foreach (var unbalancedDirective in relatedDirectives.Where(rd => rd.FullSpan.OverlapsWith(span)))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (3)
StringCopyPaste\StringCopyPasteData.cs (3)
109var firstOverlappingChar = virtualChars.FirstOrNull(vc => vc.Span.OverlapsWith(selectionSpan)); 110var lastOverlappingChar = virtualChars.LastOrNull(vc => vc.Span.OverlapsWith(selectionSpan)); 159if (interpolatedContent.Span.OverlapsWith(selectionSpan))
Microsoft.CodeAnalysis.CSharp.Features (2)
CSharpDeclarationComputer.cs (1)
30(node, level) => !node.Span.OverlapsWith(span) || InvalidLevel(level),
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
383var localFunctions = innermostCommonBlock.DescendantNodes().Where(node => node.IsKind(SyntaxKind.LocalFunctionStatement) && matches.Any(match => match.Span.OverlapsWith(node.Span)));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\StructuredTriviaTests.cs (1)
93var resultList = identExpr.DescendantTokens(t => t.FullSpan.OverlapsWith(new TextSpan(3, 18)));
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Classification\Worker.cs (2)
62=> span.Length > 0 && _textSpan.OverlapsWith(span); 233if (!_textSpan.OverlapsWith(skippedTokens.Span))
Classification\Worker_DocumentationComments.cs (1)
16if (!_textSpan.OverlapsWith(documentationComment.Span))
Classification\Worker_Preprocesser.cs (1)
14if (!_textSpan.OverlapsWith(node.Span))
Microsoft.CodeAnalysis.EditorFeatures (4)
CommentSelection\AbstractToggleBlockCommentBase.cs (1)
402=> allBlockComments.WhereAsArray(blockCommentSpan => span.OverlapsWith(blockCommentSpan) || blockCommentSpan.Contains(span));
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (3)
723_anchor.HasValue && _openTextBufferManager._referenceSpanToLinkedRenameSpanMap.Keys.Any(s => s.OverlapsWith(anchorSpan)) 729_active.HasValue && _openTextBufferManager._referenceSpanToLinkedRenameSpanMap.Keys.Any(s => s.OverlapsWith(activeSpan)) 742: _openTextBufferManager._referenceSpanToLinkedRenameSpanMap.First(kvp => kvp.Key.OverlapsWith(span)).Value.TrackingSpan.GetEndPoint(snapshot);
Microsoft.CodeAnalysis.Features (4)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
281hasPragmaInAnalysisSpan = hasPragmaInAnalysisSpan || !span.HasValue || span.Value.OverlapsWith(trivia.Span);
CodeRefactoringHelpers.cs (1)
68if (!node.FullSpan.OverlapsWith(selection))
ExtractMethod\SelectionResult.cs (1)
151if (!node.Span.OverlapsWith(span))
Wrapping\AbstractWrapper.cs (1)
67=> declaration.GetDiagnostics().Any(d => d.Severity == DiagnosticSeverity.Error && d.Location.SourceSpan.OverlapsWith(headerSpan));
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (1)
246if (nodeOrToken.IsToken && _spans.Any(s => s.OverlapsWith(nodeOrToken.FullSpan)))
Microsoft.CodeAnalysis.UnitTests (10)
Text\TextSpanTest.cs (10)
239Assert.False(span1.OverlapsWith(span2)); 240Assert.False(span2.OverlapsWith(span1)); 251Assert.False(span1.OverlapsWith(span2)); 252Assert.False(span2.OverlapsWith(span1)); 263Assert.True(span1.OverlapsWith(span2)); 264Assert.True(span2.OverlapsWith(span1)); 275Assert.False(span1.OverlapsWith(span2)); 276Assert.False(span2.OverlapsWith(span1)); 287Assert.False(span1.OverlapsWith(span2)); 288Assert.False(span2.OverlapsWith(span1));
Microsoft.CodeAnalysis.VisualBasic (5)
Analysis\FlowAnalysis\ReadWriteWalker.vb (1)
145If receiver.Type.IsStructureType AndAlso receiverSyntax.Span.OverlapsWith(_region) Then NoteReceiverReadOrWritten(CType(receiver, BoundFieldAccess), readOrWritten)
Scanner\Blender.vb (1)
444If _curNodeSpan.OverlapsWith(_affectedRange.Span) Then
Syntax\SyntaxNodeRemover.vb (2)
316Dim balanced = relatedDirectives.All(Function(rd) rd.FullSpan.OverlapsWith(span)) 320For Each unbalancedDirective In relatedDirectives.Where(Function(rd) rd.FullSpan.OverlapsWith(span))
VisualBasicDeclarationComputer.vb (1)
21Function(node, level) Not node.Span.OverlapsWith(span) OrElse InvalidLevel(level),
Microsoft.CodeAnalysis.VisualBasic.Features (1)
VisualBasicDeclarationComputer.vb (1)
21Function(node, level) Not node.Span.OverlapsWith(span) OrElse InvalidLevel(level),
Microsoft.CodeAnalysis.VisualBasic.Workspaces (7)
Classification\Worker.DocumentationCommentClassifier.vb (1)
19If Not _worker._textSpan.OverlapsWith(documentationComment.Span) Then
Classification\Worker.vb (5)
47If token.Width() > 0 AndAlso _textSpan.OverlapsWith(token.Span) Then 53If trivia.Width() > 0 AndAlso _textSpan.OverlapsWith(trivia.Span) Then 85If span.Length <> 0 AndAlso _textSpan.OverlapsWith(span) Then 171If Not _textSpan.OverlapsWith(skippedTokens.Span) Then 182If Not _textSpan.OverlapsWith(directiveSyntax.FullSpan) Then
Classification\Worker.XmlClassifier.vb (1)
28If Not _worker._textSpan.OverlapsWith(node.FullSpan) Then
Microsoft.CodeAnalysis.Workspaces (11)
AbstractSelectedMembers.cs (1)
155if (textSpan.OverlapsWith(id.Span))
Classification\Classifier.cs (2)
82var allClassifications = new List<ClassifiedSpan>(semanticClassifications.Where(s => s.TextSpan.OverlapsWith(textSpan))); 86s => s.TextSpan.OverlapsWith(textSpan) && !semanticSet.Contains(s.TextSpan)));
Classification\ClassifierHelper.cs (4)
237Debug.Assert(firstSemanticPart.TextSpan.OverlapsWith(syntacticPart.TextSpan)); 238Debug.Assert(lastSemanticPart.TextSpan.OverlapsWith(syntacticPart.TextSpan)); 252Debug.Assert(semanticPart1.TextSpan.OverlapsWith(syntacticPart.TextSpan)); 253Debug.Assert(semanticPart1.TextSpan.OverlapsWith(syntacticPart.TextSpan));
Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs (1)
79if (textSpan.Length > 0 && textSpan.OverlapsWith(_textSpan))
NormalizedTextSpanCollection.cs (3)
164if (span1.OverlapsWith(span2)) 401if (span1.OverlapsWith(span2)) 434if (this[index].OverlapsWith(span))