15 references to AddClassification
Microsoft.CodeAnalysis.CSharp.Workspaces (15)
Classification\Worker.cs (6)
62=> AddClassification(trivia.Span, type); 65=> AddClassification(token.Span, type); 133AddClassification(TextSpan.FromBounds(token.Span.Start, token.Span.End - "u8".Length), type); 134AddClassification(TextSpan.FromBounds(token.Span.End - "u8".Length, token.Span.End), ClassificationTypeNames.Keyword); 138AddClassification(span, type); 145AddClassification(span, ClassificationTypeNames.StaticSymbol);
Classification\Worker_DocumentationComments.cs (2)
110AddClassification(span, ClassificationTypeNames.XmlDocCommentDelimiter); 124AddClassification(span, ClassificationTypeNames.XmlDocCommentDelimiter);
Classification\Worker_Preprocesser.cs (7)
356AddClassification(new TextSpan(node.Content.SpanStart, firstWhitespaceIndex), ClassificationTypeNames.PreprocessorKeyword); 385AddClassification(new TextSpan(node.Content.SpanStart + nameStart, contentText.Length - nameStart), ClassificationTypeNames.StringLiteral); 411AddClassification(new TextSpan(contentStart + separatorIndex, 1), ClassificationTypeNames.Punctuation); 418AddClassification(new TextSpan(contentStart + valueIndex, contentText.Length - valueIndex), ClassificationTypeNames.StringLiteral); 436AddClassification(new TextSpan(contentStart + segmentStart, index - segmentStart), ClassificationTypeNames.Identifier); 441AddClassification(new TextSpan(contentStart + index, 1), ClassificationTypeNames.Punctuation); 449AddClassification(new TextSpan(contentStart + segmentStart, end - segmentStart), ClassificationTypeNames.Identifier);