12 references to Overlap
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
166spans.Add(span1.Overlap(span2)!.Value);
Microsoft.CodeAnalysis.UnitTests (10)
Text\TextSpanTest.cs (10)
241Assert.Null(span1.Overlap(span2)); 242Assert.Null(span2.Overlap(span1)); 253Assert.Null(span1.Overlap(span2)); 254Assert.Null(span2.Overlap(span1)); 265Assert.Equal(span1.Overlap(span2), new TextSpan(10, 5)); 266Assert.Equal(span2.Overlap(span1), new TextSpan(10, 5)); 277Assert.Null(span1.Overlap(span2)); 278Assert.Null(span2.Overlap(span1)); 289Assert.Null(span1.Overlap(span2)); 290Assert.Null(span2.Overlap(span1));
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
166spans.Add(span1.Overlap(span2)!.Value);