Classification\AbstractClassificationService.cs (8)
31public abstract void AddLexicalClassifications(SourceText text, TextSpan textSpan, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken);
35Document document, ImmutableArray<TextSpan> textSpans, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken)
41Document document, ImmutableArray<TextSpan> textSpans, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken)
51SegmentedList<ClassifiedSpan> result,
113SegmentedList<ClassifiedSpan> result,
142SegmentedList<ClassifiedSpan> result,
202public async Task AddSyntacticClassificationsAsync(Document document, ImmutableArray<TextSpan> textSpans, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken)
209SolutionServices services, SyntaxNode? root, ImmutableArray<TextSpan> textSpans, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken)
Classification\ClassifierHelper.cs (21)
70using var _1 = Classifier.GetPooledList(out var syntaxSpans);
71using var _2 = Classifier.GetPooledList(out var semanticSpans);
97private static void RemoveAdditiveSpans(SegmentedList<ClassifiedSpan> spans)
108SegmentedList<ClassifiedSpan> syntaxSpans,
109SegmentedList<ClassifiedSpan> semanticSpans,
133using var _1 = Classifier.GetPooledList(out var mergedSpans);
140using var _2 = Classifier.GetPooledList(out var filledInSpans);
147private static void Order(SegmentedList<ClassifiedSpan> syntaxSpans)
155private static void AdjustSpans(SegmentedList<ClassifiedSpan> spans, TextSpan widenedSpan)
187int startPosition, SegmentedList<ClassifiedSpan> classifiedSpans, SegmentedList<ClassifiedSpan> result)
218SegmentedList<ClassifiedSpan> syntaxParts,
219SegmentedList<ClassifiedSpan> semanticParts,
220SegmentedList<ClassifiedSpan> finalParts)
231/// <inheritdoc cref="MergeParts(SegmentedList{ClassifiedSpan}, SegmentedList{ClassifiedSpan}, SegmentedList{ClassifiedSpan})"/>
233SegmentedList<TClassifiedSpan> syntaxParts,
234SegmentedList<TClassifiedSpan> semanticParts,
235SegmentedList<TClassifiedSpan> finalParts,
242using var _1 = SegmentedListPool.GetPooledList<TClassifiedSpan>(out var semanticSpans);
Classification\IClassificationService.cs (5)
28void AddLexicalClassifications(SourceText text, TextSpan textSpan, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken);
34void AddSyntacticClassifications(SolutionServices services, SyntaxNode? root, ImmutableArray<TextSpan> textSpans, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken);
46Task AddSyntacticClassificationsAsync(Document document, ImmutableArray<TextSpan> textSpans, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken);
63Task AddSemanticClassificationsAsync(Document document, ImmutableArray<TextSpan> textSpans, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken);
74Task AddEmbeddedLanguageClassificationsAsync(Document document, ImmutableArray<TextSpan> textSpans, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken);
Classification\SyntaxClassification\AbstractSyntaxClassifier.cs (2)
22public virtual void AddClassifications(SyntaxNode syntax, TextSpan textSpan, SemanticModel semanticModel, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken)
26public virtual void AddClassifications(SyntaxToken syntax, TextSpan textSpan, SemanticModel semanticModel, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken)
Classification\SyntaxClassification\ISyntaxClassifier.cs (2)
29void AddClassifications(SyntaxNode node, TextSpan textSpan, SemanticModel semanticModel, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken);
34void AddClassifications(SyntaxToken token, TextSpan textSpan, SemanticModel semanticModel, ClassificationOptions options, SegmentedList<ClassifiedSpan> result, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (8)
36private static readonly ObjectPool<SegmentedList<TokenPairWithOperations>> s_tokenPairListPool = new(() => [], trimOnFree: false);
189private static void AddOperations<T>(SegmentedList<T> operations, List<T> scratch, SyntaxNode node, Action<List<T>, SyntaxNode> addOperations)
203private static void AddOperations<T>(SegmentedList<T> operations, ArrayBuilder<T> scratch, SyntaxNode node, Action<ArrayBuilder<T>, SyntaxNode> addOperations)
219SegmentedList<TokenPairWithOperations> list,
246SegmentedList<TokenPairWithOperations> tokenOperations,
355var alignmentOperations = nodeOperationsCollector.AlignmentOperation;
374SegmentedList<TokenPairWithOperations> tokenOperations,
429SegmentedList<TokenPairWithOperations> tokenOperations,