// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem.Collections.Immutable;
usingMicrosoft.CodeAnalysis.CodeActions;
usingMicrosoft.CodeAnalysis.Tags;
usingMicrosoft.CodeAnalysis.Text;
namespaceMicrosoft.CodeAnalysis.AddImport
{
internalclassAddImportFixData
{
publicAddImportFixKindKind{get;}
/// <summary>
/// Text changes to make to the document. Usually just the import to add. May also
/// include a change to the name node the feature was invoked on to fix the casing of it.
/// May be empty for fixes that don't need to add an import and only do something like
/// add a project/metadata reference.
/// </summary>
publicImmutableArray<TextChange>TextChanges{get;}
/// <summary>
/// String to display in the lightbulb menu.
/// </summary>
publicstringTitle{get;privateset;}
/// <summary>
/// Tags that control what glyph is displayed in the lightbulb menu.
/// </summary>
publicImmutableArray<string>Tags{get;privateset;}
/// <summary>
/// The priority this item should have in the lightbulb list.
/// </summary>
publicCodeActionPriorityPriority{get;privateset;}
#regionWhenaddingP2Prefrences.
/// <summary>
/// The optional id for a <see cref="Project"/> we'd like to add a reference to.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Collections.Generic;
usingSystem.Collections.Immutable;
usingSystem.Collections.Immutable;
usingSystem.Threading;
usingSystem.Threading;
...
@@ -9,6 +8,7 @@
...
@@ -9,6 +8,7 @@
usingMicrosoft.CodeAnalysis.CodeActions;
usingMicrosoft.CodeAnalysis.CodeActions;
usingMicrosoft.CodeAnalysis.Shared.Utilities;
usingMicrosoft.CodeAnalysis.Shared.Utilities;
usingMicrosoft.CodeAnalysis.Text;
usingMicrosoft.CodeAnalysis.Text;
usingRoslyn.Utilities;
namespaceMicrosoft.CodeAnalysis.AddImport
namespaceMicrosoft.CodeAnalysis.AddImport
{
{
...
@@ -16,6 +16,8 @@ internal abstract partial class AbstractAddImportCodeFixProvider<TSimpleNameSynt
...
@@ -16,6 +16,8 @@ internal abstract partial class AbstractAddImportCodeFixProvider<TSimpleNameSynt
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem.Collections.Immutable;
usingSystem.Linq;
usingSystem.Linq;
usingMicrosoft.CodeAnalysis.CodeActions;
usingMicrosoft.CodeAnalysis.Text;
usingRoslyn.Utilities;
usingRoslyn.Utilities;
namespaceMicrosoft.CodeAnalysis.AddImport
namespaceMicrosoft.CodeAnalysis.AddImport
...
@@ -12,38 +9,18 @@ internal abstract partial class AbstractAddImportCodeFixProvider<TSimpleNameSynt
...
@@ -12,38 +9,18 @@ internal abstract partial class AbstractAddImportCodeFixProvider<TSimpleNameSynt
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem.Collections.Immutable;
usingRoslyn.Utilities;
usingMicrosoft.CodeAnalysis.CodeActions;
usingMicrosoft.CodeAnalysis.Text;
namespaceMicrosoft.CodeAnalysis.AddImport
namespaceMicrosoft.CodeAnalysis.AddImport
{
{
...
@@ -16,38 +14,30 @@ internal abstract partial class AbstractAddImportCodeFixProvider<TSimpleNameSynt
...
@@ -16,38 +14,30 @@ internal abstract partial class AbstractAddImportCodeFixProvider<TSimpleNameSynt
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem.Collections.Immutable;
usingSystem.Threading;
usingSystem.Threading;
usingSystem.Threading.Tasks;
usingSystem.Threading.Tasks;
usingMicrosoft.CodeAnalysis.CodeActions;
usingMicrosoft.CodeAnalysis.Text;
namespaceMicrosoft.CodeAnalysis.AddImport
namespaceMicrosoft.CodeAnalysis.AddImport
{
{
...
@@ -20,10 +17,8 @@ private abstract class SymbolReferenceCodeAction : AddImportCodeAction
...
@@ -20,10 +17,8 @@ private abstract class SymbolReferenceCodeAction : AddImportCodeAction
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem.Collections.Immutable;
usingSystem.Threading;
usingSystem.Threading;
usingSystem.Threading.Tasks;
usingSystem.Threading.Tasks;
usingMicrosoft.CodeAnalysis.CodeActions;
usingMicrosoft.CodeAnalysis.Packaging;
usingMicrosoft.CodeAnalysis.Packaging;
usingRoslyn.Utilities;
usingRoslyn.Utilities;
...
@@ -33,14 +31,14 @@ private partial class PackageReference : Reference
...
@@ -33,14 +31,14 @@ private partial class PackageReference : Reference