55 references to OverlapsWith
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNode.Iterators.cs (1)
40return span.OverlapsWith(childSpan)
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
283hasPragmaInAnalysisSpan = hasPragmaInAnalysisSpan || !span.HasValue || span.Value.OverlapsWith(trivia.Span);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (3)
164if (span1.OverlapsWith(span2)) 401if (span1.OverlapsWith(span2)) 434if (this[index].OverlapsWith(span))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (1)
155if (textSpan.OverlapsWith(id.Span))
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringHelpers.cs (1)
66if (!node.FullSpan.OverlapsWith(selection))
Microsoft.CodeAnalysis.CSharp (3)
FlowAnalysis\ReadWriteWalker.cs (2)
216if (receiver.Type.IsStructType() && receiverSyntax.Span.OverlapsWith(RegionSpan)) 222if (receiverSyntax.Span.OverlapsWith(RegionSpan))
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
30(node, level) => !node.Span.OverlapsWith(span) || InvalidLevel(level),
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
StringCopyPaste\StringCopyPasteData.cs (1)
150if (interpolatedContent.Span.OverlapsWith(selectionSpan))
Microsoft.CodeAnalysis.CSharp.Features (3)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
101declarations = (recordDeclaration.ParameterList != null && activeSpan.OverlapsWith(recordDeclaration.ParameterList.Span))
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
433var localFunctions = innermostCommonBlock.DescendantNodes().Where(node => node.IsKind(SyntaxKind.LocalFunctionStatement) && matches.Any(match => match.Span.OverlapsWith(node.Span)));
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
30(node, level) => !node.Span.OverlapsWith(span) || InvalidLevel(level),
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)
61=> span.Length > 0 && _textSpan.OverlapsWith(span); 261if (!_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 (3)
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (3)
727_anchor.HasValue && _openTextBufferManager._referenceSpanToLinkedRenameSpanMap.Keys.Any(s => s.OverlapsWith(anchorSpan)) 733_active.HasValue && _openTextBufferManager._referenceSpanToLinkedRenameSpanMap.Keys.Any(s => s.OverlapsWith(activeSpan)) 746: _openTextBufferManager._referenceSpanToLinkedRenameSpanMap.First(kvp => kvp.Key.OverlapsWith(span)).Value.TrackingSpan.GetEndPoint(snapshot);
Microsoft.CodeAnalysis.Features (3)
ExtractMethod\SelectionResult.cs (1)
170if (!node.Span.OverlapsWith(span))
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
283hasPragmaInAnalysisSpan = hasPragmaInAnalysisSpan || !span.HasValue || span.Value.OverlapsWith(trivia.Span);
Wrapping\AbstractWrapper.cs (1)
66=> 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 (2)
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
Microsoft.CodeAnalysis.VisualBasic.Workspaces (7)
Classification\Worker.DocumentationCommentClassifier.vb (1)
19If Not _worker._textSpan.OverlapsWith(documentationComment.Span) Then
Classification\Worker.vb (5)
48If token.Width() > 0 AndAlso _textSpan.OverlapsWith(token.Span) Then 54If trivia.Width() > 0 AndAlso _textSpan.OverlapsWith(trivia.Span) Then 86If span.Length <> 0 AndAlso _textSpan.OverlapsWith(span) Then 172If Not _textSpan.OverlapsWith(skippedTokens.Span) Then 183If Not _textSpan.OverlapsWith(directiveSyntax.FullSpan) Then
Classification\Worker.XmlClassifier.vb (1)
28If Not _worker._textSpan.OverlapsWith(node.FullSpan) Then
Microsoft.CodeAnalysis.Workspaces (10)
Classification\ClassifierHelper.cs (4)
289Debug.Assert(firstSemanticPartSpan.OverlapsWith(syntacticPartSpan)); 290Debug.Assert(lastSemanticPartSpan.OverlapsWith(syntacticPartSpan)); 307Debug.Assert(semanticPart1Span.OverlapsWith(syntacticPartSpan)); 308Debug.Assert(semanticPart1Span.OverlapsWith(syntacticPartSpan));
Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs (1)
87if (textSpan.Length > 0 && textSpan.OverlapsWith(_textSpan))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (3)
164if (span1.OverlapsWith(span2)) 401if (span1.OverlapsWith(span2)) 434if (this[index].OverlapsWith(span))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (1)
155if (textSpan.OverlapsWith(id.Span))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringHelpers.cs (1)
66if (!node.FullSpan.OverlapsWith(selection))