/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Compilers/Test/Core/Extensions/OperationExtensions.cs
25 строк
775 B
Tomáš Matoušek
Remove Microsoft.CodeAnalysis.Test.Extensions namespace (#50051)
19 дек 2020, 01:41
Не верифицирован
19 дек 2020, 01:41
7aeb78f
Код
Авторство
О чём код?
// 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 namespace Microsoft.CodeAnalysis.Test.Utilities { internal static class OperationTestExtensions { public static bool MustHaveNullType(this IOperation operation) { switch (operation.Kind) { // TODO: Expand to cover all operations that must always have null type. case OperationKind.ArrayInitializer: case OperationKind.Argument: return true; default: return false; } } } }