21 references to Intersection
Microsoft.CodeAnalysis (1)
Syntax\SyntaxTreeExtensions.cs (1)
45
var textSpanOpt = span.
Intersection
(fullSpan);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\Syntax\SyntaxTreeExtensions.cs (1)
45
var textSpanOpt = span.
Intersection
(fullSpan);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
226
spans.Add(span1.
Intersection
(span2)!.Value);
Microsoft.CodeAnalysis.UnitTests (16)
Text\TextSpanTest.cs (16)
301
Assert.Equal(span1.
Intersection
(span2), new TextSpan(10, 0));
302
Assert.Equal(span2.
Intersection
(span1), new TextSpan(10, 0));
313
Assert.Null(span1.
Intersection
(span2));
314
Assert.Null(span2.
Intersection
(span1));
325
Assert.Equal(span1.
Intersection
(span2), new TextSpan(10, 5));
326
Assert.Equal(span2.
Intersection
(span1), new TextSpan(10, 5));
337
Assert.Equal(span1.
Intersection
(span2), new TextSpan(10, 0));
338
Assert.Equal(span2.
Intersection
(span1), new TextSpan(10, 0));
349
Assert.Equal(span1.
Intersection
(span2), new TextSpan(7, 0));
350
Assert.Equal(span2.
Intersection
(span1), new TextSpan(7, 0));
361
Assert.Equal(span1.
Intersection
(span2), new TextSpan(3, 0));
362
Assert.Equal(span2.
Intersection
(span1), new TextSpan(3, 0));
373
Assert.Equal(span1.
Intersection
(span2), new TextSpan(2, 0));
374
Assert.Equal(span2.
Intersection
(span1), new TextSpan(2, 0));
385
Assert.Equal(span1.
Intersection
(span2), new TextSpan(7, 0));
386
Assert.Equal(span2.
Intersection
(span1), new TextSpan(7, 0));
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\Syntax\SyntaxTreeExtensions.cs (1)
45
var textSpanOpt = span.
Intersection
(fullSpan);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
226
spans.Add(span1.
Intersection
(span2)!.Value);