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