| File: AddImport\CSharpAddImportCodeRefactoringProvider.cs | Web Access |
| Project: src\roslyn\src\Features\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.Features.csproj (Microsoft.CodeAnalysis.CSharp.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; using System.Composition; using Microsoft.CodeAnalysis.AddImport; using Microsoft.CodeAnalysis.CodeRefactorings; using Microsoft.CodeAnalysis.CSharp.LanguageService; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Host.Mef; namespace Microsoft.CodeAnalysis.CSharp.AddImport; [ExportCodeRefactoringProvider(LanguageNames.CSharp, Name = PredefinedCodeRefactoringProviderNames.AddImport), Shared] [method: ImportingConstructor] [method: Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] internal sealed class CSharpAddImportCodeRefactoringProvider() : AbstractAddImportCodeRefactoringProvider< ExpressionSyntax, MemberAccessExpressionSyntax, NameSyntax, SimpleNameSyntax, QualifiedNameSyntax, AliasQualifiedNameSyntax, UsingDirectiveSyntax>(CSharpSyntaxFacts.Instance) { protected override string AddImportTitle => CSharpFeaturesResources.Add_using_0; protected override string AddImportAndSimplifyAllOccurrencesTitle => CSharpFeaturesResources.Add_using_0_and_simplify_all_occurrences; }