/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Features/CSharp/Portable/AddPackage/CSharpAddSpecificPackageCodeFixProvider.cs
39 строк
1 KB
Cyrus Najmabadi
Make sealed
26 мар 2025, 22:21
26 мар 2025, 22:21
d99b771
Код
Авторство
О чём код?
// 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; using System.Collections.Immutable; using System.Composition; using Microsoft.CodeAnalysis.AddPackage; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.Host.Mef; namespace Microsoft.CodeAnalysis.CSharp.AddPackage; [ExportCodeFixProvider(LanguageNames.CSharp, Name = PredefinedCodeFixProviderNames.AddPackage), Shared] internal sealed class CSharpAddSpecificPackageCodeFixProvider : AbstractAddSpecificPackageCodeFixProvider { private const string CS8179 = nameof(CS8179); // Predefined type 'System.ValueTuple`2' is not defined or imported [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public CSharpAddSpecificPackageCodeFixProvider() { } public override ImmutableArray<string> FixableDiagnosticIds => [CS8179]; protected override string GetAssemblyName(string id) { switch (id) { case CS8179: return "System.ValueTuple"; } return null; } }