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