/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/EditorFeatures/TestUtilities/Classification/FormattedClassifications.XmlDoc.cs
56 строк
2 KB
Cyrus Najmabadi
Use file scoped namespaces. (#77854)
27 мар 2025, 09:55
Не верифицирован
27 мар 2025, 09:55
98d41b8
Код
Авторство
О чём код?
// 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. #nullable disable using System.Diagnostics; using Microsoft.CodeAnalysis.Classification; namespace Microsoft.CodeAnalysis.Editor.UnitTests.Classification; public static partial class FormattedClassifications { public static class XmlDoc { [DebuggerStepThrough] public static FormattedClassification AttributeName(string text) => New(text, ClassificationTypeNames.XmlDocCommentAttributeName); [DebuggerStepThrough] public static FormattedClassification AttributeQuotes(string text) => New(text, ClassificationTypeNames.XmlDocCommentAttributeQuotes); [DebuggerStepThrough] public static FormattedClassification AttributeValue(string text) => New(text, ClassificationTypeNames.XmlDocCommentAttributeValue); [DebuggerStepThrough] public static FormattedClassification CDataSection(string text) => New(text, ClassificationTypeNames.XmlDocCommentCDataSection); [DebuggerStepThrough] public static FormattedClassification Comment(string text) => New(text, ClassificationTypeNames.XmlDocCommentComment); [DebuggerStepThrough] public static FormattedClassification Delimiter(string text) => New(text, ClassificationTypeNames.XmlDocCommentDelimiter); [DebuggerStepThrough] public static FormattedClassification EntityReference(string text) => New(text, ClassificationTypeNames.XmlDocCommentEntityReference); [DebuggerStepThrough] public static FormattedClassification Name(string text) => New(text, ClassificationTypeNames.XmlDocCommentName); [DebuggerStepThrough] public static FormattedClassification ProcessingInstruction(string text) => New(text, ClassificationTypeNames.XmlDocCommentProcessingInstruction); [DebuggerStepThrough] public static FormattedClassification Text(string text) => New(text, ClassificationTypeNames.XmlDocCommentText); } }