Skip to content

Commit

Permalink
Merge pull request #75352 from CyrusNajmabadi/makeSealed2
Browse files Browse the repository at this point in the history
Make the types in CSharp Features sealed
  • Loading branch information
CyrusNajmabadi authored Oct 3, 2024
2 parents 9d80b77 + 1ab7d33 commit bba06be
Show file tree
Hide file tree
Showing 109 changed files with 136 additions and 136 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ internal void MarkComplete()
}
}

private class AnalyzerImpl(CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer analyzer)
private sealed class AnalyzerImpl(CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer analyzer)
{
private readonly CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer _analyzer = analyzer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ namespace Microsoft.CodeAnalysis.CSharp.UseIndexOrRangeOperator;

using static Helpers;

internal partial class CSharpUseIndexOperatorDiagnosticAnalyzer
internal sealed partial class CSharpUseIndexOperatorDiagnosticAnalyzer
{
/// <summary>
/// Helper type to cache information about types while analyzing the compilation.
/// </summary>
private class InfoCache
private sealed class InfoCache
{
/// <summary>
/// The <see cref="T:System.Index"/> type. Needed so that we only fixup code if we see the type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Microsoft.CodeAnalysis.CSharp.UseIndexOrRangeOperator;

using static Helpers;

internal partial class CSharpUseRangeOperatorDiagnosticAnalyzer
internal sealed partial class CSharpUseRangeOperatorDiagnosticAnalyzer
{
/// <summary>
/// Helper type to cache information about types while analyzing the compilation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Microsoft.CodeAnalysis.CSharp.UseIndexOrRangeOperator;

internal partial class CSharpUseRangeOperatorDiagnosticAnalyzer
internal sealed partial class CSharpUseRangeOperatorDiagnosticAnalyzer
{
public enum ResultKind
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace Microsoft.CodeAnalysis.CSharp.UsePatternMatching;
/// </code>
/// </summary>
[DiagnosticAnalyzer(LanguageNames.CSharp)]
internal partial class CSharpAsAndMemberAccessDiagnosticAnalyzer : AbstractBuiltInCodeStyleDiagnosticAnalyzer
internal sealed partial class CSharpAsAndMemberAccessDiagnosticAnalyzer : AbstractBuiltInCodeStyleDiagnosticAnalyzer
{
public CSharpAsAndMemberAccessDiagnosticAnalyzer()
: base(IDEDiagnosticIds.UsePatternMatchingAsAndMemberAccessDiagnosticId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Microsoft.CodeAnalysis.CSharp.UsePatternMatching;

internal partial class CSharpAsAndNullCheckDiagnosticAnalyzer
internal sealed partial class CSharpAsAndNullCheckDiagnosticAnalyzer
{
private readonly struct Analyzer
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace Microsoft.CodeAnalysis.CSharp.UsePatternMatching;
/// </code>
/// </summary>
[DiagnosticAnalyzer(LanguageNames.CSharp)]
internal partial class CSharpAsAndNullCheckDiagnosticAnalyzer : AbstractBuiltInCodeStyleDiagnosticAnalyzer
internal sealed partial class CSharpAsAndNullCheckDiagnosticAnalyzer : AbstractBuiltInCodeStyleDiagnosticAnalyzer
{
public CSharpAsAndNullCheckDiagnosticAnalyzer()
: base(IDEDiagnosticIds.InlineAsTypeCheckId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Microsoft.CodeAnalysis.CSharp.CodeFixes.AddExplicitCast;

internal sealed partial class CSharpAddExplicitCastCodeFixProvider
{
private class ArgumentFixer : Fixer<ArgumentSyntax, ArgumentListSyntax, SyntaxNode>
private sealed class ArgumentFixer : Fixer<ArgumentSyntax, ArgumentListSyntax, SyntaxNode>
{
protected override ExpressionSyntax GetExpressionOfArgument(ArgumentSyntax argument)
=> argument.Expression;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Microsoft.CodeAnalysis.CSharp.CodeFixes.AddExplicitCast;

internal sealed partial class CSharpAddExplicitCastCodeFixProvider
{
private class AttributeArgumentFixer : Fixer<AttributeArgumentSyntax, AttributeArgumentListSyntax, AttributeSyntax>
private sealed class AttributeArgumentFixer : Fixer<AttributeArgumentSyntax, AttributeArgumentListSyntax, AttributeSyntax>
{
protected override ExpressionSyntax GetExpressionOfArgument(AttributeArgumentSyntax argument)
=> argument.Expression;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ namespace Microsoft.CodeAnalysis.CSharp.CodeFixes.HideBase;

using static CSharpSyntaxTokens;

internal partial class HideBaseCodeFixProvider
internal sealed partial class HideBaseCodeFixProvider
{
private class AddNewKeywordAction(Document document, SyntaxNode node) : CodeAction
private sealed class AddNewKeywordAction(Document document, SyntaxNode node) : CodeAction
{
private readonly Document _document = document;
private readonly SyntaxNode _node = node;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace Microsoft.CodeAnalysis.CSharp.UseCollectionExpression;
[ExportCodeFixProvider(LanguageNames.CSharp, Name = PredefinedCodeFixProviderNames.UseCollectionExpressionForArray), Shared]
[method: ImportingConstructor]
[method: Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
internal partial class CSharpUseCollectionExpressionForArrayCodeFixProvider()
internal sealed partial class CSharpUseCollectionExpressionForArrayCodeFixProvider()
: AbstractUseCollectionExpressionCodeFixProvider<ExpressionSyntax>(
CSharpCodeFixesResources.Use_collection_expression,
IDEDiagnosticIds.UseCollectionExpressionForArrayDiagnosticId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace Microsoft.CodeAnalysis.CSharp.UseCollectionExpression;
[ExportCodeFixProvider(LanguageNames.CSharp, Name = PredefinedCodeFixProviderNames.UseCollectionExpressionForBuilder), Shared]
[method: ImportingConstructor]
[method: Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
internal partial class CSharpUseCollectionExpressionForBuilderCodeFixProvider()
internal sealed partial class CSharpUseCollectionExpressionForBuilderCodeFixProvider()
: AbstractUseCollectionExpressionCodeFixProvider<InvocationExpressionSyntax>(
CSharpCodeFixesResources.Use_collection_expression,
IDEDiagnosticIds.UseCollectionExpressionForBuilderDiagnosticId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace Microsoft.CodeAnalysis.CSharp.UseCollectionExpression;
[ExportCodeFixProvider(LanguageNames.CSharp, Name = PredefinedCodeFixProviderNames.UseCollectionExpressionForCreate), Shared]
[method: ImportingConstructor]
[method: Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
internal partial class CSharpUseCollectionExpressionForCreateCodeFixProvider()
internal sealed partial class CSharpUseCollectionExpressionForCreateCodeFixProvider()
: AbstractUseCollectionExpressionCodeFixProvider<InvocationExpressionSyntax>(
CSharpCodeFixesResources.Use_collection_expression,
IDEDiagnosticIds.UseCollectionExpressionForCreateDiagnosticId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace Microsoft.CodeAnalysis.CSharp.UseCollectionExpression;
[ExportCodeFixProvider(LanguageNames.CSharp, Name = PredefinedCodeFixProviderNames.UseCollectionExpressionForFluent), Shared]
[method: ImportingConstructor]
[method: Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
internal partial class CSharpUseCollectionExpressionForFluentCodeFixProvider()
internal sealed partial class CSharpUseCollectionExpressionForFluentCodeFixProvider()
: AbstractUseCollectionExpressionCodeFixProvider<InvocationExpressionSyntax>(
CSharpCodeFixesResources.Use_collection_expression,
IDEDiagnosticIds.UseCollectionExpressionForFluentDiagnosticId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace Microsoft.CodeAnalysis.CSharp.UseCollectionExpression;
[ExportCodeFixProvider(LanguageNames.CSharp, Name = PredefinedCodeFixProviderNames.UseCollectionExpressionForStackAlloc), Shared]
[method: ImportingConstructor]
[method: Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
internal partial class CSharpUseCollectionExpressionForStackAllocCodeFixProvider()
internal sealed partial class CSharpUseCollectionExpressionForStackAllocCodeFixProvider()
: AbstractUseCollectionExpressionCodeFixProvider<ExpressionSyntax>(
CSharpCodeFixesResources.Use_collection_expression,
IDEDiagnosticIds.UseCollectionExpressionForStackAllocDiagnosticId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace Microsoft.CodeAnalysis.CSharp.UseCollectionInitializer;
[ExportCodeFixProvider(LanguageNames.CSharp, Name = PredefinedCodeFixProviderNames.UseCollectionInitializer), Shared]
[method: ImportingConstructor]
[method: SuppressMessage("RoslynDiagnosticsReliability", "RS0033:Importing constructor should be [Obsolete]", Justification = "Used in test code: https://github.com/dotnet/roslyn/issues/42814")]
internal partial class CSharpUseCollectionInitializerCodeFixProvider() :
internal sealed partial class CSharpUseCollectionInitializerCodeFixProvider() :
AbstractUseCollectionInitializerCodeFixProvider<
SyntaxKind,
ExpressionSyntax,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace Microsoft.CodeAnalysis.CSharp.UseCollectionInitializer;

internal partial class CSharpUseCollectionInitializerCodeFixProvider
internal sealed partial class CSharpUseCollectionInitializerCodeFixProvider
{
/// <summary>
/// Creates the final collection-expression <c>[...]</c> that will replace the given <paramref
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace Microsoft.CodeAnalysis.CSharp.UseCollectionInitializer;
using static CSharpSyntaxTokens;
using static SyntaxFactory;

internal partial class CSharpUseCollectionInitializerCodeFixProvider
internal sealed partial class CSharpUseCollectionInitializerCodeFixProvider
{
private static BaseObjectCreationExpressionSyntax CreateObjectInitializerExpression(
BaseObjectCreationExpressionSyntax objectCreation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
namespace Microsoft.CodeAnalysis.CSharp.UseExpressionBody;

[ExportCodeFixProvider(LanguageNames.CSharp, Name = PredefinedCodeFixProviderNames.UseExpressionBody), Shared]
internal partial class UseExpressionBodyCodeFixProvider : SyntaxEditorBasedCodeFixProvider
internal sealed partial class UseExpressionBodyCodeFixProvider : SyntaxEditorBasedCodeFixProvider
{
public sealed override ImmutableArray<string> FixableDiagnosticIds { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace Microsoft.CodeAnalysis.CSharp.UsePrimaryConstructor;
[ExportCodeFixProvider(LanguageNames.CSharp, Name = PredefinedCodeFixProviderNames.UsePrimaryConstructor), Shared]
[method: ImportingConstructor]
[method: Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
internal partial class CSharpUsePrimaryConstructorCodeFixProvider() : CodeFixProvider
internal sealed partial class CSharpUsePrimaryConstructorCodeFixProvider() : CodeFixProvider
{
public override ImmutableArray<string> FixableDiagnosticIds
=> [IDEDiagnosticIds.UsePrimaryConstructorDiagnosticId];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace Microsoft.CodeAnalysis.CSharp.UsePrimaryConstructor;

using static SyntaxFactory;

internal partial class CSharpUsePrimaryConstructorCodeFixProvider : CodeFixProvider
internal sealed partial class CSharpUsePrimaryConstructorCodeFixProvider : CodeFixProvider
{
private const string s_summaryTagName = "summary";
private const string s_remarksTagName = "remarks";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

namespace Microsoft.CodeAnalysis.CSharp.UsePrimaryConstructor;

internal partial class CSharpUsePrimaryConstructorCodeFixProvider
internal sealed partial class CSharpUsePrimaryConstructorCodeFixProvider
{
#if !CODE_STYLE // Currently depends on helpers only available in workspace layer.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Microsoft.CodeAnalysis.CSharp.CodeRefactorings.AddAwait;
/// This refactoring complements the AddAwait fixer. It allows adding `await` and `await ... .ConfigureAwait(false)` even there is no compiler error to trigger the fixer.
/// </summary>
[ExportCodeRefactoringProvider(LanguageNames.CSharp, Name = PredefinedCodeRefactoringProviderNames.AddAwait), Shared]
internal partial class CSharpAddAwaitCodeRefactoringProvider : AbstractAddAwaitCodeRefactoringProvider<ExpressionSyntax>
internal sealed partial class CSharpAddAwaitCodeRefactoringProvider : AbstractAddAwaitCodeRefactoringProvider<ExpressionSyntax>
{
[ImportingConstructor]
[SuppressMessage("RoslynDiagnosticsReliability", "RS0033:Importing constructor should be [Obsolete]", Justification = "Used in test code: https://github.com/dotnet/roslyn/issues/42814")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

namespace Microsoft.CodeAnalysis.CSharp.CodeRefactorings.EnableNullable;

internal partial class EnableNullableCodeRefactoringProvider : CodeRefactoringProvider
internal sealed partial class EnableNullableCodeRefactoringProvider : CodeRefactoringProvider
{
internal sealed override CodeAnalysis.CodeRefactorings.FixAllProvider? GetFixAllProvider()
=> FixAllProvider.Instance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace Microsoft.CodeAnalysis.CSharp.CodeRefactorings.EnableNullable;
using static CSharpSyntaxTokens;

[ExportCodeRefactoringProvider(LanguageNames.CSharp, Name = PredefinedCodeRefactoringProviderNames.EnableNullable), Shared]
internal partial class EnableNullableCodeRefactoringProvider : CodeRefactoringProvider
internal sealed partial class EnableNullableCodeRefactoringProvider : CodeRefactoringProvider
{
private static readonly Func<DirectiveTriviaSyntax, bool> s_isNullableDirectiveTriviaPredicate =
directive => directive.IsKind(SyntaxKind.NullableDirectiveTrivia);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

namespace Microsoft.CodeAnalysis.CSharp.CodeRefactorings.InlineTemporary;

internal partial class CSharpInlineTemporaryCodeRefactoringProvider
internal sealed partial class CSharpInlineTemporaryCodeRefactoringProvider
{
private class ReferenceRewriter : CSharpSyntaxRewriter
private sealed class ReferenceRewriter : CSharpSyntaxRewriter
{
private readonly ISet<IdentifierNameSyntax> _conflictReferences;
private readonly ISet<IdentifierNameSyntax> _nonConflictReferences;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
namespace Microsoft.CodeAnalysis.CSharp.CodeRefactorings.InlineTemporary;

[ExportCodeRefactoringProvider(LanguageNames.CSharp, Name = PredefinedCodeRefactoringProviderNames.InlineTemporary), Shared]
internal partial class CSharpInlineTemporaryCodeRefactoringProvider
internal sealed partial class CSharpInlineTemporaryCodeRefactoringProvider
: AbstractInlineTemporaryCodeRefactoringProvider<IdentifierNameSyntax, VariableDeclaratorSyntax>
{
private static readonly SyntaxAnnotation DefinitionAnnotation = new();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace Microsoft.CodeAnalysis.CSharp.Completion.Providers;
[Shared]
[method: ImportingConstructor]
[method: Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
internal partial class DeclarationNameCompletionProvider([ImportMany] IEnumerable<Lazy<IDeclarationNameRecommender, OrderableMetadata>> recommenders) : LSPCompletionProvider
internal sealed partial class DeclarationNameCompletionProvider([ImportMany] IEnumerable<Lazy<IDeclarationNameRecommender, OrderableMetadata>> recommenders) : LSPCompletionProvider
{
private ImmutableArray<Lazy<IDeclarationNameRecommender, OrderableMetadata>> Recommenders { get; } = [.. ExtensionOrderer.Order(recommenders)];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace Microsoft.CodeAnalysis.CSharp.Completion.Providers.DeclarationName;

internal partial class DeclarationNameRecommender
internal sealed partial class DeclarationNameRecommender
{
internal class NameGenerator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace Microsoft.CodeAnalysis.CSharp.Completion.Providers;
[ExportCompletionProvider(nameof(EnumAndCompletionListTagCompletionProvider), LanguageNames.CSharp)]
[ExtensionOrder(After = nameof(CSharpSuggestionModeCompletionProvider))]
[Shared]
internal partial class EnumAndCompletionListTagCompletionProvider : LSPCompletionProvider
internal sealed partial class EnumAndCompletionListTagCompletionProvider : LSPCompletionProvider
{
private static readonly CompletionItemRules s_enumTypeRules =
CompletionItemRules.Default.WithCommitCharacterRules([CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, '.')])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Microsoft.CodeAnalysis.CSharp.Completion.Providers;

internal partial class ExplicitInterfaceMemberCompletionProvider
internal sealed partial class ExplicitInterfaceMemberCompletionProvider
{
private static class CompletionSymbolDisplay
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace Microsoft.CodeAnalysis.CSharp.Completion.Providers;

[ExportCompletionProvider(nameof(ExplicitInterfaceMemberCompletionProvider), LanguageNames.CSharp), Shared]
[ExtensionOrder(After = nameof(UnnamedSymbolCompletionProvider))]
internal partial class ExplicitInterfaceMemberCompletionProvider : LSPCompletionProvider
internal sealed partial class ExplicitInterfaceMemberCompletionProvider : LSPCompletionProvider
{
[ImportingConstructor]
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace Microsoft.CodeAnalysis.CSharp.Completion.Providers;
[ExportCompletionProvider(nameof(ExplicitInterfaceTypeCompletionProvider), LanguageNames.CSharp)]
[ExtensionOrder(After = nameof(ExplicitInterfaceMemberCompletionProvider))]
[Shared]
internal partial class ExplicitInterfaceTypeCompletionProvider : AbstractSymbolCompletionProvider<CSharpSyntaxContext>
internal sealed partial class ExplicitInterfaceTypeCompletionProvider : AbstractSymbolCompletionProvider<CSharpSyntaxContext>
{
[ImportingConstructor]
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace Microsoft.CodeAnalysis.CSharp.Completion.Providers;
[ExportCompletionProvider(nameof(FunctionPointerUnmanagedCallingConventionCompletionProvider), LanguageNames.CSharp)]
[ExtensionOrder(After = nameof(AggregateEmbeddedLanguageCompletionProvider))]
[Shared]
internal partial class FunctionPointerUnmanagedCallingConventionCompletionProvider : LSPCompletionProvider
internal sealed partial class FunctionPointerUnmanagedCallingConventionCompletionProvider : LSPCompletionProvider
{
[ImportingConstructor]
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
Expand Down Expand Up @@ -122,7 +122,7 @@ private static void AddTypes(HashSet<CompletionItem> completionItems, int contex
internal override Task<CompletionDescription> GetDescriptionWorkerAsync(Document document, CompletionItem item, CompletionOptions options, SymbolDescriptionOptions displayOptions, CancellationToken cancellationToken)
=> SymbolCompletionItem.GetDescriptionAsync(item, document, displayOptions, cancellationToken);

private class CompletionItemComparer : IEqualityComparer<CompletionItem>
private sealed class CompletionItemComparer : IEqualityComparer<CompletionItem>
{
public static readonly IEqualityComparer<CompletionItem> Instance = new CompletionItemComparer();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public TypeImportCompletionServiceFactory()
public ILanguageService CreateLanguageService(HostLanguageServices languageServices)
=> new CSharpTypeImportCompletionService(languageServices.LanguageServices.SolutionServices);

private class CSharpTypeImportCompletionService(SolutionServices services) : AbstractTypeImportCompletionService(services)
private sealed class CSharpTypeImportCompletionService(SolutionServices services) : AbstractTypeImportCompletionService(services)
{
protected override string GenericTypeSuffix
=> "<>";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace Microsoft.CodeAnalysis.CSharp.Completion.Providers;
[ExportCompletionProvider(nameof(NamedParameterCompletionProvider), LanguageNames.CSharp)]
[ExtensionOrder(After = nameof(AttributeNamedParameterCompletionProvider))]
[Shared]
internal partial class NamedParameterCompletionProvider : LSPCompletionProvider, IEqualityComparer<IParameterSymbol>
internal sealed partial class NamedParameterCompletionProvider : LSPCompletionProvider, IEqualityComparer<IParameterSymbol>
{
private const string ColonString = ":";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace Microsoft.CodeAnalysis.CSharp.Completion.Providers;
[ExportCompletionProvider(nameof(ObjectCreationCompletionProvider), LanguageNames.CSharp)]
[ExtensionOrder(After = nameof(ExplicitInterfaceTypeCompletionProvider))]
[Shared]
internal partial class ObjectCreationCompletionProvider : AbstractObjectCreationCompletionProvider<CSharpSyntaxContext>
internal sealed partial class ObjectCreationCompletionProvider : AbstractObjectCreationCompletionProvider<CSharpSyntaxContext>
{
[ImportingConstructor]
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
Expand Down
Loading

0 comments on commit bba06be

Please sign in to comment.