Changeset 14989 for trunk/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/Analyzers/MissingStorableConstructor/MissingStorableConstructorFix.cs
- Timestamp:
- 05/16/17 15:56:38 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/Analyzers/MissingStorableConstructor/MissingStorableConstructorFix.cs
r14985 r14989 15 15 namespace PersistenceCodeFix { 16 16 [ExportCodeFixProvider(LanguageNames.CSharp, Name = nameof(MissingStorableConstructorFix)), Shared] 17 public sealed class MissingStorableConstructorFix : CodeFixProvider {17 public sealed class MissingStorableConstructorFix : CodeFixProvider, IDocumentCodeFixProvider { 18 18 private const string title = "Add storable constructor"; 19 19 … … 23 23 24 24 public sealed override FixAllProvider GetFixAllProvider() { 25 return WellKnownFixAllProviders.BatchFixer;25 return SequentialFixAllProvider.Instance; 26 26 } 27 27 … … 124 124 return members; 125 125 } 126 127 public Task<Document> FixDocumentAsync(Document document, SyntaxNode node, CancellationToken cancellationToken) { 128 return AddStorableConstructor(document, (BaseTypeDeclarationSyntax)node, cancellationToken); 129 } 126 130 } 127 131 }
Note: See TracChangeset
for help on using the changeset viewer.