/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/EditorFeatures/TestUtilities/Classification/FormattedClassifications.Punctuation.cs
38 строк
2 KB
Cyrus Najmabadi
Update test
14 окт 2025, 00:13
14 окт 2025, 00:13
8a1a590
Код
Авторство
О чём код?
// 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 Punctuation { [DebuggerStepThrough] private static FormattedClassification New(string text) => new(text, ClassificationTypeNames.Punctuation); public static FormattedClassification OpenCurly { get; } = New("{"); public static FormattedClassification CloseCurly { get; } = New("}"); public static FormattedClassification OpenParen { get; } = New("("); public static FormattedClassification CloseParen { get; } = New(")"); public static FormattedClassification OpenAngle { get; } = New("<"); public static FormattedClassification CloseAngle { get; } = New(">"); public static FormattedClassification OpenBracket { get; } = New("["); public static FormattedClassification CloseBracket { get; } = New("]"); public static FormattedClassification Comma { get; } = New(","); public static FormattedClassification Semicolon { get; } = New(";"); public static FormattedClassification Colon { get; } = New(":"); public static FormattedClassification DotDot { get; } = New(".."); public static FormattedClassification XmlOpenAngle { get; } = New("<"); public static FormattedClassification XmlCloseAngle { get; } = New(">"); [DebuggerStepThrough] public static FormattedClassification Text(string text) => New(text); } }