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