12 instantiations of NormalizedTextSpanCollection
Microsoft.CodeAnalysis.Workspaces (12)
CaseCorrection\AbstractCaseCorrectionService.cs (1)
48
var normalizedSpanCollection = new
NormalizedTextSpanCollection
(spans);
CodeCleanup\AbstractCodeCleanerService.cs (2)
524
var requestedSpans = new
NormalizedTextSpanCollection
(spanGetter(root));
527
var spansToAvoid = new
NormalizedTextSpanCollection
(GetSpansToAvoid(root));
PatternMatching\AllLowerCamelCaseMatcher.cs (1)
58
? new
NormalizedTextSpanCollection
(result.Value.MatchedSpansInReverse).ToImmutableArray()
PatternMatching\PatternMatcher.cs (1)
546
? new
NormalizedTextSpanCollection
(matchSpans.ToImmutableAndClear()).ToImmutableArray()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (4)
125
return new
NormalizedTextSpanCollection
(spans);
184
return new
NormalizedTextSpanCollection
(spans);
239
return new
NormalizedTextSpanCollection
(spans);
337
return new
NormalizedTextSpanCollection
(spans);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextSpanExtensions.cs (2)
19
=> new
NormalizedTextSpanCollection
(spans);
22
=> new
NormalizedTextSpanCollection
(spans).ToImmutableArray();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
42
spansToFormat = new
NormalizedTextSpanCollection
(spans.Where(s_notEmpty));
34 references to NormalizedTextSpanCollection
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Classification\SemanticClassifierTests_TestMarkup.cs (1)
75
var
remainder = NormalizedTextSpanCollection.Difference(new NormalizedTextSpanCollection(testCodeSpan.TextSpan), normalizedNonTestCodeSpans);
Microsoft.CodeAnalysis.Workspaces (33)
CaseCorrection\AbstractCaseCorrectionService.cs (1)
48
var
normalizedSpanCollection = new NormalizedTextSpanCollection(spans);
CodeCleanup\AbstractCodeCleanerService.cs (4)
524
var
requestedSpans = new NormalizedTextSpanCollection(spanGetter(root));
527
var
spansToAvoid = new NormalizedTextSpanCollection(GetSpansToAvoid(root));
530
var
result =
NormalizedTextSpanCollection
.Difference(requestedSpans, spansToAvoid);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (28)
17
/// Initializes a new instance of <see cref="
NormalizedTextSpanCollection
"/> that is
26
/// Initializes a new instance of <see cref="
NormalizedTextSpanCollection
"/> that contains the specified span.
35
/// Initializes a new instance of <see cref="
NormalizedTextSpanCollection
"/> that contains the specified list of spans.
43
: base(
NormalizedTextSpanCollection
.NormalizeSpans(spans))
62
public static
NormalizedTextSpanCollection
Union(
NormalizedTextSpanCollection
left,
NormalizedTextSpanCollection
right)
98
NormalizedTextSpanCollection
.UpdateSpanUnion(span1, spans, ref start, ref end);
103
NormalizedTextSpanCollection
.UpdateSpanUnion(span2, spans, ref start, ref end);
110
NormalizedTextSpanCollection
.UpdateSpanUnion(left[index1], spans, ref start, ref end);
116
NormalizedTextSpanCollection
.UpdateSpanUnion(right[index2], spans, ref start, ref end);
136
public static
NormalizedTextSpanCollection
Overlap(
NormalizedTextSpanCollection
left,
NormalizedTextSpanCollection
right)
196
public static
NormalizedTextSpanCollection
Intersection(
NormalizedTextSpanCollection
left,
NormalizedTextSpanCollection
right)
254
public static
NormalizedTextSpanCollection
Difference(
NormalizedTextSpanCollection
left,
NormalizedTextSpanCollection
right)
346
public static bool operator ==(
NormalizedTextSpanCollection
? left,
NormalizedTextSpanCollection
? right)
380
public static bool operator !=(
NormalizedTextSpanCollection
? left,
NormalizedTextSpanCollection
? right)
389
public bool OverlapsWith(
NormalizedTextSpanCollection
set)
449
public bool IntersectsWith(
NormalizedTextSpanCollection
set)
521
var
set = obj as
NormalizedTextSpanCollection
;