Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/16/17 15:56:38 (7 years ago)
Author:
jkarder
Message:

#2520: worked on persistence code fix

  • added SequentialFixAllProvider
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/Analyzers/MissingStorableConstructor/MissingStorableConstructorFix.cs

    r14985 r14989  
    1515namespace PersistenceCodeFix {
    1616  [ExportCodeFixProvider(LanguageNames.CSharp, Name = nameof(MissingStorableConstructorFix)), Shared]
    17   public sealed class MissingStorableConstructorFix : CodeFixProvider {
     17  public sealed class MissingStorableConstructorFix : CodeFixProvider, IDocumentCodeFixProvider {
    1818    private const string title = "Add storable constructor";
    1919
     
    2323
    2424    public sealed override FixAllProvider GetFixAllProvider() {
    25       return WellKnownFixAllProviders.BatchFixer;
     25      return SequentialFixAllProvider.Instance;
    2626    }
    2727
     
    124124      return members;
    125125    }
     126
     127    public Task<Document> FixDocumentAsync(Document document, SyntaxNode node, CancellationToken cancellationToken) {
     128      return AddStorableConstructor(document, (BaseTypeDeclarationSyntax)node, cancellationToken);
     129    }
    126130  }
    127131}
Note: See TracChangeset for help on using the changeset viewer.