1151 references to ClassificationTypeNames
Microsoft.AspNetCore.App.Analyzers (12)
RouteEmbeddedLanguage\RoutePatternClassifier.cs (12)
64
AddClassification(node.OpenBracketToken,
ClassificationTypeNames
.RegexCharacterClass);
65
AddClassification(node.TextToken,
ClassificationTypeNames
.RegexCharacterClass);
66
AddClassification(node.CloseBracketToken,
ClassificationTypeNames
.RegexCharacterClass);
71
AddClassification(node.OpenBraceToken,
ClassificationTypeNames
.RegexCharacterClass);
72
AddClassification(node.CloseBraceToken,
ClassificationTypeNames
.RegexCharacterClass);
92
AddClassification(node.AsteriskToken,
ClassificationTypeNames
.RegexAnchor);
107
AddClassification(node.ColonToken,
ClassificationTypeNames
.RegexCharacterClass);
112
AddClassification(node.OpenParenToken,
ClassificationTypeNames
.RegexCharacterClass);
113
AddClassification(node.CloseParenToken,
ClassificationTypeNames
.RegexCharacterClass);
118
AddClassification(node.ArgumentToken,
ClassificationTypeNames
.RegexGrouping);
123
AddClassification(node.QuestionMarkToken,
ClassificationTypeNames
.RegexAnchor);
128
AddClassification(node.EqualsToken,
ClassificationTypeNames
.RegexCharacterClass);
Microsoft.AspNetCore.App.Analyzers.Test (57)
RouteEmbeddedLanguage\Infrastructure\FormattedClassifications.cs (48)
20
=> New(text,
ClassificationTypeNames
.StructName);
24
=> New(text,
ClassificationTypeNames
.EnumName);
28
=> New(text,
ClassificationTypeNames
.InterfaceName);
32
=> New(text,
ClassificationTypeNames
.ClassName);
36
=> New(text,
ClassificationTypeNames
.RecordClassName);
40
=> New(text,
ClassificationTypeNames
.RecordStructName);
44
=> New(text,
ClassificationTypeNames
.DelegateName);
48
=> New(text,
ClassificationTypeNames
.TypeParameterName);
52
=> New(text,
ClassificationTypeNames
.NamespaceName);
56
=> New(text,
ClassificationTypeNames
.LabelName);
60
=> New(text,
ClassificationTypeNames
.FieldName);
64
=> New(text,
ClassificationTypeNames
.EnumMemberName);
68
=> New(text,
ClassificationTypeNames
.ConstantName);
72
=> New(text,
ClassificationTypeNames
.LocalName);
76
=> New(text,
ClassificationTypeNames
.ParameterName);
80
=> New(text,
ClassificationTypeNames
.MethodName);
84
=> New(text,
ClassificationTypeNames
.ExtensionMethodName);
88
=> New(text,
ClassificationTypeNames
.PropertyName);
92
=> New(text,
ClassificationTypeNames
.EventName);
96
=> New(text,
ClassificationTypeNames
.StaticSymbol);
100
=> New(text,
ClassificationTypeNames
.StringLiteral);
104
=> New(text,
ClassificationTypeNames
.VerbatimStringLiteral);
108
=> New(text,
ClassificationTypeNames
.StringEscapeCharacter);
112
=> New(text,
ClassificationTypeNames
.Keyword);
116
=> New(text,
ClassificationTypeNames
.Punctuation);
120
=> New(text,
ClassificationTypeNames
.ControlKeyword);
124
=> New(text,
ClassificationTypeNames
.WhiteSpace);
128
=> New(text,
ClassificationTypeNames
.Text);
132
=> New(text,
ClassificationTypeNames
.NumericLiteral);
136
=> New(text,
ClassificationTypeNames
.PreprocessorKeyword);
140
=> New(text,
ClassificationTypeNames
.PreprocessorText);
144
=> New(text,
ClassificationTypeNames
.Identifier);
148
=> New(text,
ClassificationTypeNames
.ExcludedCode);
152
=> New(text,
ClassificationTypeNames
.Comment);
156
=> New(text,
ClassificationTypeNames
.NumericLiteral);
159
= New("_",
ClassificationTypeNames
.Punctuation);
163
=> New(text,
ClassificationTypeNames
.ModuleName);
167
=> New(text,
ClassificationTypeNames
.XmlLiteralName);
171
=> New(text,
ClassificationTypeNames
.XmlLiteralText);
175
=> New(text,
ClassificationTypeNames
.XmlLiteralProcessingInstruction);
179
=> New(text,
ClassificationTypeNames
.XmlLiteralEmbeddedExpression);
183
=> New(text,
ClassificationTypeNames
.XmlLiteralDelimiter);
187
=> New(text,
ClassificationTypeNames
.XmlLiteralComment);
191
=> New(text,
ClassificationTypeNames
.XmlLiteralCDataSection);
195
=> New(text,
ClassificationTypeNames
.XmlLiteralAttributeValue);
199
=> New(text,
ClassificationTypeNames
.XmlLiteralAttributeQuotes);
203
=> New(text,
ClassificationTypeNames
.XmlLiteralAttributeName);
207
=> New(text,
ClassificationTypeNames
.XmlLiteralEntityReference);
RouteEmbeddedLanguage\Infrastructure\FormattedClassifications.Regex.cs (9)
16
public static FormattedClassification Anchor(string value) => New(value,
ClassificationTypeNames
.RegexAnchor);
19
public static FormattedClassification Grouping(string value) => New(value,
ClassificationTypeNames
.RegexGrouping);
22
public static FormattedClassification OtherEscape(string value) => New(value,
ClassificationTypeNames
.RegexOtherEscape);
25
public static FormattedClassification SelfEscapedCharacter(string value) => New(value,
ClassificationTypeNames
.RegexSelfEscapedCharacter);
28
public static FormattedClassification Alternation(string value) => New(value,
ClassificationTypeNames
.RegexAlternation);
31
public static FormattedClassification CharacterClass(string value) => New(value,
ClassificationTypeNames
.RegexCharacterClass);
34
public static FormattedClassification Text(string value) => New(value,
ClassificationTypeNames
.RegexText);
37
public static FormattedClassification Quantifier(string value) => New(value,
ClassificationTypeNames
.RegexQuantifier);
40
public static FormattedClassification Comment(string value) => New(value,
ClassificationTypeNames
.RegexComment);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (3)
EventHookup\EventHookupSessionManager.cs (3)
79
new ClassifiedTextRun(
ClassificationTypeNames
.MethodName, eventName, ClassifiedTextRunStyle.UseClassificationFont),
80
new ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ";", ClassifiedTextRunStyle.UseClassificationFont),
81
new ClassifiedTextRun(
ClassificationTypeNames
.Text, CSharpEditorResources.Press_TAB_to_insert),
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (35)
Classification\SemanticClassifierTests_TestMarkup.cs (2)
87
var nonTestCodeSpans = actual.Where(s => s.ClassificationType !=
ClassificationTypeNames
.TestCode).OrderBy((t1, t2) => t1.TextSpan.Start - t2.TextSpan.Start).ToImmutableArray();
88
var testCodeSpans = actual.Where(s => s.ClassificationType ==
ClassificationTypeNames
.TestCode).OrderBy((t1, t2) => t1.TextSpan.Start - t2.TextSpan.Start).ToImmutableArray();
Classification\SyntacticClassifierTests.cs (27)
5791
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(0, 3)),
5792
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentText, new TextSpan(3, 1)),
5793
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(4, 1)),
5794
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentName, new TextSpan(5, 5)),
5795
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentAttributeName, new TextSpan(11, 4)),
5796
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(15, 1)),
5797
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentAttributeQuotes, new TextSpan(16, 1)),
5798
new ClassifiedSpan(
ClassificationTypeNames
.Identifier, new TextSpan(17, 5)),
5799
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentAttributeQuotes, new TextSpan(22, 1)),
5800
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(23, 1)),
5801
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(24, 2)),
5802
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentName, new TextSpan(26, 5)),
5803
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(31, 1))
5821
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(2, 3)),
5822
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentText, new TextSpan(5, 1)),
5823
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(6, 1)),
5824
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentName, new TextSpan(7, 5)),
5825
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(14, 3)),
5826
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentAttributeName, new TextSpan(18, 4)),
5827
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(22, 1)),
5828
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentAttributeQuotes, new TextSpan(23, 1)),
5829
new ClassifiedSpan(
ClassificationTypeNames
.Identifier, new TextSpan(24, 5)),
5830
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentAttributeQuotes, new TextSpan(29, 1)),
5831
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(30, 1)),
5832
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(31, 2)),
5833
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentName, new TextSpan(33, 5)),
5834
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(38, 1))
SignatureHelp\GenericNameSignatureHelpProviderTests.cs (6)
925
ClassificationTypeNames
.Text,
926
ClassificationTypeNames
.WhiteSpace,
927
ClassificationTypeNames
.WhiteSpace,
928
ClassificationTypeNames
.WhiteSpace,
929
ClassificationTypeNames
.Text,
930
ClassificationTypeNames
.WhiteSpace))
Microsoft.CodeAnalysis.CSharp.Features (3)
EmbeddedLanguages\CSharpTestEmbeddedLanguageClassifier.cs (3)
60
context.AddClassification(
ClassificationTypeNames
.TestCodeMarkdown, span);
82
ClassificationTypeNames
.TestCode,
92
ClassificationTypeNames
.TestCode,
Microsoft.CodeAnalysis.CSharp.Workspaces (184)
Classification\ClassificationHelpers.cs (48)
32
return
ClassificationTypeNames
.ControlKeyword;
37
return
ClassificationTypeNames
.Keyword;
50
?
ClassificationTypeNames
.VerbatimStringLiteral
51
:
ClassificationTypeNames
.StringLiteral;
55
return
ClassificationTypeNames
.NumericLiteral;
200
return
ClassificationTypeNames
.DelegateName;
204
return
ClassificationTypeNames
.TypeParameterName;
209
return
ClassificationTypeNames
.ExtensionMethodName;
212
return
ClassificationTypeNames
.ExtensionMethodName;
214
return
ClassificationTypeNames
.MethodName;
226
return
ClassificationTypeNames
.MethodName;
230
return
ClassificationTypeNames
.PropertyName;
234
return
ClassificationTypeNames
.EnumMemberName;
238
return
ClassificationTypeNames
.LocalName;
245
FieldDeclarationSyntax fieldDeclaration => fieldDeclaration.Modifiers.Any(SyntaxKind.ConstKeyword) ?
ClassificationTypeNames
.ConstantName :
ClassificationTypeNames
.FieldName,
246
LocalDeclarationStatementSyntax localDeclarationStatement => localDeclarationStatement.IsConst ?
ClassificationTypeNames
.ConstantName :
ClassificationTypeNames
.LocalName,
247
EventFieldDeclarationSyntax _ =>
ClassificationTypeNames
.EventName,
248
_ =>
ClassificationTypeNames
.LocalName,
253
return
ClassificationTypeNames
.LocalName;
257
return
ClassificationTypeNames
.ParameterName;
261
return
ClassificationTypeNames
.LocalName;
265
return
ClassificationTypeNames
.EventName;
269
return
ClassificationTypeNames
.Keyword;
273
return
ClassificationTypeNames
.NamespaceName;
277
return
ClassificationTypeNames
.NamespaceName;
281
return
ClassificationTypeNames
.LabelName;
285
return
ClassificationTypeNames
.Identifier;
292
SyntaxKind.ClassDeclaration =>
ClassificationTypeNames
.ClassName,
293
SyntaxKind.InterfaceDeclaration =>
ClassificationTypeNames
.InterfaceName,
294
SyntaxKind.RecordDeclaration =>
ClassificationTypeNames
.RecordClassName,
295
SyntaxKind.RecordStructDeclaration =>
ClassificationTypeNames
.RecordStructName,
296
SyntaxKind.StructDeclaration =>
ClassificationTypeNames
.StructName,
340
SyntaxKind.ClassDeclaration =>
ClassificationTypeNames
.ClassName,
341
SyntaxKind.EnumDeclaration =>
ClassificationTypeNames
.EnumName,
342
SyntaxKind.StructDeclaration =>
ClassificationTypeNames
.StructName,
343
SyntaxKind.InterfaceDeclaration =>
ClassificationTypeNames
.InterfaceName,
344
SyntaxKind.RecordDeclaration =>
ClassificationTypeNames
.RecordClassName,
345
SyntaxKind.RecordStructDeclaration =>
ClassificationTypeNames
.RecordStructName,
366
return
ClassificationTypeNames
.Punctuation;
378
return
ClassificationTypeNames
.Punctuation;
385
return
ClassificationTypeNames
.Operator;
389
return
ClassificationTypeNames
.Punctuation;
520
var wasKeyword = classificationType ==
ClassificationTypeNames
.Keyword;
521
var wasIdentifier = classificationType ==
ClassificationTypeNames
.Identifier;
556
isKeyword ?
ClassificationTypeNames
.Keyword :
ClassificationTypeNames
.Identifier, span);
Classification\SyntaxClassification\DiscardSyntaxClassifier.cs (3)
30
result.Add(new ClassifiedSpan(syntax.Span,
ClassificationTypeNames
.Keyword));
41
result.Add(new ClassifiedSpan(parameter.Identifier.Span,
ClassificationTypeNames
.Keyword));
51
result.Add(new ClassifiedSpan(syntax.Span,
ClassificationTypeNames
.Keyword));
Classification\SyntaxClassification\FunctionPointerUnmanagedCallingConventionClassifier.cs (1)
33
result.Add(new(
ClassificationTypeNames
.ClassName, callingConvention.Name.Span));
Classification\SyntaxClassification\NameSyntaxClassifier.cs (23)
78
if (classifiedSpan.ClassificationType !=
ClassificationTypeNames
.Keyword)
114
result.Add(new ClassifiedSpan(set.First().TextSpan,
ClassificationTypeNames
.StaticSymbol));
145
classifiedSpan = new ClassifiedSpan(name.Span,
ClassificationTypeNames
.NamespaceName);
153
classifiedSpan = new ClassifiedSpan(name.Span,
ClassificationTypeNames
.Keyword);
160
classifiedSpan = new ClassifiedSpan(name.Span,
ClassificationTypeNames
.Keyword);
168
classifiedSpan = new ClassifiedSpan(name.Span,
ClassificationTypeNames
.Keyword);
175
classifiedSpan = new ClassifiedSpan(name.Span,
ClassificationTypeNames
.Keyword);
204
classifiedSpan = new ClassifiedSpan(token.Span,
ClassificationTypeNames
.PropertyName);
208
classifiedSpan = new ClassifiedSpan(token.Span,
ClassificationTypeNames
.EventName);
217
classifiedSpan = new ClassifiedSpan(token.Span,
ClassificationTypeNames
.ParameterName);
225
classifiedSpan = new ClassifiedSpan(token.Span,
ClassificationTypeNames
.LabelName);
237
return fieldSymbol.ContainingType.IsEnumType() ?
ClassificationTypeNames
.EnumMemberName :
ClassificationTypeNames
.ConstantName;
240
return
ClassificationTypeNames
.FieldName;
246
?
ClassificationTypeNames
.ConstantName
247
:
ClassificationTypeNames
.LocalName;
256
return methodSymbol.ContainingType?.GetClassification() ??
ClassificationTypeNames
.MethodName;
262
return
ClassificationTypeNames
.ExtensionMethodName;
267
return
ClassificationTypeNames
.ExtensionMethodName;
269
return
ClassificationTypeNames
.MethodName;
297
result.Add(new ClassifiedSpan(token.Span,
ClassificationTypeNames
.Keyword));
312
result.Add(new ClassifiedSpan(name.Identifier.Span,
ClassificationTypeNames
.Keyword));
328
result.Add(new(name.Span,
ClassificationTypeNames
.Keyword));
Classification\SyntaxClassification\OperatorOverloadSyntaxClassifier.cs (1)
50
result.Add(new ClassifiedSpan(operatorSpan,
ClassificationTypeNames
.OperatorOverloaded));
Classification\SyntaxClassification\UsingDirectiveSyntaxClassifier.cs (1)
57
result.Add(new ClassifiedSpan(token.Span,
ClassificationTypeNames
.NamespaceName));
Classification\Worker.cs (6)
136
AddClassification(TextSpan.FromBounds(token.Span.End - "u8".Length, token.Span.End),
ClassificationTypeNames
.Keyword);
147
AddClassification(span,
ClassificationTypeNames
.StaticSymbol);
212
AddClassification(trivia,
ClassificationTypeNames
.Comment);
229
AddClassification(trivia,
ClassificationTypeNames
.XmlDocCommentDelimiter);
275
=> AddClassification(trivia,
ClassificationTypeNames
.Comment);
293
AddClassification(trivia,
ClassificationTypeNames
.ExcludedCode);
Classification\Worker_DocumentationComments.cs (29)
77
AddClassification(t,
ClassificationTypeNames
.XmlDocCommentText);
110
AddClassification(span,
ClassificationTypeNames
.XmlDocCommentDelimiter);
124
AddClassification(span,
ClassificationTypeNames
.XmlDocCommentDelimiter);
157
AddClassification(token,
ClassificationTypeNames
.XmlDocCommentEntityReference);
165
AddClassification(token,
ClassificationTypeNames
.XmlDocCommentText);
168
AddClassification(token,
ClassificationTypeNames
.XmlDocCommentAttributeValue);
171
AddClassification(token,
ClassificationTypeNames
.XmlDocCommentComment);
174
AddClassification(token,
ClassificationTypeNames
.XmlDocCommentCDataSection);
177
AddClassification(token,
ClassificationTypeNames
.XmlDocCommentProcessingInstruction);
187
XmlAttributeSyntax =>
ClassificationTypeNames
.XmlDocCommentAttributeName,
188
XmlProcessingInstructionSyntax =>
ClassificationTypeNames
.XmlDocCommentProcessingInstruction,
189
_ =>
ClassificationTypeNames
.XmlDocCommentName,
216
AddXmlClassification(node.LessThanToken,
ClassificationTypeNames
.XmlDocCommentDelimiter);
224
AddXmlClassification(node.GreaterThanToken,
ClassificationTypeNames
.XmlDocCommentDelimiter);
229
AddXmlClassification(node.LessThanSlashToken,
ClassificationTypeNames
.XmlDocCommentDelimiter);
231
AddXmlClassification(node.GreaterThanToken,
ClassificationTypeNames
.XmlDocCommentDelimiter);
236
AddXmlClassification(node.LessThanToken,
ClassificationTypeNames
.XmlDocCommentDelimiter);
244
AddXmlClassification(node.SlashGreaterThanToken,
ClassificationTypeNames
.XmlDocCommentDelimiter);
250
AddXmlClassification(attribute.EqualsToken,
ClassificationTypeNames
.XmlDocCommentDelimiter);
251
AddXmlClassification(attribute.StartQuoteToken,
ClassificationTypeNames
.XmlDocCommentAttributeQuotes);
272
AddXmlClassification(attribute.EndQuoteToken,
ClassificationTypeNames
.XmlDocCommentAttributeQuotes);
313
AddClassification(token, isControlKeyword ?
ClassificationTypeNames
.ControlKeyword :
ClassificationTypeNames
.Keyword);
321
AddXmlClassification(node.LessThanExclamationMinusMinusToken,
ClassificationTypeNames
.XmlDocCommentDelimiter);
323
AddXmlClassification(node.MinusMinusGreaterThanToken,
ClassificationTypeNames
.XmlDocCommentDelimiter);
328
AddXmlClassification(node.StartCDataToken,
ClassificationTypeNames
.XmlDocCommentDelimiter);
330
AddXmlClassification(node.EndCDataToken,
ClassificationTypeNames
.XmlDocCommentDelimiter);
335
AddXmlClassification(node.StartProcessingInstructionToken,
ClassificationTypeNames
.XmlDocCommentProcessingInstruction);
338
AddXmlClassification(node.EndProcessingInstructionToken,
ClassificationTypeNames
.XmlDocCommentProcessingInstruction);
Classification\Worker_Preprocesser.cs (72)
107
AddClassification(trivia,
ClassificationTypeNames
.Comment);
111
AddClassification(trivia,
ClassificationTypeNames
.PreprocessorText);
125
AddClassification(literal.Token,
ClassificationTypeNames
.Keyword);
130
AddClassification(identifier.Identifier,
ClassificationTypeNames
.Identifier);
135
AddClassification(parenExpression.OpenParenToken,
ClassificationTypeNames
.Punctuation);
137
AddClassification(parenExpression.CloseParenToken,
ClassificationTypeNames
.Punctuation);
142
AddClassification(prefixExpression.OperatorToken,
ClassificationTypeNames
.Operator);
149
AddClassification(binaryExpression.OperatorToken,
ClassificationTypeNames
.Operator);
156
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
157
AddClassification(node.IfKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
164
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
165
AddClassification(node.ElifKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
172
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
173
AddClassification(node.ElseKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
179
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
180
AddClassification(node.EndIfKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
186
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
187
AddClassification(node.ErrorKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
193
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
194
AddClassification(node.WarningKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
200
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
201
AddClassification(node.RegionKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
207
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
208
AddClassification(node.EndRegionKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
214
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
215
AddClassification(node.DefineKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
216
AddClassification(node.Name,
ClassificationTypeNames
.Identifier);
222
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
223
AddClassification(node.UndefKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
224
AddClassification(node.Name,
ClassificationTypeNames
.Identifier);
230
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
231
AddClassification(node.Identifier,
ClassificationTypeNames
.PreprocessorKeyword);
237
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
238
AddClassification(node.LineKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
244
AddClassification(node.Line,
ClassificationTypeNames
.PreprocessorKeyword);
247
AddClassification(node.Line,
ClassificationTypeNames
.NumericLiteral);
251
AddOptionalClassification(node.File,
ClassificationTypeNames
.StringLiteral);
257
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
258
AddClassification(node.LineKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
260
AddClassification(node.MinusToken,
ClassificationTypeNames
.Operator);
262
AddOptionalClassification(node.CharacterOffset,
ClassificationTypeNames
.NumericLiteral);
263
AddOptionalClassification(node.File,
ClassificationTypeNames
.StringLiteral);
277
AddClassification(node.OpenParenToken,
ClassificationTypeNames
.Punctuation);
278
AddClassification(node.Line,
ClassificationTypeNames
.NumericLiteral);
279
AddClassification(node.CommaToken,
ClassificationTypeNames
.Punctuation);
280
AddClassification(node.Character,
ClassificationTypeNames
.NumericLiteral);
281
AddClassification(node.CloseParenToken,
ClassificationTypeNames
.Punctuation);
286
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
287
AddClassification(node.PragmaKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
288
AddClassification(node.ChecksumKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
289
AddClassification(node.File,
ClassificationTypeNames
.StringLiteral);
290
AddClassification(node.Guid,
ClassificationTypeNames
.StringLiteral);
291
AddClassification(node.Bytes,
ClassificationTypeNames
.StringLiteral);
297
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
298
AddClassification(node.PragmaKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
299
AddClassification(node.WarningKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
300
AddClassification(node.DisableOrRestoreKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
317
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
318
AddClassification(node.ReferenceKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
319
AddClassification(node.File,
ClassificationTypeNames
.StringLiteral);
325
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
326
AddClassification(node.LoadKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
327
AddClassification(node.File,
ClassificationTypeNames
.StringLiteral);
333
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
334
AddClassification(node.ColonToken,
ClassificationTypeNames
.PreprocessorKeyword);
343
AddClassification(keywordSpan,
ClassificationTypeNames
.PreprocessorKeyword);
344
AddClassification(stringLiteralSpan,
ClassificationTypeNames
.StringLiteral);
348
AddClassification(node.Content,
ClassificationTypeNames
.PreprocessorKeyword);
356
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
357
AddClassification(node.NullableKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
358
AddClassification(node.SettingToken,
ClassificationTypeNames
.PreprocessorKeyword);
359
AddClassification(node.TargetToken,
ClassificationTypeNames
.PreprocessorKeyword);
Microsoft.CodeAnalysis.EditorFeatures (293)
Classification\ClassificationTypeDefinitions.cs (77)
18
[Name(
ClassificationTypeNames
.PreprocessorText)]
24
[Name(
ClassificationTypeNames
.Punctuation)]
30
[Name(
ClassificationTypeNames
.VerbatimStringLiteral)]
35
[Name(
ClassificationTypeNames
.StringEscapeCharacter)]
43
[Name(
ClassificationTypeNames
.ControlKeyword)]
50
[Name(
ClassificationTypeNames
.ClassName)]
56
[Name(
ClassificationTypeNames
.RecordClassName)]
57
[BaseDefinition(
ClassificationTypeNames
.ClassName)]
62
[Name(
ClassificationTypeNames
.RecordStructName)]
63
[BaseDefinition(
ClassificationTypeNames
.StructName)]
68
[Name(
ClassificationTypeNames
.DelegateName)]
74
[Name(
ClassificationTypeNames
.EnumName)]
80
[Name(
ClassificationTypeNames
.InterfaceName)]
86
[Name(
ClassificationTypeNames
.ModuleName)]
92
[Name(
ClassificationTypeNames
.StructName)]
98
[Name(
ClassificationTypeNames
.TypeParameterName)]
105
[Name(
ClassificationTypeNames
.TestCode)]
109
[Name(
ClassificationTypeNames
.TestCodeMarkdown)]
120
[Name(
ClassificationTypeNames
.FieldName)]
126
[Name(
ClassificationTypeNames
.EnumMemberName)]
132
[Name(
ClassificationTypeNames
.ConstantName)]
138
[Name(
ClassificationTypeNames
.LocalName)]
144
[Name(
ClassificationTypeNames
.ParameterName)]
150
[Name(
ClassificationTypeNames
.MethodName)]
156
[Name(
ClassificationTypeNames
.ExtensionMethodName)]
157
[BaseDefinition(
ClassificationTypeNames
.MethodName)]
162
[Name(
ClassificationTypeNames
.PropertyName)]
168
[Name(
ClassificationTypeNames
.EventName)]
174
[Name(
ClassificationTypeNames
.NamespaceName)]
180
[Name(
ClassificationTypeNames
.LabelName)]
187
[Name(
ClassificationTypeNames
.XmlDocCommentAttributeName)]
193
[Name(
ClassificationTypeNames
.XmlDocCommentAttributeQuotes)]
199
[Name(
ClassificationTypeNames
.XmlDocCommentAttributeValue)]
205
[Name(
ClassificationTypeNames
.XmlDocCommentCDataSection)]
211
[Name(
ClassificationTypeNames
.XmlDocCommentComment)]
217
[Name(
ClassificationTypeNames
.XmlDocCommentDelimiter)]
223
[Name(
ClassificationTypeNames
.XmlDocCommentEntityReference)]
229
[Name(
ClassificationTypeNames
.XmlDocCommentName)]
235
[Name(
ClassificationTypeNames
.XmlDocCommentProcessingInstruction)]
241
[Name(
ClassificationTypeNames
.XmlDocCommentText)]
248
[Name(
ClassificationTypeNames
.RegexComment)]
253
[Name(
ClassificationTypeNames
.RegexText)]
258
[Name(
ClassificationTypeNames
.RegexCharacterClass)]
263
[Name(
ClassificationTypeNames
.RegexQuantifier)]
268
[Name(
ClassificationTypeNames
.RegexAnchor)]
273
[Name(
ClassificationTypeNames
.RegexAlternation)]
278
[Name(
ClassificationTypeNames
.RegexOtherEscape)]
283
[Name(
ClassificationTypeNames
.RegexSelfEscapedCharacter)]
288
[Name(
ClassificationTypeNames
.RegexGrouping)]
296
[Name(
ClassificationTypeNames
.JsonComment)]
301
[Name(
ClassificationTypeNames
.JsonNumber)]
306
[Name(
ClassificationTypeNames
.JsonString)]
311
[Name(
ClassificationTypeNames
.JsonKeyword)]
316
[Name(
ClassificationTypeNames
.JsonText)]
321
[Name(
ClassificationTypeNames
.JsonOperator)]
326
[Name(
ClassificationTypeNames
.JsonPunctuation)]
331
[Name(
ClassificationTypeNames
.JsonArray)]
336
[Name(
ClassificationTypeNames
.JsonObject)]
341
[Name(
ClassificationTypeNames
.JsonPropertyName)]
342
[BaseDefinition(
ClassificationTypeNames
.MethodName)]
346
[Name(
ClassificationTypeNames
.JsonConstructorName)]
347
[BaseDefinition(
ClassificationTypeNames
.StructName)]
354
[Name(
ClassificationTypeNames
.XmlLiteralAttributeName)]
360
[Name(
ClassificationTypeNames
.XmlLiteralAttributeQuotes)]
366
[Name(
ClassificationTypeNames
.XmlLiteralAttributeValue)]
372
[Name(
ClassificationTypeNames
.XmlLiteralCDataSection)]
378
[Name(
ClassificationTypeNames
.XmlLiteralComment)]
384
[Name(
ClassificationTypeNames
.XmlLiteralDelimiter)]
390
[Name(
ClassificationTypeNames
.XmlLiteralEmbeddedExpression)]
396
[Name(
ClassificationTypeNames
.XmlLiteralEntityReference)]
402
[Name(
ClassificationTypeNames
.XmlLiteralName)]
408
[Name(
ClassificationTypeNames
.XmlLiteralProcessingInstruction)]
414
[Name(
ClassificationTypeNames
.XmlLiteralText)]
421
[Name(
ClassificationTypeNames
.ReassignedVariable)]
428
[Name(
ClassificationTypeNames
.ObsoleteSymbol)]
435
[Name(
ClassificationTypeNames
.StaticSymbol)]
444
[Name(
ClassificationTypeNames
.OperatorOverloaded)]
Classification\ClassificationTypeFormatDefinitions.cs (208)
23
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.PreprocessorText)]
24
[Name(
ClassificationTypeNames
.PreprocessorText)]
41
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.Punctuation)]
42
[Name(
ClassificationTypeNames
.Punctuation)]
60
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.VerbatimStringLiteral)]
61
[Name(
ClassificationTypeNames
.VerbatimStringLiteral)]
77
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.StringEscapeCharacter)]
78
[Name(
ClassificationTypeNames
.StringEscapeCharacter)]
79
[Order(After =
ClassificationTypeNames
.StringLiteral)]
80
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
99
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.ControlKeyword)]
100
[Name(
ClassificationTypeNames
.ControlKeyword)]
116
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.OperatorOverloaded)]
117
[Name(
ClassificationTypeNames
.OperatorOverloaded)]
132
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.ReassignedVariable)]
133
[Name(
ClassificationTypeNames
.ReassignedVariable)]
151
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.ObsoleteSymbol)]
152
[Name(
ClassificationTypeNames
.ObsoleteSymbol)]
170
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.StaticSymbol)]
171
[Name(
ClassificationTypeNames
.StaticSymbol)]
208
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.ClassName)]
209
[Name(
ClassificationTypeNames
.ClassName)]
212
[Order(Before =
ClassificationTypeNames
.StaticSymbol)]
228
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.RecordClassName)]
229
[Name(
ClassificationTypeNames
.RecordClassName)]
232
[Order(Before =
ClassificationTypeNames
.StaticSymbol)]
247
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.RecordStructName)]
248
[Name(
ClassificationTypeNames
.RecordStructName)]
251
[Order(Before =
ClassificationTypeNames
.StaticSymbol)]
266
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.DelegateName)]
267
[Name(
ClassificationTypeNames
.DelegateName)]
270
[Order(Before =
ClassificationTypeNames
.StaticSymbol)]
286
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.EnumName)]
287
[Name(
ClassificationTypeNames
.EnumName)]
290
[Order(Before =
ClassificationTypeNames
.StaticSymbol)]
306
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.InterfaceName)]
307
[Name(
ClassificationTypeNames
.InterfaceName)]
310
[Order(Before =
ClassificationTypeNames
.StaticSymbol)]
326
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.ModuleName)]
327
[Name(
ClassificationTypeNames
.ModuleName)]
330
[Order(Before =
ClassificationTypeNames
.StaticSymbol)]
345
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.StructName)]
346
[Name(
ClassificationTypeNames
.StructName)]
349
[Order(Before =
ClassificationTypeNames
.StaticSymbol)]
365
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.TypeParameterName)]
366
[Name(
ClassificationTypeNames
.TypeParameterName)]
369
[Order(Before =
ClassificationTypeNames
.StaticSymbol)]
386
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.FieldName)]
387
[Name(
ClassificationTypeNames
.FieldName)]
390
[Order(Before =
ClassificationTypeNames
.StaticSymbol)]
403
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.EnumMemberName)]
404
[Name(
ClassificationTypeNames
.EnumMemberName)]
407
[Order(Before =
ClassificationTypeNames
.StaticSymbol)]
420
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.ConstantName)]
421
[Name(
ClassificationTypeNames
.ConstantName)]
424
[Order(Before =
ClassificationTypeNames
.StaticSymbol)]
437
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.LocalName)]
438
[Name(
ClassificationTypeNames
.LocalName)]
441
[Order(Before =
ClassificationTypeNames
.StaticSymbol)]
454
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.ParameterName)]
455
[Name(
ClassificationTypeNames
.ParameterName)]
458
[Order(Before =
ClassificationTypeNames
.StaticSymbol)]
471
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.MethodName)]
472
[Name(
ClassificationTypeNames
.MethodName)]
475
[Order(Before =
ClassificationTypeNames
.StaticSymbol)]
488
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.ExtensionMethodName)]
489
[Name(
ClassificationTypeNames
.ExtensionMethodName)]
492
[Order(Before =
ClassificationTypeNames
.StaticSymbol)]
505
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.PropertyName)]
506
[Name(
ClassificationTypeNames
.PropertyName)]
509
[Order(Before =
ClassificationTypeNames
.StaticSymbol)]
522
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.EventName)]
523
[Name(
ClassificationTypeNames
.EventName)]
538
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.NamespaceName)]
539
[Name(
ClassificationTypeNames
.NamespaceName)]
554
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.LabelName)]
555
[Name(
ClassificationTypeNames
.LabelName)]
558
[Order(Before =
ClassificationTypeNames
.StaticSymbol)]
572
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlDocCommentAttributeName)]
573
[Name(
ClassificationTypeNames
.XmlDocCommentAttributeName)]
590
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlDocCommentAttributeQuotes)]
591
[Name(
ClassificationTypeNames
.XmlDocCommentAttributeQuotes)]
610
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlDocCommentAttributeValue)]
611
[Name(
ClassificationTypeNames
.XmlDocCommentAttributeValue)]
628
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlDocCommentCDataSection)]
629
[Name(
ClassificationTypeNames
.XmlDocCommentCDataSection)]
646
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlDocCommentComment)]
647
[Name(
ClassificationTypeNames
.XmlDocCommentComment)]
664
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlDocCommentDelimiter)]
665
[Name(
ClassificationTypeNames
.XmlDocCommentDelimiter)]
682
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlDocCommentEntityReference)]
683
[Name(
ClassificationTypeNames
.XmlDocCommentEntityReference)]
700
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlDocCommentName)]
701
[Name(
ClassificationTypeNames
.XmlDocCommentName)]
718
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlDocCommentProcessingInstruction)]
719
[Name(
ClassificationTypeNames
.XmlDocCommentProcessingInstruction)]
736
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlDocCommentText)]
737
[Name(
ClassificationTypeNames
.XmlDocCommentText)]
754
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.TestCode)]
755
[Name(
ClassificationTypeNames
.TestCode)]
756
[Order(After =
ClassificationTypeNames
.StringLiteral)]
757
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
772
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.TestCodeMarkdown)]
773
[Name(
ClassificationTypeNames
.TestCodeMarkdown)]
774
[Order(After =
ClassificationTypeNames
.StringLiteral)]
775
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
792
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.RegexComment)]
793
[Name(
ClassificationTypeNames
.RegexComment)]
794
[Order(After =
ClassificationTypeNames
.StringLiteral)]
795
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
810
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.RegexCharacterClass)]
811
[Name(
ClassificationTypeNames
.RegexCharacterClass)]
812
[Order(After =
ClassificationTypeNames
.StringLiteral)]
813
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
828
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.RegexAnchor)]
829
[Name(
ClassificationTypeNames
.RegexAnchor)]
830
[Order(After =
ClassificationTypeNames
.StringLiteral)]
831
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
846
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.RegexQuantifier)]
847
[Name(
ClassificationTypeNames
.RegexQuantifier)]
848
[Order(After =
ClassificationTypeNames
.StringLiteral)]
849
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
864
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.RegexGrouping)]
865
[Name(
ClassificationTypeNames
.RegexGrouping)]
866
[Order(After =
ClassificationTypeNames
.StringLiteral)]
867
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
882
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.RegexAlternation)]
883
[Name(
ClassificationTypeNames
.RegexAlternation)]
884
[Order(After =
ClassificationTypeNames
.StringLiteral)]
885
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
900
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.RegexText)]
901
[Name(
ClassificationTypeNames
.RegexText)]
902
[Order(After =
ClassificationTypeNames
.StringLiteral)]
903
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
918
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.RegexSelfEscapedCharacter)]
919
[Name(
ClassificationTypeNames
.RegexSelfEscapedCharacter)]
920
[Order(After =
ClassificationTypeNames
.StringLiteral)]
921
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
940
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.RegexOtherEscape)]
941
[Name(
ClassificationTypeNames
.RegexOtherEscape)]
942
[Order(After =
ClassificationTypeNames
.StringLiteral)]
943
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
961
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.JsonComment)]
962
[Name(
ClassificationTypeNames
.JsonComment)]
963
[Order(After =
ClassificationTypeNames
.StringLiteral)]
964
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
975
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.JsonNumber)]
976
[Name(
ClassificationTypeNames
.JsonNumber)]
977
[Order(After =
ClassificationTypeNames
.StringLiteral)]
978
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
989
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.JsonString)]
990
[Name(
ClassificationTypeNames
.JsonString)]
991
[Order(After =
ClassificationTypeNames
.StringLiteral)]
992
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
1003
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.JsonKeyword)]
1004
[Name(
ClassificationTypeNames
.JsonKeyword)]
1005
[Order(After =
ClassificationTypeNames
.StringLiteral)]
1006
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
1017
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.JsonText)]
1018
[Name(
ClassificationTypeNames
.JsonText)]
1019
[Order(After =
ClassificationTypeNames
.StringLiteral)]
1020
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
1031
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.JsonOperator)]
1032
[Name(
ClassificationTypeNames
.JsonOperator)]
1033
[Order(After =
ClassificationTypeNames
.StringLiteral)]
1034
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
1045
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.JsonPunctuation)]
1046
[Name(
ClassificationTypeNames
.JsonPunctuation)]
1047
[Order(After =
ClassificationTypeNames
.StringLiteral)]
1048
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
1059
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.JsonObject)]
1060
[Name(
ClassificationTypeNames
.JsonObject)]
1061
[Order(After =
ClassificationTypeNames
.StringLiteral)]
1062
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
1073
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.JsonArray)]
1074
[Name(
ClassificationTypeNames
.JsonArray)]
1075
[Order(After =
ClassificationTypeNames
.StringLiteral)]
1076
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
1087
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.JsonPropertyName)]
1088
[Name(
ClassificationTypeNames
.JsonPropertyName)]
1089
[Order(After =
ClassificationTypeNames
.StringLiteral)]
1090
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
1101
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.JsonConstructorName)]
1102
[Name(
ClassificationTypeNames
.JsonConstructorName)]
1103
[Order(After =
ClassificationTypeNames
.StringLiteral)]
1104
[Order(After =
ClassificationTypeNames
.VerbatimStringLiteral)]
1118
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlLiteralAttributeName)]
1119
[Name(
ClassificationTypeNames
.XmlLiteralAttributeName)]
1135
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlLiteralAttributeQuotes)]
1136
[Name(
ClassificationTypeNames
.XmlLiteralAttributeQuotes)]
1152
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlLiteralAttributeValue)]
1153
[Name(
ClassificationTypeNames
.XmlLiteralAttributeValue)]
1169
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlLiteralCDataSection)]
1170
[Name(
ClassificationTypeNames
.XmlLiteralCDataSection)]
1186
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlLiteralComment)]
1187
[Name(
ClassificationTypeNames
.XmlLiteralComment)]
1203
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlLiteralDelimiter)]
1204
[Name(
ClassificationTypeNames
.XmlLiteralDelimiter)]
1220
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlLiteralEmbeddedExpression)]
1221
[Name(
ClassificationTypeNames
.XmlLiteralEmbeddedExpression)]
1238
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlLiteralEntityReference)]
1239
[Name(
ClassificationTypeNames
.XmlLiteralEntityReference)]
1255
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlLiteralName)]
1256
[Name(
ClassificationTypeNames
.XmlLiteralName)]
1272
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlLiteralProcessingInstruction)]
1273
[Name(
ClassificationTypeNames
.XmlLiteralProcessingInstruction)]
1289
[ClassificationType(ClassificationTypeNames =
ClassificationTypeNames
.XmlLiteralText)]
1290
[Name(
ClassificationTypeNames
.XmlLiteralText)]
Classification\TotalClassificationTaggerProvider.cs (4)
197
if (currentSyntactic.Tag.ClassificationType.Classification is not
ClassificationTypeNames
.StringLiteral and not
ClassificationTypeNames
.VerbatimStringLiteral)
207
if (currentSyntactic.Tag.ClassificationType.Classification is not
ClassificationTypeNames
.Comment and not
ClassificationTypeNames
.ExcludedCode)
QuickInfo\OnTheFlyDocsView.xaml.cs (2)
93
? ToUIElement(new ContainerElement(ContainerElementStyle.Wrapped, new ClassifiedTextElement([new ClassifiedTextRun(
ClassificationTypeNames
.Text, EditorFeaturesResources.Describe_with_Copilot_is_unavailable_since_the_referenced_document_is_excluded_by_your_organization)])))
271
new ContainerElement(ContainerElementStyle.Wrapped, new ClassifiedTextElement([new ClassifiedTextRun(
ClassificationTypeNames
.Text, text)])));
Shared\Utilities\ClassificationTypeMap.cs (2)
37
var fields = typeof(
ClassificationTypeNames
).GetFields();
60
return type ?? GetClassificationTypeWorker(
ClassificationTypeNames
.Text);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (86)
Classification\FormattedClassifications.cs (51)
19
=> New(text,
ClassificationTypeNames
.StructName);
23
=> New(text,
ClassificationTypeNames
.EnumName);
27
=> New(text,
ClassificationTypeNames
.InterfaceName);
31
=> New(text,
ClassificationTypeNames
.ClassName);
35
=> New(text,
ClassificationTypeNames
.RecordClassName);
39
=> New(text,
ClassificationTypeNames
.RecordStructName);
43
=> New(text,
ClassificationTypeNames
.DelegateName);
47
=> New(text,
ClassificationTypeNames
.TypeParameterName);
51
=> New(text,
ClassificationTypeNames
.NamespaceName);
55
=> New(text,
ClassificationTypeNames
.LabelName);
59
=> New(text,
ClassificationTypeNames
.FieldName);
63
=> New(text,
ClassificationTypeNames
.EnumMemberName);
67
=> New(text,
ClassificationTypeNames
.ConstantName);
71
=> New(text,
ClassificationTypeNames
.LocalName);
75
=> New(text,
ClassificationTypeNames
.ParameterName);
79
=> New(text,
ClassificationTypeNames
.MethodName);
83
=> New(text,
ClassificationTypeNames
.ExtensionMethodName);
87
=> New(text,
ClassificationTypeNames
.PropertyName);
91
=> New(text,
ClassificationTypeNames
.EventName);
95
=> New(text,
ClassificationTypeNames
.ObsoleteSymbol);
99
=> New(text,
ClassificationTypeNames
.StaticSymbol);
103
=> New(text,
ClassificationTypeNames
.StringLiteral);
107
=> New(text,
ClassificationTypeNames
.VerbatimStringLiteral);
111
=> New(text,
ClassificationTypeNames
.StringEscapeCharacter);
115
=> New(text,
ClassificationTypeNames
.Keyword);
119
=> New(text,
ClassificationTypeNames
.Punctuation);
123
=> New(text,
ClassificationTypeNames
.ControlKeyword);
127
=> New(text,
ClassificationTypeNames
.WhiteSpace);
131
=> New(text,
ClassificationTypeNames
.Text);
135
=> New(text,
ClassificationTypeNames
.NumericLiteral);
139
=> New(text,
ClassificationTypeNames
.PreprocessorKeyword);
143
=> New(text,
ClassificationTypeNames
.PreprocessorText);
147
=> New(text,
ClassificationTypeNames
.Identifier);
151
=> New(text,
ClassificationTypeNames
.ExcludedCode);
155
=> New(text,
ClassificationTypeNames
.Comment);
159
=> New(text,
ClassificationTypeNames
.NumericLiteral);
162
= New("_",
ClassificationTypeNames
.Punctuation);
166
=> New(text,
ClassificationTypeNames
.ModuleName);
170
=> New(text,
ClassificationTypeNames
.XmlLiteralName);
174
=> New(text,
ClassificationTypeNames
.XmlLiteralText);
178
=> New(text,
ClassificationTypeNames
.XmlLiteralProcessingInstruction);
182
=> New(text,
ClassificationTypeNames
.XmlLiteralEmbeddedExpression);
186
=> New(text,
ClassificationTypeNames
.XmlLiteralDelimiter);
190
=> New(text,
ClassificationTypeNames
.XmlLiteralComment);
194
=> New(text,
ClassificationTypeNames
.XmlLiteralCDataSection);
198
=> New(text,
ClassificationTypeNames
.XmlLiteralAttributeValue);
202
=> New(text,
ClassificationTypeNames
.XmlLiteralAttributeQuotes);
206
=> New(text,
ClassificationTypeNames
.XmlLiteralAttributeName);
210
=> New(text,
ClassificationTypeNames
.XmlLiteralEntityReference);
214
=> New(text,
ClassificationTypeNames
.TestCode);
218
=> New(text,
ClassificationTypeNames
.TestCodeMarkdown);
Classification\FormattedClassifications.Json.cs (11)
15
public static FormattedClassification Array(string value) => New(value,
ClassificationTypeNames
.JsonArray);
18
public static FormattedClassification Object(string value) => New(value,
ClassificationTypeNames
.JsonObject);
21
public static FormattedClassification PropertyName(string value) => New(value,
ClassificationTypeNames
.JsonPropertyName);
24
public static FormattedClassification Punctuation(string value) => New(value,
ClassificationTypeNames
.JsonPunctuation);
27
public static FormattedClassification Number(string value) => New(value,
ClassificationTypeNames
.JsonNumber);
30
public static FormattedClassification Operator(string value) => New(value,
ClassificationTypeNames
.JsonOperator);
33
public static FormattedClassification Keyword(string value) => New(value,
ClassificationTypeNames
.JsonKeyword);
36
public static FormattedClassification ConstructorName(string value) => New(value,
ClassificationTypeNames
.JsonConstructorName);
39
public static FormattedClassification Comment(string value) => New(value,
ClassificationTypeNames
.JsonComment);
42
public static FormattedClassification Text(string value) => New(value,
ClassificationTypeNames
.JsonText);
45
public static FormattedClassification String(string value) => New(value,
ClassificationTypeNames
.JsonString);
Classification\FormattedClassifications.Operators.cs (1)
18
=> new(text,
ClassificationTypeNames
.Operator);
Classification\FormattedClassifications.OverloadedOperators.cs (1)
18
=> new(text,
ClassificationTypeNames
.OperatorOverloaded);
Classification\FormattedClassifications.Punctuation.cs (1)
18
=> new(text,
ClassificationTypeNames
.Punctuation);
Classification\FormattedClassifications.Regex.cs (9)
15
public static FormattedClassification Anchor(string value) => New(value,
ClassificationTypeNames
.RegexAnchor);
18
public static FormattedClassification Grouping(string value) => New(value,
ClassificationTypeNames
.RegexGrouping);
21
public static FormattedClassification OtherEscape(string value) => New(value,
ClassificationTypeNames
.RegexOtherEscape);
24
public static FormattedClassification SelfEscapedCharacter(string value) => New(value,
ClassificationTypeNames
.RegexSelfEscapedCharacter);
27
public static FormattedClassification Alternation(string value) => New(value,
ClassificationTypeNames
.RegexAlternation);
30
public static FormattedClassification CharacterClass(string value) => New(value,
ClassificationTypeNames
.RegexCharacterClass);
33
public static FormattedClassification Text(string value) => New(value,
ClassificationTypeNames
.RegexText);
36
public static FormattedClassification Quantifier(string value) => New(value,
ClassificationTypeNames
.RegexQuantifier);
39
public static FormattedClassification Comment(string value) => New(value,
ClassificationTypeNames
.RegexComment);
Classification\FormattedClassifications.XmlDoc.cs (10)
18
=> New(text,
ClassificationTypeNames
.XmlDocCommentAttributeName);
22
=> New(text,
ClassificationTypeNames
.XmlDocCommentAttributeQuotes);
26
=> New(text,
ClassificationTypeNames
.XmlDocCommentAttributeValue);
30
=> New(text,
ClassificationTypeNames
.XmlDocCommentCDataSection);
34
=> New(text,
ClassificationTypeNames
.XmlDocCommentComment);
38
=> New(text,
ClassificationTypeNames
.XmlDocCommentDelimiter);
42
=> New(text,
ClassificationTypeNames
.XmlDocCommentEntityReference);
46
=> New(text,
ClassificationTypeNames
.XmlDocCommentName);
50
=> New(text,
ClassificationTypeNames
.XmlDocCommentProcessingInstruction);
54
=> New(text,
ClassificationTypeNames
.XmlDocCommentText);
QuickInfo\ToolTipAssert.cs (2)
221
foreach (var field in typeof(
ClassificationTypeNames
).GetFields())
228
return $"{nameof(
ClassificationTypeNames
)}.{field.Name}";
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
Workspaces\ClassificationTypeNamesTests.cs (6)
21
=> typeof(
ClassificationTypeNames
)
25
public static IEnumerable<object[]> AllClassificationTypeNames => typeof(
ClassificationTypeNames
).GetAllFields().Where(
37
Assert.True(classificationType != null, $"{nameof(
ClassificationTypeNames
)}.{fieldName} has value \"{classificationTypeName}\", but no matching {nameof(ClassificationTypeDefinition)} was exported.");
42
=> Assert.True(
ClassificationTypeNames
.AllTypeNames.Contains(fieldName), $"Missing token type {fieldName}.");
46
=> Assert.Equal(
ClassificationTypeNames
.AllTypeNames.Distinct(),
ClassificationTypeNames
.AllTypeNames);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
Editor\Shared\Utilities\FSharpClassificationTypeMap.cs (2)
30
var fields = typeof(
ClassificationTypeNames
).GetFields();
51
return type ?? GetClassificationTypeWorker(
ClassificationTypeNames
.Text);
Microsoft.CodeAnalysis.Features (112)
ClassifiedSpansAndHighlightSpanFactory.cs (3)
83
new ClassifiedSpan(
ClassificationTypeNames
.Text, TextSpan.FromBounds(widenedSpan.Start, narrowSpan.Start)),
84
new ClassifiedSpan(
ClassificationTypeNames
.Text, narrowSpan),
85
new ClassifiedSpan(
ClassificationTypeNames
.Text, TextSpan.FromBounds(narrowSpan.End, widenedSpan.End)),
Common\TaggedText.cs (31)
152
TextTags.Keyword =>
ClassificationTypeNames
.Keyword,
153
TextTags.Class =>
ClassificationTypeNames
.ClassName,
154
TextTags.Delegate =>
ClassificationTypeNames
.DelegateName,
155
TextTags.Enum =>
ClassificationTypeNames
.EnumName,
156
TextTags.Interface =>
ClassificationTypeNames
.InterfaceName,
157
TextTags.Module =>
ClassificationTypeNames
.ModuleName,
158
TextTags.Struct =>
ClassificationTypeNames
.StructName,
159
TextTags.TypeParameter =>
ClassificationTypeNames
.TypeParameterName,
160
TextTags.Field =>
ClassificationTypeNames
.FieldName,
161
TextTags.Event =>
ClassificationTypeNames
.EventName,
162
TextTags.Label =>
ClassificationTypeNames
.LabelName,
163
TextTags.Local =>
ClassificationTypeNames
.LocalName,
164
TextTags.Method =>
ClassificationTypeNames
.MethodName,
165
TextTags.Namespace =>
ClassificationTypeNames
.NamespaceName,
166
TextTags.Parameter =>
ClassificationTypeNames
.ParameterName,
167
TextTags.Property =>
ClassificationTypeNames
.PropertyName,
168
TextTags.ExtensionMethod =>
ClassificationTypeNames
.ExtensionMethodName,
169
TextTags.EnumMember =>
ClassificationTypeNames
.EnumMemberName,
170
TextTags.Constant =>
ClassificationTypeNames
.ConstantName,
171
TextTags.Alias or TextTags.Assembly or TextTags.ErrorType or TextTags.RangeVariable =>
ClassificationTypeNames
.Identifier,
172
TextTags.NumericLiteral =>
ClassificationTypeNames
.NumericLiteral,
173
TextTags.StringLiteral =>
ClassificationTypeNames
.StringLiteral,
174
TextTags.Space or TextTags.LineBreak =>
ClassificationTypeNames
.WhiteSpace,
175
TextTags.Operator =>
ClassificationTypeNames
.Operator,
176
TextTags.Punctuation =>
ClassificationTypeNames
.Punctuation,
177
TextTags.AnonymousTypeIndicator or TextTags.Text =>
ClassificationTypeNames
.Text,
178
TextTags.Record =>
ClassificationTypeNames
.RecordClassName,
179
TextTags.RecordStruct =>
ClassificationTypeNames
.RecordStructName,
181
TextTags.ContainerStart or TextTags.ContainerEnd or TextTags.CodeBlockStart or TextTags.CodeBlockEnd =>
ClassificationTypeNames
.WhiteSpace,
208
if (classificationTypeName is
ClassificationTypeNames
.Punctuation or
209
ClassificationTypeNames
.WhiteSpace)
EmbeddedLanguages\Classification\AbstractFallbackEmbeddedLanguageClassifier.cs (1)
51
context.AddClassification(
ClassificationTypeNames
.StringEscapeCharacter, vc.Span);
EmbeddedLanguages\Json\LanguageServices\JsonClassifier.cs (17)
98
context.AddClassification(
ClassificationTypeNames
.JsonPunctuation, token.GetSpan());
112
context.AddClassification(
ClassificationTypeNames
.JsonComment, GetSpan(trivia.VirtualChars));
133
AddClassification(node.OpenBracketToken,
ClassificationTypeNames
.JsonArray);
134
AddClassification(node.CloseBracketToken,
ClassificationTypeNames
.JsonArray);
139
AddClassification(node.OpenBraceToken,
ClassificationTypeNames
.JsonObject);
140
AddClassification(node.CloseBraceToken,
ClassificationTypeNames
.JsonObject);
145
AddClassification(node.NameToken,
ClassificationTypeNames
.JsonPropertyName);
146
AddClassification(node.ColonToken,
ClassificationTypeNames
.JsonPunctuation);
151
AddClassification(node.NewKeyword,
ClassificationTypeNames
.JsonKeyword);
152
AddClassification(node.NameToken,
ClassificationTypeNames
.JsonConstructorName);
153
AddClassification(node.OpenParenToken,
ClassificationTypeNames
.JsonPunctuation);
154
AddClassification(node.CloseParenToken,
ClassificationTypeNames
.JsonPunctuation);
165
AddClassification(literalToken,
ClassificationTypeNames
.JsonNumber);
169
AddClassification(literalToken,
ClassificationTypeNames
.JsonString);
178
AddClassification(literalToken,
ClassificationTypeNames
.JsonKeyword);
182
AddClassification(literalToken,
ClassificationTypeNames
.JsonText);
189
AddClassification(node.MinusToken,
ClassificationTypeNames
.JsonOperator);
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexClassifier.cs (38)
100
context.AddClassification(
ClassificationTypeNames
.RegexComment, GetSpan(trivia.VirtualChars));
142
=> AddClassification(node.DotToken,
ClassificationTypeNames
.RegexCharacterClass);
146
AddClassification(node.OpenBracketToken,
ClassificationTypeNames
.RegexCharacterClass);
147
AddClassification(node.CloseBracketToken,
ClassificationTypeNames
.RegexCharacterClass);
152
AddClassification(node.OpenBracketToken,
ClassificationTypeNames
.RegexCharacterClass);
153
AddClassification(node.CaretToken,
ClassificationTypeNames
.RegexCharacterClass);
154
AddClassification(node.CloseBracketToken,
ClassificationTypeNames
.RegexCharacterClass);
158
=> AddClassification(node.MinusToken,
ClassificationTypeNames
.RegexCharacterClass);
161
=> AddClassification(node.MinusToken,
ClassificationTypeNames
.RegexCharacterClass);
164
=> ClassifyWholeNode(node,
ClassificationTypeNames
.RegexCharacterClass);
167
=> ClassifyWholeNode(node,
ClassificationTypeNames
.RegexCharacterClass);
174
=> AddClassification(node.AsteriskToken,
ClassificationTypeNames
.RegexQuantifier);
177
=> AddClassification(node.PlusToken,
ClassificationTypeNames
.RegexQuantifier);
180
=> AddClassification(node.QuestionToken,
ClassificationTypeNames
.RegexQuantifier);
183
=> AddClassification(node.QuestionToken,
ClassificationTypeNames
.RegexQuantifier);
187
AddClassification(node.OpenBraceToken,
ClassificationTypeNames
.RegexQuantifier);
188
AddClassification(node.FirstNumberToken,
ClassificationTypeNames
.RegexQuantifier);
189
AddClassification(node.CloseBraceToken,
ClassificationTypeNames
.RegexQuantifier);
194
AddClassification(node.OpenBraceToken,
ClassificationTypeNames
.RegexQuantifier);
195
AddClassification(node.FirstNumberToken,
ClassificationTypeNames
.RegexQuantifier);
196
AddClassification(node.CommaToken,
ClassificationTypeNames
.RegexQuantifier);
197
AddClassification(node.CloseBraceToken,
ClassificationTypeNames
.RegexQuantifier);
202
AddClassification(node.OpenBraceToken,
ClassificationTypeNames
.RegexQuantifier);
203
AddClassification(node.FirstNumberToken,
ClassificationTypeNames
.RegexQuantifier);
204
AddClassification(node.CommaToken,
ClassificationTypeNames
.RegexQuantifier);
205
AddClassification(node.SecondNumberToken,
ClassificationTypeNames
.RegexQuantifier);
206
AddClassification(node.CloseBraceToken,
ClassificationTypeNames
.RegexQuantifier);
254
=> ClassifyWholeNode(node,
ClassificationTypeNames
.RegexGrouping);
257
=> ClassifyWholeNode(node,
ClassificationTypeNames
.RegexGrouping);
260
=> ClassifyWholeNode(node,
ClassificationTypeNames
.RegexGrouping);
268
AddClassification(child.Token,
ClassificationTypeNames
.RegexGrouping);
290
=> ClassifyWholeNode(node,
ClassificationTypeNames
.RegexOtherEscape);
297
=> AddClassification(node.AnchorToken,
ClassificationTypeNames
.RegexAnchor);
300
=> ClassifyWholeNode(node,
ClassificationTypeNames
.RegexAnchor);
305
=> AddClassification(node.TextToken,
ClassificationTypeNames
.RegexText);
310
AddClassification(node.SequenceList.NodesAndTokens[i].Token,
ClassificationTypeNames
.RegexAlternation);
315
?
ClassificationTypeNames
.RegexSelfEscapedCharacter
316
:
ClassificationTypeNames
.RegexOtherEscape);
QuickInfo\Presentation\QuickInfoContentBuilder.cs (1)
150
ClassificationTypeNames
.WhiteSpace,
QuickInfo\Presentation\TaggedTextExtensions.cs (1)
238
=> new(
ClassificationTypeNames
.Text, text);
SpellCheck\AbstractSpellCheckSpanService.cs (20)
216
case
ClassificationTypeNames
.ClassName:
217
case
ClassificationTypeNames
.RecordClassName:
218
case
ClassificationTypeNames
.DelegateName:
219
case
ClassificationTypeNames
.EnumName:
220
case
ClassificationTypeNames
.InterfaceName:
221
case
ClassificationTypeNames
.ModuleName:
222
case
ClassificationTypeNames
.StructName:
223
case
ClassificationTypeNames
.RecordStructName:
224
case
ClassificationTypeNames
.TypeParameterName:
225
case
ClassificationTypeNames
.FieldName:
226
case
ClassificationTypeNames
.EnumMemberName:
227
case
ClassificationTypeNames
.ConstantName:
228
case
ClassificationTypeNames
.LocalName:
229
case
ClassificationTypeNames
.ParameterName:
230
case
ClassificationTypeNames
.MethodName:
231
case
ClassificationTypeNames
.ExtensionMethodName:
232
case
ClassificationTypeNames
.PropertyName:
233
case
ClassificationTypeNames
.EventName:
234
case
ClassificationTypeNames
.NamespaceName:
235
case
ClassificationTypeNames
.LabelName:
Microsoft.CodeAnalysis.LanguageServer.Protocol (89)
Handler\SemanticTokens\CustomLspSemanticTokenNames.cs (59)
12
/// Maps <see cref="
ClassificationTypeNames
"/> to LSP compatible semantic token names.
86
[
ClassificationTypeNames
.ExcludedCode] = ExcludedCode,
87
[
ClassificationTypeNames
.ControlKeyword] = KeywordControl,
88
[
ClassificationTypeNames
.OperatorOverloaded] = OperatorOverloaded,
89
[
ClassificationTypeNames
.WhiteSpace] = Whitespace,
90
[
ClassificationTypeNames
.Text] = Text,
91
[
ClassificationTypeNames
.PreprocessorText] = PreprocessorText,
92
[
ClassificationTypeNames
.Punctuation] = Punctuation,
93
[
ClassificationTypeNames
.VerbatimStringLiteral] = StringVerbatim,
94
[
ClassificationTypeNames
.StringEscapeCharacter] = StringEscapeCharacter,
95
[
ClassificationTypeNames
.RecordClassName] = RecordClassName,
96
[
ClassificationTypeNames
.DelegateName] = DelegateName,
97
[
ClassificationTypeNames
.ModuleName] = ModuleName,
98
[
ClassificationTypeNames
.RecordStructName] = RecordStructName,
99
[
ClassificationTypeNames
.FieldName] = FieldName,
100
[
ClassificationTypeNames
.ConstantName] = ConstantName,
101
[
ClassificationTypeNames
.ExtensionMethodName] = ExtensionMethodName,
103
[
ClassificationTypeNames
.XmlDocCommentAttributeName] = XmlDocCommentAttributeName,
104
[
ClassificationTypeNames
.XmlDocCommentAttributeQuotes] = XmlDocCommentAttributeQuotes,
105
[
ClassificationTypeNames
.XmlDocCommentAttributeValue] = XmlDocCommentAttributeValue,
106
[
ClassificationTypeNames
.XmlDocCommentCDataSection] = XmlDocCommentCDataSection,
107
[
ClassificationTypeNames
.XmlDocCommentComment] = XmlDocCommentComment,
108
[
ClassificationTypeNames
.XmlDocCommentDelimiter] = XmlDocCommentDelimiter,
109
[
ClassificationTypeNames
.XmlDocCommentEntityReference] = XmlDocCommentEntityReference,
110
[
ClassificationTypeNames
.XmlDocCommentName] = XmlDocCommentName,
111
[
ClassificationTypeNames
.XmlDocCommentProcessingInstruction] = XmlDocCommentProcessingInstruction,
112
[
ClassificationTypeNames
.XmlDocCommentText] = XmlDocCommentText,
114
[
ClassificationTypeNames
.XmlLiteralAttributeName] = XmlLiteralAttributeName,
115
[
ClassificationTypeNames
.XmlLiteralAttributeQuotes] = XmlLiteralAttributeQuotes,
116
[
ClassificationTypeNames
.XmlLiteralAttributeValue] = XmlLiteralAttributeValue,
117
[
ClassificationTypeNames
.XmlLiteralCDataSection] = XmlLiteralCDataSection,
118
[
ClassificationTypeNames
.XmlLiteralComment] = XmlLiteralComment,
119
[
ClassificationTypeNames
.XmlLiteralDelimiter] = XmlLiteralDelimiter,
120
[
ClassificationTypeNames
.XmlLiteralEmbeddedExpression] = XmlLiteralEmbeddedExpression,
121
[
ClassificationTypeNames
.XmlLiteralEntityReference] = XmlLiteralEntityReference,
122
[
ClassificationTypeNames
.XmlLiteralName] = XmlLiteralName,
123
[
ClassificationTypeNames
.XmlLiteralProcessingInstruction] = XmlLiteralProcessingInstruction,
124
[
ClassificationTypeNames
.XmlLiteralText] = XmlLiteralText,
126
[
ClassificationTypeNames
.RegexComment] = RegexComment,
127
[
ClassificationTypeNames
.RegexCharacterClass] = RegexCharacterClass,
128
[
ClassificationTypeNames
.RegexAnchor] = RegexAnchor,
129
[
ClassificationTypeNames
.RegexQuantifier] = RegexQuantifier,
130
[
ClassificationTypeNames
.RegexGrouping] = RegexGrouping,
131
[
ClassificationTypeNames
.RegexAlternation] = RegexAlternation,
132
[
ClassificationTypeNames
.RegexText] = RegexText,
133
[
ClassificationTypeNames
.RegexSelfEscapedCharacter] = RegexSelfEscapedCharacter,
134
[
ClassificationTypeNames
.RegexOtherEscape] = RegexOtherEscape,
136
[
ClassificationTypeNames
.JsonComment] = JsonComment,
137
[
ClassificationTypeNames
.JsonNumber] = JsonNumber,
138
[
ClassificationTypeNames
.JsonString] = JsonString,
139
[
ClassificationTypeNames
.JsonKeyword] = JsonKeyword,
140
[
ClassificationTypeNames
.JsonText] = JsonText,
141
[
ClassificationTypeNames
.JsonOperator] = JsonOperator,
142
[
ClassificationTypeNames
.JsonPunctuation] = JsonPunctuation,
143
[
ClassificationTypeNames
.JsonArray] = JsonArray,
144
[
ClassificationTypeNames
.JsonObject] = JsonObject,
145
[
ClassificationTypeNames
.JsonPropertyName] = JsonPropertyName,
146
[
ClassificationTypeNames
.JsonConstructorName] = JsonConstructorName,
148
[
ClassificationTypeNames
.TestCodeMarkdown] = TestCodeMarkdown,
Handler\SemanticTokens\SemanticTokensHelpers.cs (1)
142
if (s.ClassificationType ==
ClassificationTypeNames
.Text)
Handler\SemanticTokens\SemanticTokensSchema.cs (29)
25
[
ClassificationTypeNames
.Comment] = SemanticTokenTypes.Comment,
26
[
ClassificationTypeNames
.Identifier] = SemanticTokenTypes.Variable,
27
[
ClassificationTypeNames
.Keyword] = SemanticTokenTypes.Keyword,
28
[
ClassificationTypeNames
.NumericLiteral] = SemanticTokenTypes.Number,
29
[
ClassificationTypeNames
.Operator] = SemanticTokenTypes.Operator,
30
[
ClassificationTypeNames
.StringLiteral] = SemanticTokenTypes.String,
40
[
ClassificationTypeNames
.ClassName] = SemanticTokenTypes.Class,
41
[
ClassificationTypeNames
.StructName] = SemanticTokenTypes.Struct,
42
[
ClassificationTypeNames
.NamespaceName] = SemanticTokenTypes.Namespace,
43
[
ClassificationTypeNames
.EnumName] = SemanticTokenTypes.Enum,
44
[
ClassificationTypeNames
.InterfaceName] = SemanticTokenTypes.Interface,
45
[
ClassificationTypeNames
.TypeParameterName] = SemanticTokenTypes.TypeParameter,
46
[
ClassificationTypeNames
.ParameterName] = SemanticTokenTypes.Parameter,
47
[
ClassificationTypeNames
.LocalName] = SemanticTokenTypes.Variable,
48
[
ClassificationTypeNames
.PropertyName] = SemanticTokenTypes.Property,
49
[
ClassificationTypeNames
.MethodName] = SemanticTokenTypes.Method,
50
[
ClassificationTypeNames
.EnumMemberName] = SemanticTokenTypes.EnumMember,
51
[
ClassificationTypeNames
.EventName] = SemanticTokenTypes.Event,
52
[
ClassificationTypeNames
.PreprocessorKeyword] = SemanticTokenTypes.Macro,
54
[
ClassificationTypeNames
.LabelName] = "label",
61
private static readonly SemanticTokensSchema s_vsTokenSchema = new(
ClassificationTypeNames
.AllTypeNames
62
.Where(classificationTypeName => !
ClassificationTypeNames
.AdditiveTypeNames.Contains(classificationTypeName))
72
private static readonly SemanticTokensSchema s_pureLspTokenSchema = new(
ClassificationTypeNames
.AllTypeNames
73
.Where(classificationTypeName => !
ClassificationTypeNames
.AdditiveTypeNames.Contains(classificationTypeName))
83
[
ClassificationTypeNames
.StaticSymbol] = SemanticTokens.TokenModifiers.Static,
84
[
ClassificationTypeNames
.ReassignedVariable] = SemanticTokens.TokenModifiers.ReassignedVariable,
85
[
ClassificationTypeNames
.ObsoleteSymbol] = SemanticTokens.TokenModifiers.Deprecated,
86
[
ClassificationTypeNames
.TestCode] = SemanticTokens.TokenModifiers.None,
90
/// Mapping from roslyn <see cref="
ClassificationTypeNames
"/> to the LSP token name. This is either a standard
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (138)
SemanticTokens\SemanticTokensFullTests.cs (5)
45
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], (int)TokenModifiers.Static, // 'C'
46
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
47
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
59
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
60
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
SemanticTokens\SemanticTokensRangesTests.cs (5)
45
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], (int)TokenModifiers.Static, // 'C'
46
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
47
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
59
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
60
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
SemanticTokens\SemanticTokensRangeTests.cs (127)
49
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], (int)TokenModifiers.Static, // 'C'
50
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
51
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
63
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
64
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
139
12, 0, 3, tokenTypeToIndex[
ClassificationTypeNames
.Keyword], 0, // 'var'
140
0, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.LocalName], 0, // 'z'
143
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ';'
144
17, 3, 3, tokenTypeToIndex[
ClassificationTypeNames
.Keyword], 0, // 'var'
145
0, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.LocalName], 0, // 'x'
158
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ';'
197
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], (int)TokenModifiers.Static, // 'C'
198
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
199
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
210
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
211
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
248
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], 0, // 'C'
249
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
253
0, 9, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
263
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
267
0, 9, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
309
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], 0, // 'C'
310
1, 0, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
312
0, 5, 1, tokenTypeToIndex[
ClassificationTypeNames
.MethodName], 0, // 'M'
313
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '('
314
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ')'
315
1, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
316
1, 8, 3, tokenTypeToIndex[
ClassificationTypeNames
.Keyword], 0, // 'var'
317
0, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.LocalName], 0, // 'x'
319
0, 2, 5, tokenTypeToIndex[
ClassificationTypeNames
.VerbatimStringLiteral], 0, // '@"one'
320
1, 0, 4, tokenTypeToIndex[
ClassificationTypeNames
.VerbatimStringLiteral], 0, // 'two '
321
0, 4, 2, tokenTypeToIndex[
ClassificationTypeNames
.StringEscapeCharacter], 0, // '""'
322
1, 0, 6, tokenTypeToIndex[
ClassificationTypeNames
.VerbatimStringLiteral], 0, // 'three"'
323
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ';'
324
1, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
325
1, 0, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
348
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ';'
349
1, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
350
1, 0, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
392
0, 6, 6, tokenTypeToIndex[
ClassificationTypeNames
.NamespaceName], 0, // 'System'
394
0, 1, 4, tokenTypeToIndex[
ClassificationTypeNames
.NamespaceName], 0, // 'Text'
396
0, 1, 18, tokenTypeToIndex[
ClassificationTypeNames
.NamespaceName], 0, // 'RegularExpressions'
397
0, 18, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ';'
399
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], 0, // 'C'
400
1, 0, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
402
0, 5, 1, tokenTypeToIndex[
ClassificationTypeNames
.MethodName], 0, // 'M'
403
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '('
404
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ')'
405
1, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
406
1, 2, 3, tokenTypeToIndex[
ClassificationTypeNames
.Keyword], 0, // 'var'
407
0, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.LocalName], 0, // 'x'
410
0, 4, 5, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], 0, // 'Regex'
411
0, 5, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '('
413
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.RegexGrouping], 0, // '('
414
0, 1, 3, tokenTypeToIndex[
ClassificationTypeNames
.RegexText], 0, // 'abc'
415
0, 3, 1, tokenTypeToIndex[
ClassificationTypeNames
.RegexGrouping], 0, // ')'
416
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.RegexQuantifier], 0, // '*'
418
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ')'
419
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ';'
420
1, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // }
421
1, 0, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // }
504
0, 6, 6, tokenTypeToIndex[
ClassificationTypeNames
.NamespaceName], 0, // 'System'
506
0, 1, 4, tokenTypeToIndex[
ClassificationTypeNames
.NamespaceName], 0, // 'Text'
508
0, 1, 18, tokenTypeToIndex[
ClassificationTypeNames
.NamespaceName], 0, // 'RegularExpressions'
509
0, 18, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ';'
511
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], 0, // 'C'
512
1, 0, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
514
0, 5, 1, tokenTypeToIndex[
ClassificationTypeNames
.MethodName], 0, // 'M'
515
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '('
516
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ')'
517
1, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
518
1, 2, 3, tokenTypeToIndex[
ClassificationTypeNames
.Keyword], 0, // 'var'
519
0, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.LocalName], 0, // 'x'
522
0, 4, 5, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], 0, // 'Regex'
523
0, 5, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '('
524
0, 1, 2, tokenTypeToIndex[
ClassificationTypeNames
.VerbatimStringLiteral], 0, // '@"'
525
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.RegexGrouping], 0, // '('
526
0, 1, 3, tokenTypeToIndex[
ClassificationTypeNames
.RegexText], 0, // 'abc'
527
0, 3, 1, tokenTypeToIndex[
ClassificationTypeNames
.RegexGrouping], 0, // ')'
528
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.RegexQuantifier], 0, // '*'
529
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.VerbatimStringLiteral], 0, // ' '
530
0, 1, 9, tokenTypeToIndex[
ClassificationTypeNames
.RegexComment], 0, // '#comment'
531
1, 0, 27, tokenTypeToIndex[
ClassificationTypeNames
.VerbatimStringLiteral], 0, // '"'
532
0, 27, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ','
533
0, 2, 12, tokenTypeToIndex[
ClassificationTypeNames
.EnumName], 0, // 'RegexOptions'
535
0, 1, 23, tokenTypeToIndex[
ClassificationTypeNames
.EnumMemberName], 0, // 'IgnorePatternWhitespace'
536
0, 23, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ')'
537
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ';'
538
1, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // }
539
1, 0, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // }
597
var expectedNames =
ClassificationTypeNames
.AllTypeNames.Where(s => !
ClassificationTypeNames
.AdditiveTypeNames.Contains(s));
642
0, 7, 4, tokenTypeToIndex[
ClassificationTypeNames
.ConstantName], 1,
644
0, 2, 2, tokenTypeToIndex[
ClassificationTypeNames
.VerbatimStringLiteral], 0,
646
0, 5, 1, tokenTypeToIndex[
ClassificationTypeNames
.VerbatimStringLiteral], 0,
647
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], 0,
648
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.VerbatimStringLiteral], 0,
649
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0,
650
1, 0, 12, tokenTypeToIndex[
ClassificationTypeNames
.VerbatimStringLiteral], 0,
652
1, 0, 8, tokenTypeToIndex[
ClassificationTypeNames
.VerbatimStringLiteral], 0,
653
0, 8, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0,
654
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.VerbatimStringLiteral], 0,
655
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0,
725
0, 1, 6, tokenTypeToIndex[
ClassificationTypeNames
.NamespaceName], 0,
726
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0,
730
0, 1, 4, tokenTypeToIndex[
ClassificationTypeNames
.NamespaceName], 0,
731
0, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0,
737
0, 1, 7, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], 0,
739
0, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0,
747
0, 1, 4, tokenTypeToIndex[
ClassificationTypeNames
.MethodName], 1,
748
0, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0,
750
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0,
751
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0,
753
0, 1, 4, tokenTypeToIndex[
ClassificationTypeNames
.ParameterName], 0,
754
0, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0,
756
0, 8, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0,
758
0, 12, 6, tokenTypeToIndex[
ClassificationTypeNames
.ControlKeyword], 0,
759
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0,
761
0, 8, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0,
763
0, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0,
769
0, 1, 6, tokenTypeToIndex[
ClassificationTypeNames
.StructName], 0,
771
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0,
772
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0,
778
0, 1, 4, tokenTypeToIndex[
ClassificationTypeNames
.InterfaceName], 0,
780
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0,
781
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0,
783
0, 7, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0,
SemanticTokens\SemanticTokensSchemaTests.cs (1)
16
foreach (var additiveClassification in
ClassificationTypeNames
.AdditiveTypeNames)
Microsoft.CodeAnalysis.Workspaces (44)
Classification\AbstractClassificationService.cs (2)
158
result.Add(new ClassifiedSpan(span,
ClassificationTypeNames
.ReassignedVariable));
166
result.Add(new ClassifiedSpan(span,
ClassificationTypeNames
.ObsoleteSymbol));
Classification\ClassificationExtensions.cs (10)
12
TypeKind.Class => type.IsRecord ?
ClassificationTypeNames
.RecordClassName :
ClassificationTypeNames
.ClassName,
13
TypeKind.Module =>
ClassificationTypeNames
.ModuleName,
14
TypeKind.Struct => type.IsRecord ?
ClassificationTypeNames
.RecordStructName :
ClassificationTypeNames
.StructName,
15
TypeKind.Interface =>
ClassificationTypeNames
.InterfaceName,
16
TypeKind.Enum =>
ClassificationTypeNames
.EnumName,
17
TypeKind.Delegate =>
ClassificationTypeNames
.DelegateName,
18
TypeKind.TypeParameter =>
ClassificationTypeNames
.TypeParameterName,
19
TypeKind.Dynamic =>
ClassificationTypeNames
.Keyword,
Classification\Classifier.cs (27)
156
ClassificationTypeNames
.Identifier => SymbolDisplayPartKind.Text,
157
ClassificationTypeNames
.Keyword => SymbolDisplayPartKind.Keyword,
158
ClassificationTypeNames
.NumericLiteral => SymbolDisplayPartKind.NumericLiteral,
159
ClassificationTypeNames
.StringLiteral => SymbolDisplayPartKind.StringLiteral,
160
ClassificationTypeNames
.WhiteSpace => SymbolDisplayPartKind.Space,
161
ClassificationTypeNames
.Operator => SymbolDisplayPartKind.Operator,
162
ClassificationTypeNames
.Punctuation => SymbolDisplayPartKind.Punctuation,
163
ClassificationTypeNames
.ClassName => SymbolDisplayPartKind.ClassName,
164
ClassificationTypeNames
.RecordClassName => SymbolDisplayPartKind.RecordClassName,
165
ClassificationTypeNames
.StructName => SymbolDisplayPartKind.StructName,
166
ClassificationTypeNames
.InterfaceName => SymbolDisplayPartKind.InterfaceName,
167
ClassificationTypeNames
.DelegateName => SymbolDisplayPartKind.DelegateName,
168
ClassificationTypeNames
.EnumName => SymbolDisplayPartKind.EnumName,
169
ClassificationTypeNames
.TypeParameterName => SymbolDisplayPartKind.TypeParameterName,
170
ClassificationTypeNames
.ModuleName => SymbolDisplayPartKind.ModuleName,
171
ClassificationTypeNames
.VerbatimStringLiteral => SymbolDisplayPartKind.StringLiteral,
172
ClassificationTypeNames
.FieldName => SymbolDisplayPartKind.FieldName,
173
ClassificationTypeNames
.EnumMemberName => SymbolDisplayPartKind.EnumMemberName,
174
ClassificationTypeNames
.ConstantName => SymbolDisplayPartKind.ConstantName,
175
ClassificationTypeNames
.LocalName => SymbolDisplayPartKind.LocalName,
176
ClassificationTypeNames
.ParameterName => SymbolDisplayPartKind.ParameterName,
177
ClassificationTypeNames
.ExtensionMethodName => SymbolDisplayPartKind.ExtensionMethodName,
178
ClassificationTypeNames
.MethodName => SymbolDisplayPartKind.MethodName,
179
ClassificationTypeNames
.PropertyName => SymbolDisplayPartKind.PropertyName,
180
ClassificationTypeNames
.LabelName => SymbolDisplayPartKind.LabelName,
181
ClassificationTypeNames
.NamespaceName => SymbolDisplayPartKind.NamespaceName,
182
ClassificationTypeNames
.EventName => SymbolDisplayPartKind.EventName,
Classification\ClassifierHelper.cs (4)
106
if (
ClassificationTypeNames
.AdditiveTypeNames.Contains(span.ClassificationType))
174
ClassificationTypeNames
.AdditiveTypeNames.Contains(span.ClassificationType) ||
ClassificationTypeNames
.AdditiveTypeNames.Contains(previousSpan.ClassificationType);
205
result.Add(new ClassifiedSpan(
ClassificationTypeNames
.Text,
Classification\SyntaxClassification\AbstractNameSyntaxClassifier.cs (1)
35
result.Add(new ClassifiedSpan(span,
ClassificationTypeNames
.StaticSymbol));
Microsoft.VisualStudio.LanguageServices (87)
FindReferences\Entries\DocumentSpanEntry.cs (1)
122
cs => !
ClassificationTypeNames
.AdditiveTypeNames.Contains(cs.ClassificationType));
HACK_ThemeColorFixer.cs (76)
68
DeprioritizeStringClassification(textFormatMap,
ClassificationTypeNames
.StringLiteral);
69
DeprioritizeStringClassification(tooltipFormatMap,
ClassificationTypeNames
.StringLiteral);
70
DeprioritizeStringClassification(textFormatMap,
ClassificationTypeNames
.VerbatimStringLiteral);
71
DeprioritizeStringClassification(tooltipFormatMap,
ClassificationTypeNames
.VerbatimStringLiteral);
115
UpdateForegroundColor(
ClassificationTypeNames
.Comment, sourceFormatMap, targetFormatMap);
116
UpdateForegroundColor(
ClassificationTypeNames
.ExcludedCode, sourceFormatMap, targetFormatMap);
117
UpdateForegroundColor(
ClassificationTypeNames
.Identifier, sourceFormatMap, targetFormatMap);
118
UpdateForegroundColor(
ClassificationTypeNames
.Keyword, sourceFormatMap, targetFormatMap);
119
UpdateForegroundColor(
ClassificationTypeNames
.ControlKeyword, sourceFormatMap, targetFormatMap);
120
UpdateForegroundColor(
ClassificationTypeNames
.NumericLiteral, sourceFormatMap, targetFormatMap);
121
UpdateForegroundColor(
ClassificationTypeNames
.StringLiteral, sourceFormatMap, targetFormatMap);
123
UpdateForegroundColor(
ClassificationTypeNames
.VerbatimStringLiteral, sourceFormatMap, targetFormatMap);
124
UpdateForegroundColor(
ClassificationTypeNames
.StringEscapeCharacter, sourceFormatMap, targetFormatMap);
126
UpdateForegroundColor(
ClassificationTypeNames
.XmlDocCommentAttributeName, sourceFormatMap, targetFormatMap);
127
UpdateForegroundColor(
ClassificationTypeNames
.XmlDocCommentAttributeQuotes, sourceFormatMap, targetFormatMap);
128
UpdateForegroundColor(
ClassificationTypeNames
.XmlDocCommentAttributeValue, sourceFormatMap, targetFormatMap);
129
UpdateForegroundColor(
ClassificationTypeNames
.XmlDocCommentText, sourceFormatMap, targetFormatMap);
130
UpdateForegroundColor(
ClassificationTypeNames
.XmlDocCommentDelimiter, sourceFormatMap, targetFormatMap);
131
UpdateForegroundColor(
ClassificationTypeNames
.XmlDocCommentComment, sourceFormatMap, targetFormatMap);
132
UpdateForegroundColor(
ClassificationTypeNames
.XmlDocCommentCDataSection, sourceFormatMap, targetFormatMap);
134
UpdateForegroundColor(
ClassificationTypeNames
.RegexComment, sourceFormatMap, targetFormatMap);
135
UpdateForegroundColor(
ClassificationTypeNames
.RegexText, sourceFormatMap, targetFormatMap);
136
UpdateForegroundColor(
ClassificationTypeNames
.RegexCharacterClass, sourceFormatMap, targetFormatMap);
137
UpdateForegroundColor(
ClassificationTypeNames
.RegexQuantifier, sourceFormatMap, targetFormatMap);
138
UpdateForegroundColor(
ClassificationTypeNames
.RegexAnchor, sourceFormatMap, targetFormatMap);
139
UpdateForegroundColor(
ClassificationTypeNames
.RegexAlternation, sourceFormatMap, targetFormatMap);
140
UpdateForegroundColor(
ClassificationTypeNames
.RegexGrouping, sourceFormatMap, targetFormatMap);
141
UpdateForegroundColor(
ClassificationTypeNames
.RegexOtherEscape, sourceFormatMap, targetFormatMap);
142
UpdateForegroundColor(
ClassificationTypeNames
.RegexSelfEscapedCharacter, sourceFormatMap, targetFormatMap);
144
UpdateForegroundColor(
ClassificationTypeNames
.JsonComment, sourceFormatMap, targetFormatMap);
145
UpdateForegroundColor(
ClassificationTypeNames
.JsonNumber, sourceFormatMap, targetFormatMap);
146
UpdateForegroundColor(
ClassificationTypeNames
.JsonString, sourceFormatMap, targetFormatMap);
147
UpdateForegroundColor(
ClassificationTypeNames
.JsonKeyword, sourceFormatMap, targetFormatMap);
148
UpdateForegroundColor(
ClassificationTypeNames
.JsonText, sourceFormatMap, targetFormatMap);
149
UpdateForegroundColor(
ClassificationTypeNames
.JsonOperator, sourceFormatMap, targetFormatMap);
150
UpdateForegroundColor(
ClassificationTypeNames
.JsonArray, sourceFormatMap, targetFormatMap);
151
UpdateForegroundColor(
ClassificationTypeNames
.JsonObject, sourceFormatMap, targetFormatMap);
152
UpdateForegroundColor(
ClassificationTypeNames
.JsonPropertyName, sourceFormatMap, targetFormatMap);
153
UpdateForegroundColor(
ClassificationTypeNames
.JsonConstructorName, sourceFormatMap, targetFormatMap);
155
UpdateForegroundColor(
ClassificationTypeNames
.PreprocessorKeyword, sourceFormatMap, targetFormatMap);
156
UpdateForegroundColor(
ClassificationTypeNames
.PreprocessorText, sourceFormatMap, targetFormatMap);
158
UpdateForegroundColor(
ClassificationTypeNames
.Operator, sourceFormatMap, targetFormatMap);
159
UpdateForegroundColor(
ClassificationTypeNames
.OperatorOverloaded, sourceFormatMap, targetFormatMap);
160
UpdateForegroundColor(
ClassificationTypeNames
.Punctuation, sourceFormatMap, targetFormatMap);
162
UpdateForegroundColor(
ClassificationTypeNames
.ClassName, sourceFormatMap, targetFormatMap);
163
UpdateForegroundColor(
ClassificationTypeNames
.RecordClassName, sourceFormatMap, targetFormatMap);
164
UpdateForegroundColor(
ClassificationTypeNames
.StructName, sourceFormatMap, targetFormatMap);
165
UpdateForegroundColor(
ClassificationTypeNames
.InterfaceName, sourceFormatMap, targetFormatMap);
166
UpdateForegroundColor(
ClassificationTypeNames
.DelegateName, sourceFormatMap, targetFormatMap);
167
UpdateForegroundColor(
ClassificationTypeNames
.EnumName, sourceFormatMap, targetFormatMap);
168
UpdateForegroundColor(
ClassificationTypeNames
.TypeParameterName, sourceFormatMap, targetFormatMap);
169
UpdateForegroundColor(
ClassificationTypeNames
.ModuleName, sourceFormatMap, targetFormatMap);
171
UpdateForegroundColor(
ClassificationTypeNames
.FieldName, sourceFormatMap, targetFormatMap);
172
UpdateForegroundColor(
ClassificationTypeNames
.EnumMemberName, sourceFormatMap, targetFormatMap);
173
UpdateForegroundColor(
ClassificationTypeNames
.ConstantName, sourceFormatMap, targetFormatMap);
174
UpdateForegroundColor(
ClassificationTypeNames
.LocalName, sourceFormatMap, targetFormatMap);
175
UpdateForegroundColor(
ClassificationTypeNames
.ParameterName, sourceFormatMap, targetFormatMap);
176
UpdateForegroundColor(
ClassificationTypeNames
.MethodName, sourceFormatMap, targetFormatMap);
177
UpdateForegroundColor(
ClassificationTypeNames
.ExtensionMethodName, sourceFormatMap, targetFormatMap);
178
UpdateForegroundColor(
ClassificationTypeNames
.PropertyName, sourceFormatMap, targetFormatMap);
179
UpdateForegroundColor(
ClassificationTypeNames
.EventName, sourceFormatMap, targetFormatMap);
180
UpdateForegroundColor(
ClassificationTypeNames
.NamespaceName, sourceFormatMap, targetFormatMap);
181
UpdateForegroundColor(
ClassificationTypeNames
.LabelName, sourceFormatMap, targetFormatMap);
183
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralText, sourceFormatMap, targetFormatMap);
184
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralProcessingInstruction, sourceFormatMap, targetFormatMap);
185
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralName, sourceFormatMap, targetFormatMap);
186
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralEmbeddedExpression, sourceFormatMap, targetFormatMap);
187
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralDelimiter, sourceFormatMap, targetFormatMap);
188
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralComment, sourceFormatMap, targetFormatMap);
189
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralCDataSection, sourceFormatMap, targetFormatMap);
190
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralAttributeValue, sourceFormatMap, targetFormatMap);
191
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralAttributeQuotes, sourceFormatMap, targetFormatMap);
192
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralAttributeName, sourceFormatMap, targetFormatMap);
193
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralEntityReference, sourceFormatMap, targetFormatMap);
195
UpdateForegroundColor(
ClassificationTypeNames
.TestCode, sourceFormatMap, targetFormatMap);
196
UpdateForegroundColor(
ClassificationTypeNames
.TestCodeMarkdown, sourceFormatMap, targetFormatMap);
StackTraceExplorer\IgnoredFrameViewModel.cs (1)
28
var run = MakeClassifiedRun(
ClassificationTypeNames
.ExcludedCode, _frame.ToString());
StackTraceExplorer\StackFrameViewModel.cs (7)
143
yield return MakeClassifiedRun(
ClassificationTypeNames
.Text, CreateString(classLeadingTrivia));
151
classLink.Inlines.Add(MakeClassifiedRun(
ClassificationTypeNames
.ClassName, classLinkText));
174
methodLink.Inlines.Add(MakeClassifiedRun(
ClassificationTypeNames
.MethodName, methodTextBuilder.ToString()));
186
yield return MakeClassifiedRun(
ClassificationTypeNames
.Text, CreateString(leadingTrivia));
190
fileLink.Inlines.Add(MakeClassifiedRun(
ClassificationTypeNames
.Text, fileInformation.ToString()));
196
yield return MakeClassifiedRun(
ClassificationTypeNames
.Text, CreateString(trailingTrivia));
202
yield return MakeClassifiedRun(
ClassificationTypeNames
.Text, _frame.Root.EndOfLineToken.ToFullString());
Venus\ContainedDocument.DocumentServiceProvider.cs (2)
237
builder.Add(new ClassifiedSpan(new TextSpan(0, contentSpan.Length),
ClassificationTypeNames
.Text));
244
builder.Add(new ClassifiedSpan(new TextSpan(lastSpan.End, contentSpan.Length - lastSpan.End),
ClassificationTypeNames
.Text));