public override void AddLexicalClassifications(SourceText text, TextSpan textSpan, List <ClassifiedSpan> result, CancellationToken cancellationToken) { using var _ = ArrayBuilder <ClassifiedSpan> .GetInstance(out var temp); ClassificationHelpers.AddLexicalClassifications(text, textSpan, temp, cancellationToken); AddRange(temp, result); }
public override void AddLexicalClassifications( SourceText text, TextSpan textSpan, ArrayBuilder <ClassifiedSpan> result, CancellationToken cancellationToken ) => ClassificationHelpers.AddLexicalClassifications( text, textSpan, result, cancellationToken );