1760 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)
62
new ClassifiedTextRun(
ClassificationTypeNames
.MethodName, eventName, ClassifiedTextRunStyle.UseClassificationFont),
63
new ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ";", ClassifiedTextRunStyle.UseClassificationFont),
64
new ClassifiedTextRun(
ClassificationTypeNames
.Text, CSharpEditorResources.Press_TAB_to_insert),
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (35)
Classification\SemanticClassifierTests_TestMarkup.cs (2)
66
var nonTestCodeSpans = actual.Where(s => s.ClassificationType !=
ClassificationTypeNames
.TestCode).OrderBy((t1, t2) => t1.TextSpan.Start - t2.TextSpan.Start).ToImmutableArray();
67
var testCodeSpans = actual.Where(s => s.ClassificationType ==
ClassificationTypeNames
.TestCode).OrderBy((t1, t2) => t1.TextSpan.Start - t2.TextSpan.Start).ToImmutableArray();
Classification\SyntacticClassifierTests.cs (27)
6055
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(0, 3)),
6056
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentText, new TextSpan(3, 1)),
6057
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(4, 1)),
6058
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentName, new TextSpan(5, 5)),
6059
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentAttributeName, new TextSpan(11, 4)),
6060
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(15, 1)),
6061
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentAttributeQuotes, new TextSpan(16, 1)),
6062
new ClassifiedSpan(
ClassificationTypeNames
.Identifier, new TextSpan(17, 5)),
6063
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentAttributeQuotes, new TextSpan(22, 1)),
6064
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(23, 1)),
6065
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(24, 2)),
6066
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentName, new TextSpan(26, 5)),
6067
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(31, 1))
6085
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(2, 3)),
6086
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentText, new TextSpan(5, 1)),
6087
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(6, 1)),
6088
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentName, new TextSpan(7, 5)),
6089
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(14, 3)),
6090
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentAttributeName, new TextSpan(18, 4)),
6091
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(22, 1)),
6092
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentAttributeQuotes, new TextSpan(23, 1)),
6093
new ClassifiedSpan(
ClassificationTypeNames
.Identifier, new TextSpan(24, 5)),
6094
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentAttributeQuotes, new TextSpan(29, 1)),
6095
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(30, 1)),
6096
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(31, 2)),
6097
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentName, new TextSpan(33, 5)),
6098
new ClassifiedSpan(
ClassificationTypeNames
.XmlDocCommentDelimiter, new TextSpan(38, 1))
SignatureHelp\GenericNameSignatureHelpProviderTests.cs (6)
992
ClassificationTypeNames
.Text,
993
ClassificationTypeNames
.WhiteSpace,
994
ClassificationTypeNames
.WhiteSpace,
995
ClassificationTypeNames
.WhiteSpace,
996
ClassificationTypeNames
.Text,
997
ClassificationTypeNames
.WhiteSpace))
Microsoft.CodeAnalysis.CSharp.Features (3)
EmbeddedLanguages\CSharpTestEmbeddedLanguageClassifier.cs (3)
64
context.AddClassification(
ClassificationTypeNames
.TestCodeMarkdown, span);
86
ClassificationTypeNames
.TestCode,
96
ClassificationTypeNames
.TestCode,
Microsoft.CodeAnalysis.CSharp.Workspaces (175)
Classification\ClassificationHelpers.cs (47)
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;
208
return IsExtensionMethod(methodDeclaration) ?
ClassificationTypeNames
.ExtensionMethodName :
ClassificationTypeNames
.MethodName;
220
return
ClassificationTypeNames
.MethodName;
224
return
ClassificationTypeNames
.PropertyName;
228
return
ClassificationTypeNames
.EnumMemberName;
232
return
ClassificationTypeNames
.LocalName;
239
FieldDeclarationSyntax fieldDeclaration => fieldDeclaration.Modifiers.Any(SyntaxKind.ConstKeyword) ?
ClassificationTypeNames
.ConstantName :
ClassificationTypeNames
.FieldName,
240
LocalDeclarationStatementSyntax localDeclarationStatement => localDeclarationStatement.IsConst ?
ClassificationTypeNames
.ConstantName :
ClassificationTypeNames
.LocalName,
241
EventFieldDeclarationSyntax _ =>
ClassificationTypeNames
.EventName,
242
_ =>
ClassificationTypeNames
.LocalName,
247
return
ClassificationTypeNames
.LocalName;
251
return
ClassificationTypeNames
.ParameterName;
255
return
ClassificationTypeNames
.LocalName;
259
return
ClassificationTypeNames
.EventName;
263
return
ClassificationTypeNames
.Keyword;
267
return
ClassificationTypeNames
.NamespaceName;
271
return
ClassificationTypeNames
.NamespaceName;
275
return
ClassificationTypeNames
.LabelName;
279
return
ClassificationTypeNames
.Identifier;
286
SyntaxKind.ClassDeclaration =>
ClassificationTypeNames
.ClassName,
287
SyntaxKind.InterfaceDeclaration =>
ClassificationTypeNames
.InterfaceName,
288
SyntaxKind.RecordDeclaration =>
ClassificationTypeNames
.RecordClassName,
289
SyntaxKind.RecordStructDeclaration =>
ClassificationTypeNames
.RecordStructName,
290
SyntaxKind.StructDeclaration =>
ClassificationTypeNames
.StructName,
337
SyntaxKind.ClassDeclaration =>
ClassificationTypeNames
.ClassName,
338
SyntaxKind.EnumDeclaration =>
ClassificationTypeNames
.EnumName,
339
SyntaxKind.StructDeclaration =>
ClassificationTypeNames
.StructName,
340
SyntaxKind.InterfaceDeclaration =>
ClassificationTypeNames
.InterfaceName,
341
SyntaxKind.RecordDeclaration =>
ClassificationTypeNames
.RecordClassName,
342
SyntaxKind.RecordStructDeclaration =>
ClassificationTypeNames
.RecordStructName,
363
return
ClassificationTypeNames
.Punctuation;
375
return
ClassificationTypeNames
.Punctuation;
382
return
ClassificationTypeNames
.Operator;
386
return
ClassificationTypeNames
.Punctuation;
517
var wasKeyword = classificationType ==
ClassificationTypeNames
.Keyword;
518
var wasIdentifier = classificationType ==
ClassificationTypeNames
.Identifier;
553
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)
34
result.Add(new(
ClassificationTypeNames
.ClassName, callingConvention.Name.Span));
Classification\SyntaxClassification\NameSyntaxClassifier.cs (22)
79
if (classifiedSpan.ClassificationType !=
ClassificationTypeNames
.Keyword)
115
result.Add(new ClassifiedSpan(set.First().TextSpan,
ClassificationTypeNames
.StaticSymbol));
146
classifiedSpan = new ClassifiedSpan(name.Span,
ClassificationTypeNames
.NamespaceName);
154
classifiedSpan = new ClassifiedSpan(name.Span,
ClassificationTypeNames
.Keyword);
161
classifiedSpan = new ClassifiedSpan(name.Span,
ClassificationTypeNames
.Keyword);
169
classifiedSpan = new ClassifiedSpan(name.Span,
ClassificationTypeNames
.Keyword);
176
classifiedSpan = new ClassifiedSpan(name.Span,
ClassificationTypeNames
.Keyword);
205
classifiedSpan = new ClassifiedSpan(token.Span,
ClassificationTypeNames
.PropertyName);
209
classifiedSpan = new ClassifiedSpan(token.Span,
ClassificationTypeNames
.EventName);
218
classifiedSpan = new ClassifiedSpan(token.Span,
ClassificationTypeNames
.ParameterName);
226
classifiedSpan = new ClassifiedSpan(token.Span,
ClassificationTypeNames
.LabelName);
238
return fieldSymbol.ContainingType.IsEnumType() ?
ClassificationTypeNames
.EnumMemberName :
ClassificationTypeNames
.ConstantName;
241
return
ClassificationTypeNames
.FieldName;
247
?
ClassificationTypeNames
.ConstantName
248
:
ClassificationTypeNames
.LocalName;
258
return methodSymbol.ContainingType?.GetClassification() ??
ClassificationTypeNames
.MethodName;
265
?
ClassificationTypeNames
.ExtensionMethodName
266
:
ClassificationTypeNames
.MethodName;
294
result.Add(new ClassifiedSpan(token.Span,
ClassificationTypeNames
.Keyword));
309
result.Add(new ClassifiedSpan(name.Identifier.Span,
ClassificationTypeNames
.Keyword));
325
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);
274
=> AddClassification(trivia,
ClassificationTypeNames
.Comment);
292
AddClassification(trivia,
ClassificationTypeNames
.ExcludedCode);
Classification\Worker_DocumentationComments.cs (27)
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);
266
AddXmlClassification(attribute.EndQuoteToken,
ClassificationTypeNames
.XmlDocCommentAttributeQuotes);
274
AddXmlClassification(node.LessThanExclamationMinusMinusToken,
ClassificationTypeNames
.XmlDocCommentDelimiter);
276
AddXmlClassification(node.MinusMinusGreaterThanToken,
ClassificationTypeNames
.XmlDocCommentDelimiter);
281
AddXmlClassification(node.StartCDataToken,
ClassificationTypeNames
.XmlDocCommentDelimiter);
283
AddXmlClassification(node.EndCDataToken,
ClassificationTypeNames
.XmlDocCommentDelimiter);
288
AddXmlClassification(node.StartProcessingInstructionToken,
ClassificationTypeNames
.XmlDocCommentProcessingInstruction);
291
AddXmlClassification(node.EndProcessingInstructionToken,
ClassificationTypeNames
.XmlDocCommentProcessingInstruction);
Classification\Worker_Preprocesser.cs (67)
103
AddClassification(trivia,
ClassificationTypeNames
.Comment);
107
AddClassification(trivia,
ClassificationTypeNames
.PreprocessorText);
121
AddClassification(literal.Token,
ClassificationTypeNames
.Keyword);
126
AddClassification(identifier.Identifier,
ClassificationTypeNames
.Identifier);
131
AddClassification(parenExpression.OpenParenToken,
ClassificationTypeNames
.Punctuation);
133
AddClassification(parenExpression.CloseParenToken,
ClassificationTypeNames
.Punctuation);
138
AddClassification(prefixExpression.OperatorToken,
ClassificationTypeNames
.Operator);
145
AddClassification(binaryExpression.OperatorToken,
ClassificationTypeNames
.Operator);
152
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
153
AddClassification(node.IfKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
160
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
161
AddClassification(node.ElifKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
168
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
169
AddClassification(node.ElseKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
175
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
176
AddClassification(node.EndIfKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
182
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
183
AddClassification(node.ErrorKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
189
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
190
AddClassification(node.WarningKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
196
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
197
AddClassification(node.RegionKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
203
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
204
AddClassification(node.EndRegionKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
210
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
211
AddClassification(node.DefineKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
212
AddClassification(node.Name,
ClassificationTypeNames
.Identifier);
218
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
219
AddClassification(node.UndefKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
220
AddClassification(node.Name,
ClassificationTypeNames
.Identifier);
226
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
227
AddClassification(node.Identifier,
ClassificationTypeNames
.PreprocessorKeyword);
233
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
234
AddClassification(node.LineKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
240
AddClassification(node.Line,
ClassificationTypeNames
.PreprocessorKeyword);
243
AddClassification(node.Line,
ClassificationTypeNames
.NumericLiteral);
247
AddOptionalClassification(node.File,
ClassificationTypeNames
.StringLiteral);
253
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
254
AddClassification(node.LineKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
256
AddClassification(node.MinusToken,
ClassificationTypeNames
.Operator);
258
AddOptionalClassification(node.CharacterOffset,
ClassificationTypeNames
.NumericLiteral);
259
AddOptionalClassification(node.File,
ClassificationTypeNames
.StringLiteral);
273
AddClassification(node.OpenParenToken,
ClassificationTypeNames
.Punctuation);
274
AddClassification(node.Line,
ClassificationTypeNames
.NumericLiteral);
275
AddClassification(node.CommaToken,
ClassificationTypeNames
.Punctuation);
276
AddClassification(node.Character,
ClassificationTypeNames
.NumericLiteral);
277
AddClassification(node.CloseParenToken,
ClassificationTypeNames
.Punctuation);
282
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
283
AddClassification(node.PragmaKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
284
AddClassification(node.ChecksumKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
285
AddClassification(node.File,
ClassificationTypeNames
.StringLiteral);
286
AddClassification(node.Guid,
ClassificationTypeNames
.StringLiteral);
287
AddClassification(node.Bytes,
ClassificationTypeNames
.StringLiteral);
293
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
294
AddClassification(node.PragmaKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
295
AddClassification(node.WarningKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
296
AddClassification(node.DisableOrRestoreKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
313
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
314
AddClassification(node.ReferenceKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
315
AddClassification(node.File,
ClassificationTypeNames
.StringLiteral);
321
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
322
AddClassification(node.LoadKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
323
AddClassification(node.File,
ClassificationTypeNames
.StringLiteral);
329
AddClassification(node.HashToken,
ClassificationTypeNames
.PreprocessorKeyword);
330
AddClassification(node.NullableKeyword,
ClassificationTypeNames
.PreprocessorKeyword);
331
AddClassification(node.SettingToken,
ClassificationTypeNames
.PreprocessorKeyword);
332
AddClassification(node.TargetToken,
ClassificationTypeNames
.PreprocessorKeyword);
Microsoft.CodeAnalysis.EditorFeatures (79)
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)]
Shared\Utilities\ClassificationTypeMap.cs (2)
39
var fields = typeof(
ClassificationTypeNames
).GetFields();
62
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 FormattedClassification(text,
ClassificationTypeNames
.Operator);
Classification\FormattedClassifications.OverloadedOperators.cs (1)
18
=> new FormattedClassification(text,
ClassificationTypeNames
.OperatorOverloaded);
Classification\FormattedClassifications.Punctuation.cs (1)
18
=> new FormattedClassification(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)
217
foreach (var field in typeof(
ClassificationTypeNames
).GetFields())
224
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.EditorFeatures.Wpf (210)
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)]
QuickInfo\OnTheFlyDocsView.xaml.cs (2)
73
? 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)])))
226
new ContainerElement(ContainerElementStyle.Wrapped, new ClassifiedTextElement([new ClassifiedTextRun(
ClassificationTypeNames
.Text, text)])));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (514)
IntelliSense\IntellisenseQuickInfoBuilderTests.vb (336)
78
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
79
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
80
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "Console"),
81
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
82
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "WriteLine"),
83
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
84
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "string"),
85
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
86
New ClassifiedTextRun(
ClassificationTypeNames
.ParameterName, "value"),
87
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"),
88
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
89
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
90
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "+"),
91
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
92
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "18"),
93
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
94
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "overloads"),
95
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
97
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Writes the specified string value, followed by the current line terminator, to the standard output stream."))),
101
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Exceptions")),
103
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
104
New ClassifiedTextRun(
ClassificationTypeNames
.NamespaceName, "System"),
105
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
106
New ClassifiedTextRun(
ClassificationTypeNames
.NamespaceName, "IO"),
107
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
108
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "IOException"))))
165
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
166
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
167
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "Console"),
168
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
169
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "WriteLine"),
170
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
171
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "string"),
172
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
173
New ClassifiedTextRun(
ClassificationTypeNames
.ParameterName, "value"),
174
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"),
175
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
176
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
177
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "+"),
178
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
179
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "18"),
180
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
181
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "overloads"),
182
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
186
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Exceptions")),
188
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
189
New ClassifiedTextRun(
ClassificationTypeNames
.NamespaceName, "System"),
190
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
191
New ClassifiedTextRun(
ClassificationTypeNames
.NamespaceName, "IO"),
192
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
193
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "IOException"))))
266
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
267
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
268
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "Console"),
269
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
270
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "WriteLine"),
271
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
272
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "string"),
273
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
274
New ClassifiedTextRun(
ClassificationTypeNames
.ParameterName, "value"),
275
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"),
276
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
277
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
278
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "+"),
279
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
280
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "18"),
281
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
282
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "overloads"),
283
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
287
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Documentation line 1.")),
289
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Documentation line 2.")))),
293
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Documentation paragraph 2.")),
295
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Documentation paragraph 2 line 2."))),
297
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Documentation paragraph 3.")),
301
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Exceptions")),
303
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
304
New ClassifiedTextRun(
ClassificationTypeNames
.NamespaceName, "System"),
305
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
306
New ClassifiedTextRun(
ClassificationTypeNames
.NamespaceName, "IO"),
307
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
308
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "IOException"))))
352
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
353
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
354
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
355
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
356
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "void MyClass.MyMethod(CancellationToken cancellationToken = default(CancellationToken))"),
357
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
358
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "["),
359
New ClassifiedTextRun(
ClassificationTypeNames
.StructName, "CancellationToken", navigationAction:=Sub() Return, "CancellationToken"),
360
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
361
New ClassifiedTextRun(
ClassificationTypeNames
.ParameterName, "cancellationToken", navigationAction:=Sub() Return, "CancellationToken cancellationToken = default(CancellationToken)"),
362
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
363
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "="),
364
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
365
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "default"),
366
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "]"),
367
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
371
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Documentation line 1.")),
373
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Documentation line 2.")))),
377
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Documentation paragraph 2.")),
379
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Documentation paragraph 2 line 2."))),
381
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Documentation paragraph 3.")),
385
New ClassifiedTextRun(
ClassificationTypeNames
.Text, FeaturesResources.Exceptions_colon)),
387
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
388
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "IOException", navigationAction:=Sub() Return, "IOException"))))
425
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "int", navigationAction:=Sub() Return, "int"),
426
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
427
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
428
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
429
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "Method", navigationAction:=Sub() Return, "int MyClass.Method()"),
430
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
431
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
433
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Summary text."))),
435
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Remarks text.")))
472
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "int", navigationAction:=Sub() Return, "int"),
473
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
474
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
475
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
476
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "Method", navigationAction:=Sub() Return, "int MyClass.Method()"),
477
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
478
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
480
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Summary text."))),
484
New ClassifiedTextRun(
ClassificationTypeNames
.Text, FeaturesResources.Returns_colon)),
488
New ClassifiedTextRun(
ClassificationTypeNames
.Text, " ")),
492
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Returns text."))))))
529
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "delegate"),
530
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
531
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "int", navigationAction:=Sub() Return, "int"),
532
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
533
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
534
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
535
New ClassifiedTextRun(
ClassificationTypeNames
.DelegateName, "Method", navigationAction:=Sub() Return, "Method"),
536
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
537
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
539
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Summary text."))),
543
New ClassifiedTextRun(
ClassificationTypeNames
.Text, FeaturesResources.Returns_colon)),
547
New ClassifiedTextRun(
ClassificationTypeNames
.Text, " ")),
551
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Returns text."))))))
588
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "int", navigationAction:=Sub() Return, "int"),
589
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
590
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
591
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
592
New ClassifiedTextRun(
ClassificationTypeNames
.PropertyName, "Property", navigationAction:=Sub() Return, "int MyClass.Property"),
593
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
594
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "{"),
595
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
596
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "get"),
597
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ";"),
598
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
599
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "}"))),
601
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Summary text."))),
605
New ClassifiedTextRun(
ClassificationTypeNames
.Text, FeaturesResources.Value_colon)),
609
New ClassifiedTextRun(
ClassificationTypeNames
.Text, " ")),
613
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Value text."))))))
661
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
662
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
663
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
664
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
665
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "void MyClass.MyMethod()"),
666
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
667
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
669
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "text1"))),
671
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "text2")))
709
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "bool", navigationAction:=Sub() Return, "bool"),
710
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
711
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
712
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
713
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "bool MyClass.MyMethod()"),
714
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
715
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
717
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "This method returns"),
718
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
719
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "true", ClassifiedTextRunStyle.UseClassificationFont),
720
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "."))))
758
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "bool", navigationAction:=Sub() Return, "bool"),
759
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
760
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
761
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
762
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "bool MyClass.MyMethod()"),
763
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
764
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
766
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "This method returns"))),
768
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "true", ClassifiedTextRunStyle.UseClassificationFont)),
770
New ClassifiedTextRun(
ClassificationTypeNames
.Text, ".")))
807
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
808
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
809
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
810
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
811
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "void MyClass.MyMethod(CancellationToken p)"),
812
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
813
New ClassifiedTextRun(
ClassificationTypeNames
.StructName, "CancellationToken", navigationAction:=Sub() Return, "CancellationToken"),
814
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
815
New ClassifiedTextRun(
ClassificationTypeNames
.ParameterName, "p", navigationAction:=Sub() Return, "CancellationToken p"),
816
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
818
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "The parameter is"),
819
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
820
New ClassifiedTextRun(
ClassificationTypeNames
.ParameterName, "p"),
821
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "."))))
852
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "readonly"),
853
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
854
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
855
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
856
New ClassifiedTextRun(
ClassificationTypeNames
.StructName, "MyStruct", navigationAction:=Sub() Return, "MyStruct"),
857
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
858
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "readonly void MyStruct.MyMethod()"),
859
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
860
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))))
889
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "readonly"),
890
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
891
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "int", navigationAction:=Sub() Return, "int"),
892
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
893
New ClassifiedTextRun(
ClassificationTypeNames
.StructName, "MyStruct", navigationAction:=Sub() Return, "MyStruct"),
894
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
895
New ClassifiedTextRun(
ClassificationTypeNames
.PropertyName, "MyProperty", navigationAction:=Sub() Return, "readonly int MyStruct.MyProperty"),
896
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
897
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "{"),
898
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
899
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "get"),
900
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ";"),
901
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
902
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "}"))))
931
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "readonly"),
932
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
933
New ClassifiedTextRun(
ClassificationTypeNames
.NamespaceName, "System"),
934
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
935
New ClassifiedTextRun(
ClassificationTypeNames
.DelegateName, "Action", navigationAction:=Sub() Return, "Action"),
936
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
937
New ClassifiedTextRun(
ClassificationTypeNames
.StructName, "MyStruct", navigationAction:=Sub() Return, "MyStruct"),
938
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
939
New ClassifiedTextRun(
ClassificationTypeNames
.EventName, "MyEvent", navigationAction:=Sub() Return, "readonly event Action MyStruct.MyEvent"))))
976
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
977
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
978
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
979
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
980
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "void MyClass.MyMethod<T>()"),
981
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "<"),
982
New ClassifiedTextRun(
ClassificationTypeNames
.TypeParameterName, "T", navigationAction:=Sub() Return, "T"),
983
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ">"),
984
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
985
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
987
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "The type parameter is"),
988
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
989
New ClassifiedTextRun(
ClassificationTypeNames
.TypeParameterName, "T", navigationAction:=Sub() Return, "T"),
990
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "."))))
1027
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
1028
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1029
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
1030
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
1031
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "void MyClass.MyMethod<int>()"),
1032
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "<"),
1033
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "int", navigationAction:=Sub() Return, "int"),
1034
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ">"),
1035
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
1036
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
1038
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "The type parameter is"),
1039
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1040
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "int", navigationAction:=Sub() Return, "int"),
1041
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "."))))
1078
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
1079
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1080
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass<K>"),
1081
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "<"),
1082
New ClassifiedTextRun(
ClassificationTypeNames
.TypeParameterName, "K", navigationAction:=Sub() Return, "K"),
1083
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ">"),
1084
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
1085
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "void MyClass<K>.MyMethod<K>()"),
1086
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "<"),
1087
New ClassifiedTextRun(
ClassificationTypeNames
.TypeParameterName, "K", navigationAction:=Sub() Return, "K"),
1088
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ">"),
1089
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
1090
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
1092
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "The type parameter is"),
1093
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1094
New ClassifiedTextRun(
ClassificationTypeNames
.TypeParameterName, "K", navigationAction:=Sub() Return, "K"),
1095
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "."))))
1130
New ClassifiedTextRun(
ClassificationTypeNames
.RecordClassName, "TestRecord", navigationAction:=Sub() Return, "TestRecord"),
1131
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
1132
New ClassifiedTextRun(
ClassificationTypeNames
.RecordClassName, "TestRecord", navigationAction:=Sub() Return, "TestRecord.TestRecord(int X, int Y)"),
1133
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
1134
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "int", navigationAction:=Sub() Return, "int"),
1135
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1136
New ClassifiedTextRun(
ClassificationTypeNames
.ParameterName, "X", navigationAction:=Sub() Return, "int X"),
1137
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ","),
1138
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1139
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "int", navigationAction:=Sub() Return, "int"),
1140
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1141
New ClassifiedTextRun(
ClassificationTypeNames
.ParameterName, "Y", navigationAction:=Sub() Return, "int Y"),
1142
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))))
1169
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "enum"),
1170
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1171
New ClassifiedTextRun(
ClassificationTypeNames
.EnumName, "E", navigationAction:=Sub() Return, "E"),
1172
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1173
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ":"),
1174
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1175
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "byte", navigationAction:=Sub() Return, "byte"))))
1209
New ClassifiedTextRun(
ClassificationTypeNames
.RecordClassName, "TestRecord", navigationAction:=Sub() Return, "TestRecord"),
1210
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
1211
New ClassifiedTextRun(
ClassificationTypeNames
.RecordClassName, "TestRecord", navigationAction:=Sub() Return, "TestRecord.TestRecord(int X, int Y)"),
1212
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
1213
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "int", navigationAction:=Sub() Return, "int"),
1214
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1215
New ClassifiedTextRun(
ClassificationTypeNames
.ParameterName, "X", navigationAction:=Sub() Return, "int X"),
1216
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ","),
1217
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1218
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "int", navigationAction:=Sub() Return, "int"),
1219
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1220
New ClassifiedTextRun(
ClassificationTypeNames
.ParameterName, "Y", navigationAction:=Sub() Return, "int Y"),
1221
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))))
1256
New ClassifiedTextRun(
ClassificationTypeNames
.RecordStructName, "TestRecord", navigationAction:=Sub() Return, "TestRecord"),
1257
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
1258
New ClassifiedTextRun(
ClassificationTypeNames
.RecordStructName, "TestRecord", navigationAction:=Sub() Return, "TestRecord.TestRecord(int X, int Y)"),
1259
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
1260
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "int", navigationAction:=Sub() Return, "int"),
1261
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1262
New ClassifiedTextRun(
ClassificationTypeNames
.ParameterName, "X", navigationAction:=Sub() Return, "int X"),
1263
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ","),
1264
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1265
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "int", navigationAction:=Sub() Return, "int"),
1266
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1267
New ClassifiedTextRun(
ClassificationTypeNames
.ParameterName, "Y", navigationAction:=Sub() Return, "int Y"),
1268
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"),
1269
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1270
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
1271
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "+"),
1272
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1273
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "1"),
1274
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1275
New ClassifiedTextRun(
ClassificationTypeNames
.Text, FeaturesResources.overload),
1276
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))))
1311
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
1312
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "local variable"),
1313
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"),
1314
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1315
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyTask", navigationAction:=Sub() Return, "MyTask=Task"),
1316
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
1317
New ClassifiedTextRun(
ClassificationTypeNames
.LocalName, "m2", navigationAction:=Sub() Return, "Task m2"))))
IntelliSense\IntellisenseQuickInfoBuilderTests_Code.vb (21)
46
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
47
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
48
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
49
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
50
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "void MyClass.MyMethod()"),
51
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
52
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
54
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "summary for MyClass"))),
56
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "List<string> y = null;", ClassifiedTextRunStyle.UseClassificationFont)))
95
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
96
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
97
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
98
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
99
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "void MyClass.MyMethod()"),
100
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
101
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
103
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Normalize this,"),
104
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
105
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "and also this", ClassifiedTextRunStyle.UseClassificationFont))),
107
New ClassifiedTextRun(
ClassificationTypeNames
.Text, $"line 1{vbCrLf}line 2", ClassifiedTextRunStyle.UseClassificationFont)),
109
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Extra text after code.")))
IntelliSense\IntellisenseQuickInfoBuilderTests_Inheritdoc.vb (38)
48
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "class"),
49
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
50
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"))))
90
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "class"),
91
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
92
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"))),
94
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "This is the base class."))))
136
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "class"),
137
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
138
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"))),
140
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "This is the base class."))))
190
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "class"),
191
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
192
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"))),
194
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "This is the base class. This is not the base class."))))
236
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "class"),
237
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
238
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"))),
240
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Dim test = 0", ClassifiedTextRunStyle.UseClassificationFont))))
287
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
288
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
289
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
290
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
291
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "Method", navigationAction:=Sub() Return, "void MyClass.Method(int x)"),
292
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
293
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "int", navigationAction:=Sub() Return, "int"),
294
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
295
New ClassifiedTextRun(
ClassificationTypeNames
.ParameterName, "x", navigationAction:=Sub() Return, "int x"),
296
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
298
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Override summary."))))
345
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
346
New ClassifiedTextRun(
ClassificationTypeNames
.Text, FeaturesResources.parameter),
347
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"),
348
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
349
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "int", navigationAction:=Sub() Return, "int"),
350
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
351
New ClassifiedTextRun(
ClassificationTypeNames
.ParameterName, "x", navigationAction:=Sub() Return, "int x"))),
353
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "A parameter."))))
IntelliSense\IntellisenseQuickInfoBuilderTests_Links.vb (33)
48
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
49
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
50
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
51
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
52
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "void MyClass.MyMethod()"),
53
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
54
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
56
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "This contains a link to"),
57
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
58
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "https://github.com/dotnet/roslyn", QuickInfoHyperLink.TestAccessor.CreateNavigationAction(New Uri("https://github.com/dotnet/roslyn", UriKind.Absolute)), "https://github.com/dotnet/roslyn"),
59
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "."))))
95
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
96
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
97
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
98
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
99
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "void MyClass.MyMethod()"),
100
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
101
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
103
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "This contains a link to"),
104
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
105
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "dotnet/roslyn", QuickInfoHyperLink.TestAccessor.CreateNavigationAction(New Uri("https://github.com/dotnet/roslyn", UriKind.Absolute)), "https://github.com/dotnet/roslyn"),
106
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "."))))
140
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
141
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
142
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
143
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
144
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "void MyClass.MyMethod()"),
145
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
146
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
148
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "This contains a link to"),
149
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
150
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "string", navigationAction:=Sub() Return, "string"),
151
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "."))))
IntelliSense\IntellisenseQuickInfoBuilderTests_Lists.vb (75)
52
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
53
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
54
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
55
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
56
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "void MyClass.MyMethod()"),
57
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
58
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
62
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "• ")),
66
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Item 1"))))),
70
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "• ")),
74
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Item 2")))))
115
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
116
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
117
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
118
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
119
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "void MyClass.MyMethod()"),
120
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
121
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
125
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "1. ")),
129
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Item 1"))))),
133
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "2. ")),
137
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Item 2")))))
174
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
175
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
176
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
177
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
178
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "void MyClass.MyMethod()"),
179
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
180
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
184
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "• ")),
188
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "word1", ClassifiedTextRunStyle.Bold),
189
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
190
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "–"),
191
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Item 1"))))),
195
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "• ")),
199
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "word2", ClassifiedTextRunStyle.Bold),
200
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
201
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "–"),
202
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Item 2")))))
239
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
240
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
241
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
242
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
243
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "void MyClass.MyMethod()"),
244
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
245
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
249
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "1. ")),
253
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "word1", ClassifiedTextRunStyle.Bold),
254
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
255
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "–"),
256
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Item 1"))))),
260
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "2. ")),
264
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "word2", ClassifiedTextRunStyle.Bold),
265
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
266
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "–"),
267
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Item 2")))))
318
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
319
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
320
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
321
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
322
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "void MyClass.MyMethod()"),
323
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
324
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
328
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "1. ")),
334
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "• ")),
338
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Line1")),
342
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Line2"))))),
348
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "• ")),
352
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Item 1.2")))))))),
356
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "2. ")),
362
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "1. ")),
366
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Item 2.1")))),
372
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "2. ")),
376
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Line1")),
380
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "Line2")))))))))
IntelliSense\IntellisenseQuickInfoBuilderTests_Styles.vb (11)
56
New ClassifiedTextRun(
ClassificationTypeNames
.Keyword, "void"),
57
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
58
New ClassifiedTextRun(
ClassificationTypeNames
.ClassName, "MyClass", navigationAction:=Sub() Return, "MyClass"),
59
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "."),
60
New ClassifiedTextRun(
ClassificationTypeNames
.MethodName, "MyMethod", navigationAction:=Sub() Return, "void MyClass.MyMethod()"),
61
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, "("),
62
New ClassifiedTextRun(
ClassificationTypeNames
.Punctuation, ")"))),
64
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "This is some"),
65
New ClassifiedTextRun(
ClassificationTypeNames
.WhiteSpace, " "),
66
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "stylized text", style),
67
New ClassifiedTextRun(
ClassificationTypeNames
.Text, "."))))
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
Editor\Shared\Utilities\FSharpClassificationTypeMap.cs (2)
31
var fields = typeof(
ClassificationTypeNames
).GetFields();
52
return type ?? GetClassificationTypeWorker(
ClassificationTypeNames
.Text);
Microsoft.CodeAnalysis.Features (114)
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)
149
TextTags.Keyword =>
ClassificationTypeNames
.Keyword,
150
TextTags.Class =>
ClassificationTypeNames
.ClassName,
151
TextTags.Delegate =>
ClassificationTypeNames
.DelegateName,
152
TextTags.Enum =>
ClassificationTypeNames
.EnumName,
153
TextTags.Interface =>
ClassificationTypeNames
.InterfaceName,
154
TextTags.Module =>
ClassificationTypeNames
.ModuleName,
155
TextTags.Struct =>
ClassificationTypeNames
.StructName,
156
TextTags.TypeParameter =>
ClassificationTypeNames
.TypeParameterName,
157
TextTags.Field =>
ClassificationTypeNames
.FieldName,
158
TextTags.Event =>
ClassificationTypeNames
.EventName,
159
TextTags.Label =>
ClassificationTypeNames
.LabelName,
160
TextTags.Local =>
ClassificationTypeNames
.LocalName,
161
TextTags.Method =>
ClassificationTypeNames
.MethodName,
162
TextTags.Namespace =>
ClassificationTypeNames
.NamespaceName,
163
TextTags.Parameter =>
ClassificationTypeNames
.ParameterName,
164
TextTags.Property =>
ClassificationTypeNames
.PropertyName,
165
TextTags.ExtensionMethod =>
ClassificationTypeNames
.ExtensionMethodName,
166
TextTags.EnumMember =>
ClassificationTypeNames
.EnumMemberName,
167
TextTags.Constant =>
ClassificationTypeNames
.ConstantName,
168
TextTags.Alias or TextTags.Assembly or TextTags.ErrorType or TextTags.RangeVariable =>
ClassificationTypeNames
.Identifier,
169
TextTags.NumericLiteral =>
ClassificationTypeNames
.NumericLiteral,
170
TextTags.StringLiteral =>
ClassificationTypeNames
.StringLiteral,
171
TextTags.Space or TextTags.LineBreak =>
ClassificationTypeNames
.WhiteSpace,
172
TextTags.Operator =>
ClassificationTypeNames
.Operator,
173
TextTags.Punctuation =>
ClassificationTypeNames
.Punctuation,
174
TextTags.AnonymousTypeIndicator or TextTags.Text =>
ClassificationTypeNames
.Text,
175
TextTags.Record =>
ClassificationTypeNames
.RecordClassName,
176
TextTags.RecordStruct =>
ClassificationTypeNames
.RecordStructName,
178
TextTags.ContainerStart or TextTags.ContainerEnd or TextTags.CodeBlockStart or TextTags.CodeBlockEnd =>
ClassificationTypeNames
.WhiteSpace,
205
if (classificationTypeName is
ClassificationTypeNames
.Punctuation or
206
ClassificationTypeNames
.WhiteSpace)
EmbeddedLanguages\Classification\AbstractFallbackEmbeddedLanguageClassifier.cs (1)
50
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 (40)
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);
311
Context.AddClassification(
ClassificationTypeNames
.RegexText, node.TextToken.VirtualChars[0].Span);
313
ClassificationTypeNames
.RegexComment,
320
AddClassification(node.SequenceList.NodesAndTokens[i].Token,
ClassificationTypeNames
.RegexAlternation);
325
?
ClassificationTypeNames
.RegexSelfEscapedCharacter
326
:
ClassificationTypeNames
.RegexOtherEscape);
QuickInfo\Presentation\QuickInfoContentBuilder.cs (1)
149
ClassificationTypeNames
.WhiteSpace,
QuickInfo\Presentation\TaggedTextExtensions.cs (1)
230
=> 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 (5)
145
var nonEmptySpans = spans.Where(s => !s.TextSpan.IsEmpty && s.ClassificationType !=
ClassificationTypeNames
.Text);
326
if (classificationType ==
ClassificationTypeNames
.StaticSymbol)
331
else if (classificationType ==
ClassificationTypeNames
.ReassignedVariable)
336
else if (classificationType ==
ClassificationTypeNames
.ObsoleteSymbol)
341
else if (classificationType ==
ClassificationTypeNames
.TestCode)
Handler\SemanticTokens\SemanticTokensSchema.cs (25)
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))
79
/// Mapping from roslyn <see cref="
ClassificationTypeNames
"/> to the LSP token name. This is either a standard
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (97)
SemanticTokens\SemanticTokensRangesTests.cs (5)
47
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], (int)TokenModifiers.Static, // 'C'
48
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
49
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
61
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
62
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
SemanticTokens\SemanticTokensRangeTests.cs (92)
51
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], (int)TokenModifiers.Static, // 'C'
52
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
53
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
65
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
66
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, // ';'
195
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], (int)TokenModifiers.Static, // 'C'
196
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
197
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
208
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
209
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
244
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], 0, // 'C'
245
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
249
0, 9, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
259
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
263
0, 9, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
303
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], 0, // 'C'
304
1, 0, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
306
0, 5, 1, tokenTypeToIndex[
ClassificationTypeNames
.MethodName], 0, // 'M'
307
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '('
308
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ')'
309
1, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
310
1, 8, 3, tokenTypeToIndex[
ClassificationTypeNames
.Keyword], 0, // 'var'
311
0, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.LocalName], 0, // 'x'
313
0, 2, 5, tokenTypeToIndex[
ClassificationTypeNames
.VerbatimStringLiteral], 0, // '@"one'
314
1, 0, 4, tokenTypeToIndex[
ClassificationTypeNames
.VerbatimStringLiteral], 0, // 'two '
315
0, 4, 2, tokenTypeToIndex[
ClassificationTypeNames
.StringEscapeCharacter], 0, // '""'
316
1, 0, 6, tokenTypeToIndex[
ClassificationTypeNames
.VerbatimStringLiteral], 0, // 'three"'
317
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ';'
318
1, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
319
1, 0, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
342
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ';'
343
1, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
344
1, 0, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '}'
384
0, 6, 6, tokenTypeToIndex[
ClassificationTypeNames
.NamespaceName], 0, // 'System'
386
0, 1, 4, tokenTypeToIndex[
ClassificationTypeNames
.NamespaceName], 0, // 'Text'
388
0, 1, 18, tokenTypeToIndex[
ClassificationTypeNames
.NamespaceName], 0, // 'RegularExpressions'
389
0, 18, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ';'
391
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], 0, // 'C'
392
1, 0, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
394
0, 5, 1, tokenTypeToIndex[
ClassificationTypeNames
.MethodName], 0, // 'M'
395
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '('
396
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ')'
397
1, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
398
1, 2, 3, tokenTypeToIndex[
ClassificationTypeNames
.Keyword], 0, // 'var'
399
0, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.LocalName], 0, // 'x'
402
0, 4, 5, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], 0, // 'Regex'
403
0, 5, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '('
405
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.RegexGrouping], 0, // '('
406
0, 1, 3, tokenTypeToIndex[
ClassificationTypeNames
.RegexText], 0, // 'abc'
407
0, 3, 1, tokenTypeToIndex[
ClassificationTypeNames
.RegexGrouping], 0, // ')'
408
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.RegexQuantifier], 0, // '*'
410
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ')'
411
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ';'
412
1, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // }
413
1, 0, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // }
493
0, 6, 6, tokenTypeToIndex[
ClassificationTypeNames
.NamespaceName], 0, // 'System'
495
0, 1, 4, tokenTypeToIndex[
ClassificationTypeNames
.NamespaceName], 0, // 'Text'
497
0, 1, 18, tokenTypeToIndex[
ClassificationTypeNames
.NamespaceName], 0, // 'RegularExpressions'
498
0, 18, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ';'
500
0, 6, 1, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], 0, // 'C'
501
1, 0, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
503
0, 5, 1, tokenTypeToIndex[
ClassificationTypeNames
.MethodName], 0, // 'M'
504
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '('
505
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ')'
506
1, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '{'
507
1, 2, 3, tokenTypeToIndex[
ClassificationTypeNames
.Keyword], 0, // 'var'
508
0, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.LocalName], 0, // 'x'
511
0, 4, 5, tokenTypeToIndex[
ClassificationTypeNames
.ClassName], 0, // 'Regex'
512
0, 5, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // '('
513
0, 1, 2, tokenTypeToIndex[
ClassificationTypeNames
.VerbatimStringLiteral], 0, // '@"'
514
0, 2, 1, tokenTypeToIndex[
ClassificationTypeNames
.RegexGrouping], 0, // '('
515
0, 1, 3, tokenTypeToIndex[
ClassificationTypeNames
.RegexText], 0, // 'abc'
516
0, 3, 1, tokenTypeToIndex[
ClassificationTypeNames
.RegexGrouping], 0, // ')'
517
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.RegexQuantifier], 0, // '*'
518
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.VerbatimStringLiteral], 0, // ' '
519
0, 1, 9, tokenTypeToIndex[
ClassificationTypeNames
.RegexComment], 0, // '#comment'
520
1, 0, 27, tokenTypeToIndex[
ClassificationTypeNames
.VerbatimStringLiteral], 0, // '"'
521
0, 27, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ','
522
0, 2, 12, tokenTypeToIndex[
ClassificationTypeNames
.EnumName], 0, // 'RegexOptions'
524
0, 1, 23, tokenTypeToIndex[
ClassificationTypeNames
.EnumMemberName], 0, // 'IgnorePatternWhitespace'
525
0, 23, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ')'
526
0, 1, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // ';'
527
1, 4, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // }
528
1, 0, 1, tokenTypeToIndex[
ClassificationTypeNames
.Punctuation], 0, // }
586
var expectedNames =
ClassificationTypeNames
.AllTypeNames.Where(s => !
ClassificationTypeNames
.AdditiveTypeNames.Contains(s));
Microsoft.CodeAnalysis.VisualBasic.Workspaces (135)
Classification\ClassificationHelpers.vb (36)
23
Return
ClassificationTypeNames
.ControlKeyword
25
Return
ClassificationTypeNames
.Keyword
27
Return
ClassificationTypeNames
.StringLiteral
33
Return
ClassificationTypeNames
.NumericLiteral
35
Return
ClassificationTypeNames
.XmlLiteralName
39
Return
ClassificationTypeNames
.XmlLiteralAttributeValue
41
Return
ClassificationTypeNames
.XmlLiteralProcessingInstruction
43
Return
ClassificationTypeNames
.XmlLiteralComment
45
Return
ClassificationTypeNames
.XmlLiteralCDataSection
47
Return
ClassificationTypeNames
.XmlLiteralText
50
Return
ClassificationTypeNames
.XmlLiteralEntityReference
179
Return
ClassificationTypeNames
.Punctuation
183
Return
ClassificationTypeNames
.Operator
185
Return
ClassificationTypeNames
.Punctuation
196
Return
ClassificationTypeNames
.NamespaceName
200
Return
ClassificationTypeNames
.EnumName
204
Return
ClassificationTypeNames
.DelegateName
206
Return
ClassificationTypeNames
.TypeParameterName
208
Return
ClassificationTypeNames
.MethodName
210
Return
ClassificationTypeNames
.MethodName
212
Return
ClassificationTypeNames
.PropertyName
214
Return
ClassificationTypeNames
.EventName
216
Return
ClassificationTypeNames
.EnumMemberName
218
Return
ClassificationTypeNames
.LabelName
220
Return
ClassificationTypeNames
.LocalName
226
Return
ClassificationTypeNames
.Keyword
229
Return
ClassificationTypeNames
.Identifier
284
classification =
ClassificationTypeNames
.ParameterName
294
classification = If(localDeclaration.Modifiers.Any(SyntaxKind.ConstKeyword),
ClassificationTypeNames
.ConstantName,
ClassificationTypeNames
.LocalName)
300
classification = If(localDeclaration.Modifiers.Any(SyntaxKind.ConstKeyword),
ClassificationTypeNames
.ConstantName,
ClassificationTypeNames
.FieldName)
310
Return
ClassificationTypeNames
.ClassName
312
Return
ClassificationTypeNames
.ModuleName
314
Return
ClassificationTypeNames
.InterfaceName
316
Return
ClassificationTypeNames
.StructName
Classification\SyntaxClassification\IdentifierNameSyntaxClassifier.vb (1)
27
result.Add(New ClassifiedSpan(
ClassificationTypeNames
.Keyword, identifier.Span))
Classification\SyntaxClassification\NameSyntaxClassifier.vb (18)
106
classifiedSpan = New ClassifiedSpan(GetNameToken(node).Span,
ClassificationTypeNames
.NamespaceName)
116
classifiedSpan = New ClassifiedSpan(GetNameToken(node).Span,
ClassificationTypeNames
.EventName)
119
classifiedSpan = New ClassifiedSpan(GetNameToken(node).Span,
ClassificationTypeNames
.PropertyName)
128
classifiedSpan = New ClassifiedSpan(GetNameToken(node).Span,
ClassificationTypeNames
.ParameterName)
158
classifiedSpan = New ClassifiedSpan(GetNameToken(node).Span,
ClassificationTypeNames
.Keyword)
180
classifiedSpan = New ClassifiedSpan(token.Span,
ClassificationTypeNames
.Keyword)
187
classifiedSpan = New ClassifiedSpan(token.Span,
ClassificationTypeNames
.Keyword)
198
Return If(fieldSymbol.ContainingType.IsEnumType(),
ClassificationTypeNames
.EnumMemberName,
ClassificationTypeNames
.ConstantName)
201
Return
ClassificationTypeNames
.FieldName
206
ClassificationTypeNames
.ConstantName,
207
ClassificationTypeNames
.LocalName)
215
Return
ClassificationTypeNames
.Keyword
231
ClassificationTypeNames
.ExtensionMethodName,
232
ClassificationTypeNames
.MethodName)
257
result.Add(New ClassifiedSpan(token.Span,
ClassificationTypeNames
.Keyword))
284
result.Add(New ClassifiedSpan(methodStatement.Identifier.Span,
ClassificationTypeNames
.ExtensionMethodName))
292
result.Add(New ClassifiedSpan(node.LabelToken.Span,
ClassificationTypeNames
.LabelName))
Classification\SyntaxClassification\OperatorOverloadSyntaxClassifier.vb (1)
44
result.Add(New ClassifiedSpan(operatorSpan,
ClassificationTypeNames
.OperatorOverloaded))
Classification\Worker.DocumentationCommentClassifier.vb (35)
89
_worker.AddClassification(span,
ClassificationTypeNames
.XmlDocCommentDelimiter)
99
_worker.AddClassification(span,
ClassificationTypeNames
.XmlDocCommentDelimiter)
118
ClassifyXmlTrivia(token.LeadingTrivia, whitespaceClassificationType:=
ClassificationTypeNames
.XmlDocCommentText)
124
ClassifyXmlTrivia(token.TrailingTrivia, whitespaceClassificationType:=
ClassificationTypeNames
.XmlDocCommentText)
131
_worker.AddClassification(token,
ClassificationTypeNames
.XmlDocCommentEntityReference)
135
_worker.AddClassification(token,
ClassificationTypeNames
.XmlDocCommentText)
137
_worker.AddClassification(token,
ClassificationTypeNames
.XmlDocCommentAttributeValue)
139
_worker.AddClassification(token,
ClassificationTypeNames
.XmlDocCommentComment)
141
_worker.AddClassification(token,
ClassificationTypeNames
.XmlDocCommentCDataSection)
143
_worker.AddClassification(token,
ClassificationTypeNames
.XmlDocCommentProcessingInstruction)
151
classificationType =
ClassificationTypeNames
.XmlDocCommentAttributeName
153
classificationType =
ClassificationTypeNames
.XmlDocCommentProcessingInstruction
155
classificationType =
ClassificationTypeNames
.XmlDocCommentName
178
AddXmlClassification(node.LessThanToken,
ClassificationTypeNames
.XmlDocCommentDelimiter)
187
AddXmlClassification(node.GreaterThanToken,
ClassificationTypeNames
.XmlDocCommentDelimiter)
191
AddXmlClassification(node.LessThanSlashToken,
ClassificationTypeNames
.XmlDocCommentDelimiter)
193
AddXmlClassification(node.GreaterThanToken,
ClassificationTypeNames
.XmlDocCommentDelimiter)
197
AddXmlClassification(node.LessThanToken,
ClassificationTypeNames
.XmlDocCommentDelimiter)
206
AddXmlClassification(node.SlashGreaterThanToken,
ClassificationTypeNames
.XmlDocCommentDelimiter)
226
AddXmlClassification(attribute.EqualsToken,
ClassificationTypeNames
.XmlDocCommentDelimiter)
232
AddXmlClassification(attribute.EqualsToken,
ClassificationTypeNames
.XmlDocCommentDelimiter)
233
AddXmlClassification(attribute.StartQuoteToken,
ClassificationTypeNames
.XmlDocCommentAttributeQuotes)
235
AddXmlClassification(attribute.EndQuoteToken,
ClassificationTypeNames
.XmlDocCommentAttributeQuotes)
240
AddXmlClassification(attribute.EqualsToken,
ClassificationTypeNames
.XmlDocCommentDelimiter)
241
AddXmlClassification(attribute.StartQuoteToken,
ClassificationTypeNames
.XmlDocCommentAttributeQuotes)
243
AddXmlClassification(attribute.EndQuoteToken,
ClassificationTypeNames
.XmlDocCommentAttributeQuotes)
251
AddXmlClassification(node.StartQuoteToken,
ClassificationTypeNames
.XmlDocCommentAttributeQuotes)
253
AddXmlClassification(node.EndQuoteToken,
ClassificationTypeNames
.XmlDocCommentAttributeQuotes)
257
AddXmlClassification(node.LessThanExclamationMinusMinusToken,
ClassificationTypeNames
.XmlDocCommentDelimiter)
259
AddXmlClassification(node.MinusMinusGreaterThanToken,
ClassificationTypeNames
.XmlDocCommentDelimiter)
263
AddXmlClassification(node.BeginCDataToken,
ClassificationTypeNames
.XmlDocCommentDelimiter)
265
AddXmlClassification(node.EndCDataToken,
ClassificationTypeNames
.XmlDocCommentDelimiter)
269
AddXmlClassification(node.LessThanQuestionToken,
ClassificationTypeNames
.XmlDocCommentProcessingInstruction)
270
AddXmlClassification(node.Name,
ClassificationTypeNames
.XmlDocCommentProcessingInstruction)
272
AddXmlClassification(node.QuestionGreaterThanToken,
ClassificationTypeNames
.XmlDocCommentProcessingInstruction)
Classification\Worker.vb (7)
96
AddClassification(span,
ClassificationTypeNames
.StaticSymbol)
141
AddClassification(trivia,
ClassificationTypeNames
.Comment)
145
AddClassification(trivia,
ClassificationTypeNames
.Punctuation)
147
AddClassification(New TextSpan(trivia.SpanStart, 1),
ClassificationTypeNames
.Punctuation)
154
AddClassification(trivia,
ClassificationTypeNames
.Comment)
167
AddClassification(trivia,
ClassificationTypeNames
.ExcludedCode)
205
ClassifyToken(child.AsToken(),
ClassificationTypeNames
.PreprocessorKeyword)
Classification\Worker.XmlClassifier.vb (37)
98
AddTokenClassification(node.GreaterThanToken,
ClassificationTypeNames
.XmlLiteralDelimiter)
105
AddTokenClassification(node.LessThanToken,
ClassificationTypeNames
.XmlLiteralDelimiter)
109
AddTokenClassification(node.GreaterThanToken,
ClassificationTypeNames
.XmlLiteralDelimiter)
115
AddTokenClassification(node.LessThanSlashToken,
ClassificationTypeNames
.XmlLiteralDelimiter)
133
AddTokenClassification(node.LessThanToken,
ClassificationTypeNames
.XmlLiteralDelimiter)
140
AddTokenClassification(node.SlashGreaterThanToken,
ClassificationTypeNames
.XmlLiteralDelimiter)
145
AddTokenClassification(node.EqualsToken,
ClassificationTypeNames
.XmlLiteralDelimiter)
150
AddTokenClassification(node.StartQuoteToken,
ClassificationTypeNames
.XmlLiteralAttributeQuotes)
156
AddTokenClassification(node.EndQuoteToken,
ClassificationTypeNames
.XmlLiteralAttributeQuotes)
159
AddTokenClassification(node.LessThanQuestionToken,
ClassificationTypeNames
.XmlLiteralDelimiter)
160
AddTokenClassification(node.Name,
ClassificationTypeNames
.XmlLiteralName)
166
AddTokenClassification(node.QuestionGreaterThanToken,
ClassificationTypeNames
.XmlLiteralDelimiter)
170
AddTokenClassification(node.LessThanPercentEqualsToken,
ClassificationTypeNames
.XmlLiteralEmbeddedExpression)
172
AddTokenClassification(node.PercentGreaterThanToken,
ClassificationTypeNames
.XmlLiteralEmbeddedExpression)
176
AddTokenClassification(node.LessThanExclamationMinusMinusToken,
ClassificationTypeNames
.XmlLiteralDelimiter)
182
AddTokenClassification(node.MinusMinusGreaterThanToken,
ClassificationTypeNames
.XmlLiteralDelimiter)
186
AddTokenClassification(node.BeginCDataToken,
ClassificationTypeNames
.XmlLiteralDelimiter)
192
AddTokenClassification(node.EndCDataToken,
ClassificationTypeNames
.XmlLiteralDelimiter)
202
AddTokenClassification(node.LessThanQuestionToken,
ClassificationTypeNames
.XmlLiteralDelimiter)
203
AddTokenClassification(node.XmlKeyword,
ClassificationTypeNames
.XmlLiteralName)
215
AddTokenClassification(node.QuestionGreaterThanToken,
ClassificationTypeNames
.XmlLiteralDelimiter)
219
AddTokenClassification(node.Name,
ClassificationTypeNames
.XmlLiteralAttributeName)
220
AddTokenClassification(node.Equals,
ClassificationTypeNames
.XmlLiteralDelimiter)
225
AddTokenClassification(node.LessThanToken,
ClassificationTypeNames
.XmlLiteralDelimiter)
227
AddTokenClassification(node.GreaterThanToken,
ClassificationTypeNames
.XmlLiteralDelimiter)
235
type =
ClassificationTypeNames
.XmlLiteralAttributeName
239
type =
ClassificationTypeNames
.XmlLiteralAttributeName
241
type =
ClassificationTypeNames
.XmlLiteralName
283
AddTokenClassification(bracketedName.LessThanToken,
ClassificationTypeNames
.XmlLiteralDelimiter)
285
AddTokenClassification(bracketedName.GreaterThanToken,
ClassificationTypeNames
.XmlLiteralDelimiter)
300
AddTokenClassification(syntax.Token1,
ClassificationTypeNames
.XmlLiteralDelimiter)
304
AddTokenClassification(syntax.Token2,
ClassificationTypeNames
.XmlLiteralDelimiter)
308
AddTokenClassification(syntax.Token3,
ClassificationTypeNames
.XmlLiteralDelimiter)
328
AddTokenClassification(node.GetXmlNamespaceKeyword,
ClassificationTypeNames
.Keyword)
329
AddTokenClassification(node.OpenParenToken,
ClassificationTypeNames
.Punctuation)
332
AddTokenClassification(node.Name.Name,
ClassificationTypeNames
.XmlLiteralName)
335
AddTokenClassification(node.CloseParenToken,
ClassificationTypeNames
.Punctuation)
Microsoft.CodeAnalysis.Workspaces (44)
Classification\AbstractClassificationService.cs (2)
159
result.Add(new ClassifiedSpan(span,
ClassificationTypeNames
.ReassignedVariable));
167
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)
102
if (
ClassificationTypeNames
.AdditiveTypeNames.Contains(span.ClassificationType))
171
ClassificationTypeNames
.AdditiveTypeNames.Contains(span.ClassificationType) ||
ClassificationTypeNames
.AdditiveTypeNames.Contains(previousSpan.ClassificationType);
202
result.Add(new ClassifiedSpan(
ClassificationTypeNames
.Text,
Classification\SyntaxClassification\AbstractNameSyntaxClassifier.cs (1)
35
result.Add(new ClassifiedSpan(span,
ClassificationTypeNames
.StaticSymbol));
Microsoft.VisualStudio.LanguageServices (98)
ColorSchemes\ColorSchemeApplier.ClassificationVerifier.cs (11)
48
[
ClassificationTypeNames
.Identifier] = DarkThemeIdentifier,
49
[
ClassificationTypeNames
.Keyword] = DarkThemeKeyword,
50
[
ClassificationTypeNames
.Operator] = DarkThemeOperator,
58
[
ClassificationTypeNames
.Identifier] = LightThemeIdentifier,
59
[
ClassificationTypeNames
.Keyword] = LightThemeKeyword,
60
[
ClassificationTypeNames
.Operator] = LightThemeOperator,
195
ClassificationTypeNames
.OperatorOverloaded => coreThemeColors[
ClassificationTypeNames
.Operator],
196
ClassificationTypeNames
.ControlKeyword => coreThemeColors[
ClassificationTypeNames
.Keyword],
197
_ => coreThemeColors[
ClassificationTypeNames
.Identifier]
FindReferences\Entries\DocumentSpanEntry.cs (1)
122
cs => !
ClassificationTypeNames
.AdditiveTypeNames.Contains(cs.ClassificationType));
HACK_ThemeColorFixer.cs (76)
70
DeprioritizeStringClassification(textFormatMap,
ClassificationTypeNames
.StringLiteral);
71
DeprioritizeStringClassification(tooltipFormatMap,
ClassificationTypeNames
.StringLiteral);
72
DeprioritizeStringClassification(textFormatMap,
ClassificationTypeNames
.VerbatimStringLiteral);
73
DeprioritizeStringClassification(tooltipFormatMap,
ClassificationTypeNames
.VerbatimStringLiteral);
117
UpdateForegroundColor(
ClassificationTypeNames
.Comment, sourceFormatMap, targetFormatMap);
118
UpdateForegroundColor(
ClassificationTypeNames
.ExcludedCode, sourceFormatMap, targetFormatMap);
119
UpdateForegroundColor(
ClassificationTypeNames
.Identifier, sourceFormatMap, targetFormatMap);
120
UpdateForegroundColor(
ClassificationTypeNames
.Keyword, sourceFormatMap, targetFormatMap);
121
UpdateForegroundColor(
ClassificationTypeNames
.ControlKeyword, sourceFormatMap, targetFormatMap);
122
UpdateForegroundColor(
ClassificationTypeNames
.NumericLiteral, sourceFormatMap, targetFormatMap);
123
UpdateForegroundColor(
ClassificationTypeNames
.StringLiteral, sourceFormatMap, targetFormatMap);
125
UpdateForegroundColor(
ClassificationTypeNames
.VerbatimStringLiteral, sourceFormatMap, targetFormatMap);
126
UpdateForegroundColor(
ClassificationTypeNames
.StringEscapeCharacter, sourceFormatMap, targetFormatMap);
128
UpdateForegroundColor(
ClassificationTypeNames
.XmlDocCommentAttributeName, sourceFormatMap, targetFormatMap);
129
UpdateForegroundColor(
ClassificationTypeNames
.XmlDocCommentAttributeQuotes, sourceFormatMap, targetFormatMap);
130
UpdateForegroundColor(
ClassificationTypeNames
.XmlDocCommentAttributeValue, sourceFormatMap, targetFormatMap);
131
UpdateForegroundColor(
ClassificationTypeNames
.XmlDocCommentText, sourceFormatMap, targetFormatMap);
132
UpdateForegroundColor(
ClassificationTypeNames
.XmlDocCommentDelimiter, sourceFormatMap, targetFormatMap);
133
UpdateForegroundColor(
ClassificationTypeNames
.XmlDocCommentComment, sourceFormatMap, targetFormatMap);
134
UpdateForegroundColor(
ClassificationTypeNames
.XmlDocCommentCDataSection, sourceFormatMap, targetFormatMap);
136
UpdateForegroundColor(
ClassificationTypeNames
.RegexComment, sourceFormatMap, targetFormatMap);
137
UpdateForegroundColor(
ClassificationTypeNames
.RegexText, sourceFormatMap, targetFormatMap);
138
UpdateForegroundColor(
ClassificationTypeNames
.RegexCharacterClass, sourceFormatMap, targetFormatMap);
139
UpdateForegroundColor(
ClassificationTypeNames
.RegexQuantifier, sourceFormatMap, targetFormatMap);
140
UpdateForegroundColor(
ClassificationTypeNames
.RegexAnchor, sourceFormatMap, targetFormatMap);
141
UpdateForegroundColor(
ClassificationTypeNames
.RegexAlternation, sourceFormatMap, targetFormatMap);
142
UpdateForegroundColor(
ClassificationTypeNames
.RegexGrouping, sourceFormatMap, targetFormatMap);
143
UpdateForegroundColor(
ClassificationTypeNames
.RegexOtherEscape, sourceFormatMap, targetFormatMap);
144
UpdateForegroundColor(
ClassificationTypeNames
.RegexSelfEscapedCharacter, sourceFormatMap, targetFormatMap);
146
UpdateForegroundColor(
ClassificationTypeNames
.JsonComment, sourceFormatMap, targetFormatMap);
147
UpdateForegroundColor(
ClassificationTypeNames
.JsonNumber, sourceFormatMap, targetFormatMap);
148
UpdateForegroundColor(
ClassificationTypeNames
.JsonString, sourceFormatMap, targetFormatMap);
149
UpdateForegroundColor(
ClassificationTypeNames
.JsonKeyword, sourceFormatMap, targetFormatMap);
150
UpdateForegroundColor(
ClassificationTypeNames
.JsonText, sourceFormatMap, targetFormatMap);
151
UpdateForegroundColor(
ClassificationTypeNames
.JsonOperator, sourceFormatMap, targetFormatMap);
152
UpdateForegroundColor(
ClassificationTypeNames
.JsonArray, sourceFormatMap, targetFormatMap);
153
UpdateForegroundColor(
ClassificationTypeNames
.JsonObject, sourceFormatMap, targetFormatMap);
154
UpdateForegroundColor(
ClassificationTypeNames
.JsonPropertyName, sourceFormatMap, targetFormatMap);
155
UpdateForegroundColor(
ClassificationTypeNames
.JsonConstructorName, sourceFormatMap, targetFormatMap);
157
UpdateForegroundColor(
ClassificationTypeNames
.PreprocessorKeyword, sourceFormatMap, targetFormatMap);
158
UpdateForegroundColor(
ClassificationTypeNames
.PreprocessorText, sourceFormatMap, targetFormatMap);
160
UpdateForegroundColor(
ClassificationTypeNames
.Operator, sourceFormatMap, targetFormatMap);
161
UpdateForegroundColor(
ClassificationTypeNames
.OperatorOverloaded, sourceFormatMap, targetFormatMap);
162
UpdateForegroundColor(
ClassificationTypeNames
.Punctuation, sourceFormatMap, targetFormatMap);
164
UpdateForegroundColor(
ClassificationTypeNames
.ClassName, sourceFormatMap, targetFormatMap);
165
UpdateForegroundColor(
ClassificationTypeNames
.RecordClassName, sourceFormatMap, targetFormatMap);
166
UpdateForegroundColor(
ClassificationTypeNames
.StructName, sourceFormatMap, targetFormatMap);
167
UpdateForegroundColor(
ClassificationTypeNames
.InterfaceName, sourceFormatMap, targetFormatMap);
168
UpdateForegroundColor(
ClassificationTypeNames
.DelegateName, sourceFormatMap, targetFormatMap);
169
UpdateForegroundColor(
ClassificationTypeNames
.EnumName, sourceFormatMap, targetFormatMap);
170
UpdateForegroundColor(
ClassificationTypeNames
.TypeParameterName, sourceFormatMap, targetFormatMap);
171
UpdateForegroundColor(
ClassificationTypeNames
.ModuleName, sourceFormatMap, targetFormatMap);
173
UpdateForegroundColor(
ClassificationTypeNames
.FieldName, sourceFormatMap, targetFormatMap);
174
UpdateForegroundColor(
ClassificationTypeNames
.EnumMemberName, sourceFormatMap, targetFormatMap);
175
UpdateForegroundColor(
ClassificationTypeNames
.ConstantName, sourceFormatMap, targetFormatMap);
176
UpdateForegroundColor(
ClassificationTypeNames
.LocalName, sourceFormatMap, targetFormatMap);
177
UpdateForegroundColor(
ClassificationTypeNames
.ParameterName, sourceFormatMap, targetFormatMap);
178
UpdateForegroundColor(
ClassificationTypeNames
.MethodName, sourceFormatMap, targetFormatMap);
179
UpdateForegroundColor(
ClassificationTypeNames
.ExtensionMethodName, sourceFormatMap, targetFormatMap);
180
UpdateForegroundColor(
ClassificationTypeNames
.PropertyName, sourceFormatMap, targetFormatMap);
181
UpdateForegroundColor(
ClassificationTypeNames
.EventName, sourceFormatMap, targetFormatMap);
182
UpdateForegroundColor(
ClassificationTypeNames
.NamespaceName, sourceFormatMap, targetFormatMap);
183
UpdateForegroundColor(
ClassificationTypeNames
.LabelName, sourceFormatMap, targetFormatMap);
185
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralText, sourceFormatMap, targetFormatMap);
186
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralProcessingInstruction, sourceFormatMap, targetFormatMap);
187
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralName, sourceFormatMap, targetFormatMap);
188
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralEmbeddedExpression, sourceFormatMap, targetFormatMap);
189
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralDelimiter, sourceFormatMap, targetFormatMap);
190
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralComment, sourceFormatMap, targetFormatMap);
191
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralCDataSection, sourceFormatMap, targetFormatMap);
192
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralAttributeValue, sourceFormatMap, targetFormatMap);
193
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralAttributeQuotes, sourceFormatMap, targetFormatMap);
194
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralAttributeName, sourceFormatMap, targetFormatMap);
195
UpdateForegroundColor(
ClassificationTypeNames
.XmlLiteralEntityReference, sourceFormatMap, targetFormatMap);
197
UpdateForegroundColor(
ClassificationTypeNames
.TestCode, sourceFormatMap, targetFormatMap);
198
UpdateForegroundColor(
ClassificationTypeNames
.TestCodeMarkdown, sourceFormatMap, targetFormatMap);
StackTraceExplorer\IgnoredFrameViewModel.cs (1)
28
var run = MakeClassifiedRun(
ClassificationTypeNames
.ExcludedCode, _frame.ToString());
StackTraceExplorer\StackFrameViewModel.cs (7)
149
yield return MakeClassifiedRun(
ClassificationTypeNames
.Text, CreateString(classLeadingTrivia));
157
classLink.Inlines.Add(MakeClassifiedRun(
ClassificationTypeNames
.ClassName, classLinkText));
180
methodLink.Inlines.Add(MakeClassifiedRun(
ClassificationTypeNames
.MethodName, methodTextBuilder.ToString()));
192
yield return MakeClassifiedRun(
ClassificationTypeNames
.Text, CreateString(leadingTrivia));
196
fileLink.Inlines.Add(MakeClassifiedRun(
ClassificationTypeNames
.Text, fileInformation.ToString()));
202
yield return MakeClassifiedRun(
ClassificationTypeNames
.Text, CreateString(trailingTrivia));
208
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));
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Venus\DocumentService_IntegrationTests.vb (1)
328
Return New ExcerptResult(mappedSource.GetSubText(line.Span), New TextSpan(mappedSpan.Start - line.Start, mappedSpan.Length), ImmutableArray.Create(New ClassifiedSpan(New TextSpan(0, line.Span.Length),
ClassificationTypeNames
.Text)), document, span)