|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Immutable;
namespace Microsoft.CodeAnalysis.Classification;
public static class ClassificationTypeNames
{
/// <summary>
/// Additive classifications types supply additional context to other classifications.
/// </summary>
public static ImmutableArray<string> AdditiveTypeNames { get; } = [StaticSymbol, ReassignedVariable, ObsoleteSymbol, TestCode];
public static ImmutableArray<string> AllTypeNames { get; } =
[
Comment,
ExcludedCode,
Identifier,
Keyword,
ControlKeyword,
NumericLiteral,
Operator,
OperatorOverloaded,
PreprocessorKeyword,
StringLiteral,
WhiteSpace,
Text,
ReassignedVariable,
ObsoleteSymbol,
StaticSymbol,
PreprocessorText,
Punctuation,
VerbatimStringLiteral,
StringEscapeCharacter,
ClassName,
RecordClassName,
DelegateName,
EnumName,
InterfaceName,
ModuleName,
StructName,
RecordStructName,
TypeParameterName,
FieldName,
EnumMemberName,
ConstantName,
LocalName,
ParameterName,
MethodName,
ExtensionMethodName,
PropertyName,
EventName,
NamespaceName,
LabelName,
XmlDocCommentAttributeName,
XmlDocCommentAttributeQuotes,
XmlDocCommentAttributeValue,
XmlDocCommentCDataSection,
XmlDocCommentComment,
XmlDocCommentDelimiter,
XmlDocCommentEntityReference,
XmlDocCommentName,
XmlDocCommentProcessingInstruction,
XmlDocCommentText,
XmlLiteralAttributeName,
XmlLiteralAttributeQuotes,
XmlLiteralAttributeValue,
XmlLiteralCDataSection,
XmlLiteralComment,
XmlLiteralDelimiter,
XmlLiteralEmbeddedExpression,
XmlLiteralEntityReference,
XmlLiteralName,
XmlLiteralProcessingInstruction,
XmlLiteralText,
RegexComment,
RegexCharacterClass,
RegexAnchor,
RegexQuantifier,
RegexGrouping,
RegexAlternation,
RegexText,
RegexSelfEscapedCharacter,
RegexOtherEscape,
JsonComment,
JsonNumber,
JsonString,
JsonKeyword,
JsonText,
JsonOperator,
JsonPunctuation,
JsonArray,
JsonObject,
JsonPropertyName,
JsonConstructorName,
TestCode,
TestCodeMarkdown,
];
public const string Comment = "comment";
public const string ExcludedCode = "excluded code";
public const string Identifier = "identifier";
public const string Keyword = "keyword";
public const string ControlKeyword = "keyword - control";
public const string NumericLiteral = "number";
public const string Operator = "operator";
public const string OperatorOverloaded = "operator - overloaded";
public const string PreprocessorKeyword = "preprocessor keyword";
public const string StringLiteral = "string";
public const string WhiteSpace = "whitespace";
public const string Text = "text";
internal const string ReassignedVariable = "reassigned variable";
internal const string ObsoleteSymbol = "obsolete symbol";
public const string StaticSymbol = "static symbol";
public const string PreprocessorText = "preprocessor text";
public const string Punctuation = "punctuation";
public const string VerbatimStringLiteral = "string - verbatim";
public const string StringEscapeCharacter = "string - escape character";
public const string ClassName = "class name";
public const string RecordClassName = "record class name";
public const string DelegateName = "delegate name";
public const string EnumName = "enum name";
public const string InterfaceName = "interface name";
public const string ModuleName = "module name";
public const string StructName = "struct name";
public const string RecordStructName = "record struct name";
public const string TypeParameterName = "type parameter name";
internal const string TestCode = "roslyn test code";
internal const string TestCodeMarkdown = "roslyn test code markdown";
public const string FieldName = "field name";
public const string EnumMemberName = "enum member name";
public const string ConstantName = "constant name";
public const string LocalName = "local name";
public const string ParameterName = "parameter name";
public const string MethodName = "method name";
public const string ExtensionMethodName = "extension method name";
public const string PropertyName = "property name";
public const string EventName = "event name";
public const string NamespaceName = "namespace name";
public const string LabelName = "label name";
public const string XmlDocCommentAttributeName = "xml doc comment - attribute name";
public const string XmlDocCommentAttributeQuotes = "xml doc comment - attribute quotes";
public const string XmlDocCommentAttributeValue = "xml doc comment - attribute value";
public const string XmlDocCommentCDataSection = "xml doc comment - cdata section";
public const string XmlDocCommentComment = "xml doc comment - comment";
public const string XmlDocCommentDelimiter = "xml doc comment - delimiter";
public const string XmlDocCommentEntityReference = "xml doc comment - entity reference";
public const string XmlDocCommentName = "xml doc comment - name";
public const string XmlDocCommentProcessingInstruction = "xml doc comment - processing instruction";
public const string XmlDocCommentText = "xml doc comment - text";
public const string XmlLiteralAttributeName = "xml literal - attribute name";
public const string XmlLiteralAttributeQuotes = "xml literal - attribute quotes";
public const string XmlLiteralAttributeValue = "xml literal - attribute value";
public const string XmlLiteralCDataSection = "xml literal - cdata section";
public const string XmlLiteralComment = "xml literal - comment";
public const string XmlLiteralDelimiter = "xml literal - delimiter";
public const string XmlLiteralEmbeddedExpression = "xml literal - embedded expression";
public const string XmlLiteralEntityReference = "xml literal - entity reference";
public const string XmlLiteralName = "xml literal - name";
public const string XmlLiteralProcessingInstruction = "xml literal - processing instruction";
public const string XmlLiteralText = "xml literal - text";
public const string RegexComment = "regex - comment";
public const string RegexCharacterClass = "regex - character class";
public const string RegexAnchor = "regex - anchor";
public const string RegexQuantifier = "regex - quantifier";
public const string RegexGrouping = "regex - grouping";
public const string RegexAlternation = "regex - alternation";
public const string RegexText = "regex - text";
public const string RegexSelfEscapedCharacter = "regex - self escaped character";
public const string RegexOtherEscape = "regex - other escape";
internal const string JsonComment = "json - comment";
internal const string JsonNumber = "json - number";
internal const string JsonString = "json - string";
internal const string JsonKeyword = "json - keyword";
internal const string JsonText = "json - text";
internal const string JsonOperator = "json - operator";
internal const string JsonPunctuation = "json - punctuation";
internal const string JsonArray = "json - array";
internal const string JsonObject = "json - object";
internal const string JsonPropertyName = "json - property name";
internal const string JsonConstructorName = "json - constructor name";
}
|