12 instantiations of NormalizedTextSpanCollection
Microsoft.CodeAnalysis.Workspaces (12)
CaseCorrection\AbstractCaseCorrectionService.cs (1)
48var normalizedSpanCollection = new NormalizedTextSpanCollection(spans);
CodeCleanup\AbstractCodeCleanerService.cs (2)
524var requestedSpans = new NormalizedTextSpanCollection(spanGetter(root)); 527var 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)
125return new NormalizedTextSpanCollection(spans); 184return new NormalizedTextSpanCollection(spans); 239return new NormalizedTextSpanCollection(spans); 337return 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)
42spansToFormat = new NormalizedTextSpanCollection(spans.Where(s_notEmpty));
34 references to NormalizedTextSpanCollection
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Classification\SemanticClassifierTests_TestMarkup.cs (1)
75var remainder = NormalizedTextSpanCollection.Difference(new NormalizedTextSpanCollection(testCodeSpan.TextSpan), normalizedNonTestCodeSpans);
Microsoft.CodeAnalysis.Workspaces (33)
CaseCorrection\AbstractCaseCorrectionService.cs (1)
48var normalizedSpanCollection = new NormalizedTextSpanCollection(spans);
CodeCleanup\AbstractCodeCleanerService.cs (4)
524var requestedSpans = new NormalizedTextSpanCollection(spanGetter(root)); 527var spansToAvoid = new NormalizedTextSpanCollection(GetSpansToAvoid(root)); 530var 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)) 62public static NormalizedTextSpanCollection Union(NormalizedTextSpanCollection left, NormalizedTextSpanCollection right) 98NormalizedTextSpanCollection.UpdateSpanUnion(span1, spans, ref start, ref end); 103NormalizedTextSpanCollection.UpdateSpanUnion(span2, spans, ref start, ref end); 110NormalizedTextSpanCollection.UpdateSpanUnion(left[index1], spans, ref start, ref end); 116NormalizedTextSpanCollection.UpdateSpanUnion(right[index2], spans, ref start, ref end); 136public static NormalizedTextSpanCollection Overlap(NormalizedTextSpanCollection left, NormalizedTextSpanCollection right) 196public static NormalizedTextSpanCollection Intersection(NormalizedTextSpanCollection left, NormalizedTextSpanCollection right) 254public static NormalizedTextSpanCollection Difference(NormalizedTextSpanCollection left, NormalizedTextSpanCollection right) 346public static bool operator ==(NormalizedTextSpanCollection? left, NormalizedTextSpanCollection? right) 380public static bool operator !=(NormalizedTextSpanCollection? left, NormalizedTextSpanCollection? right) 389public bool OverlapsWith(NormalizedTextSpanCollection set) 449public bool IntersectsWith(NormalizedTextSpanCollection set) 521var set = obj as NormalizedTextSpanCollection;