| File: ExtractClass\ExtractClassOptions.cs | Web Access |
| Project: src\roslyn\src\Features\Core\Portable\Microsoft.CodeAnalysis.Features.csproj (Microsoft.CodeAnalysis.Features) |
// 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.Collections.Immutable; namespace Microsoft.CodeAnalysis.ExtractClass; internal sealed class ExtractClassOptions( string fileName, string typeName, bool sameFile, ImmutableArray<ExtractClassMemberAnalysisResult> memberAnalysisResults) { public string FileName { get; } = fileName; public string TypeName { get; } = typeName; public bool SameFile { get; } = sameFile; public ImmutableArray<ExtractClassMemberAnalysisResult> MemberAnalysisResults { get; } = memberAnalysisResults; } internal sealed class ExtractClassMemberAnalysisResult( ISymbol member, bool makeAbstract) { /// <summary> /// The member needs to be pulled up. /// </summary> public ISymbol Member { get; } = member; /// <summary> /// Whether to make the member abstract when added to the new class /// </summary> public bool MakeAbstract { get; } = makeAbstract; }