/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Analyzers/Core/CodeFixes/AddParameter/CodeFixData.cs
31 строка
1 KB
Cyrus Najmabadi
Update features to use file scoped namespaces
28 фев 2024, 00:26
28 фев 2024, 00:26
4262648
Код
Авторство
О чём код?
// 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; using System.Threading; using System.Threading.Tasks; namespace Microsoft.CodeAnalysis.AddParameter; internal readonly struct CodeFixData( IMethodSymbol method, Func<CancellationToken, Task<Solution>> createChangedSolutionNonCascading, Func<CancellationToken, Task<Solution>>? createChangedSolutionCascading) { /// <summary> /// The overload to fix. /// </summary> public IMethodSymbol Method { get; } = method ?? throw new ArgumentNullException(nameof(method)); /// <summary> /// A mandatory fix for the overload without cascading. /// </summary> public Func<CancellationToken, Task<Solution>> CreateChangedSolutionNonCascading { get; } = createChangedSolutionNonCascading ?? throw new ArgumentNullException(nameof(createChangedSolutionNonCascading)); /// <summary> /// An optional fix for the overload with cascading. /// </summary> public Func<CancellationToken, Task<Solution>>? CreateChangedSolutionCascading { get; } = createChangedSolutionCascading; }