41 references to TextSpan
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Classification\ClassificationHelpers.cs (1)
533var span = classifiedSpan.TextSpan;
Classification\SyntaxClassification\NameSyntaxClassifier.cs (2)
81TryClassifyStaticSymbol(symbol, classifiedSpan.TextSpan, result); 114result.Add(new ClassifiedSpan(set.First().TextSpan, ClassificationTypeNames.StaticSymbol));
EmbeddedLanguages\CSharpTestEmbeddedLanguageUtilities.cs (3)
55if (classifiedSpan.TextSpan.IsEmpty) 64var startIndexInclusive = classifiedSpan.TextSpan.Start; 65var endIndexExclusive = classifiedSpan.TextSpan.End;
Microsoft.CodeAnalysis.Features (5)
QuickInfo\IndentationHelper.cs (4)
47var span = classifiedSpan.TextSpan; 93var startLineNumber = lines.GetLineFromPosition(span.TextSpan.Start).LineNumber; 94var endLineNumber = lines.GetLineFromPosition(span.TextSpan.End).LineNumber; 111if (startLineFirstNonWhitespace is int value && value < span.TextSpan.Start)
QuickInfo\Presentation\QuickInfoContentBuilder.cs (1)
159text.ToString(span.TextSpan),
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Classification\SyntaxClassification\NameSyntaxClassifier.vb (1)
92TryClassifyStaticSymbol(symbol, classifiedSpan.TextSpan, result)
Microsoft.CodeAnalysis.Workspaces (29)
Classification\ClassifiedSpan.cs (3)
26=> Hash.Combine(this.ClassificationType, this.TextSpan.GetHashCode()); 32=> this.ClassificationType == other.ClassificationType && this.TextSpan == other.TextSpan;
Classification\ClassifiedSpanIntervalIntrospector.cs (1)
17=> value.TextSpan;
Classification\Classifier.cs (11)
40/// <see cref="ClassifiedSpan"/>s may have the same <see cref="ClassifiedSpan.TextSpan"/>. This occurs when there are multiple 43/// <see cref="ClassifiedSpan"/>s may also have overlapping <see cref="ClassifiedSpan.TextSpan"/>s. This occurs when there are 103var allClassifications = new List<ClassifiedSpan>(semanticClassifications.Where(s => s.TextSpan.OverlapsWith(textSpan))); 104var semanticSet = semanticClassifications.Select(s => s.TextSpan).ToSet(); 107s => s.TextSpan.OverlapsWith(textSpan) && !semanticSet.Contains(s.TextSpan))); 108allClassifications.Sort((s1, s2) => s1.TextSpan.Start - s2.TextSpan.Start); 131if (startPosition < span.TextSpan.Start) 139parts.Add(new SymbolDisplayPart(kind.Value, null, sourceText.ToString(span.TextSpan))); 141startPosition = span.TextSpan.End;
Classification\ClassifierHelper.cs (12)
148private static readonly Comparison<ClassifiedSpan> s_spanComparison = static (s1, s2) => s1.TextSpan.Start - s2.TextSpan.Start; 167var intersection = span.TextSpan.Intersection(widenedSpan); 173var isAdditiveClassification = previousSpan.TextSpan == span.TextSpan && 177if (!isAdditiveClassification && previousSpan.TextSpan.End > intersection.Value.Start) 195Debug.Assert(!span.TextSpan.IsEmpty); 199if (span.TextSpan.Length == 0) 203if (startPosition < span.TextSpan.Start) 207startPosition, span.TextSpan.Start))); 211startPosition = span.TextSpan.End; 227static span => span.TextSpan,
Classification\IRemoteSemanticClassificationService.cs (1)
88var textSpan = classifiedSpan.TextSpan;
Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs (1)
147AddClassification(classification.TextSpan, classification.ClassificationType);