File: Analyzers\AnalyzersAndFixers.cs
Web Access
Project: src\src\sdk\src\Dotnet.Format\dotnet-format\dotnet-format.csproj (dotnet-format)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Collections.Immutable;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.Diagnostics;

namespace Microsoft.CodeAnalysis.Tools.Analyzers
{
    internal struct AnalyzersAndFixers
    {
        public ImmutableArray<DiagnosticAnalyzer> Analyzers { get; }
        public ImmutableArray<CodeFixProvider> Fixers { get; }

        public AnalyzersAndFixers(ImmutableArray<DiagnosticAnalyzer> analyzers, ImmutableArray<CodeFixProvider> fixers)
        {
            Analyzers = analyzers;
            Fixers = fixers;
        }

        public void Deconstruct(
            out ImmutableArray<DiagnosticAnalyzer> analyzers,
            out ImmutableArray<CodeFixProvider> fixers)
        {
            analyzers = Analyzers;
            fixers = Fixers;
        }
    }
}