Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/29/18 21:13:46 (5 years ago)
Author:
gkronber
Message:

#2520: Adapted VS code fixes:

  • using HeuristicLab.Persistence -> using HEAL.Fossil
  • Made missing StorableCtor a Warning
  • Ignore StorableCtor for structs and interfaces
File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/Analyzers/ObsoleteStorableClass/ObsoleteStorableClassFix.cs

    r14989 r16469  
    8282      var newRoot = root.ReplaceNode(attrDecl, newAttrDecl);
    8383
    84       // add using of HeuristicLab.Persistence if the document does not already have it
     84      // add using of HEAL.Fossil if the document does not already have it
    8585      var oldUsings = root.Usings;
    86       if (oldUsings.All(x => x.Name.WithoutTrivia().ToString() != "HeuristicLab.Persistence")) {
    87         var persistenceUsing = SyntaxFactory.UsingDirective(SyntaxFactory.IdentifierName("HeuristicLab.Persistence"));
     86      if (oldUsings.All(x => x.Name.WithoutTrivia().ToString() != "HEAL.Fossil")) {
     87        var persistenceUsing = SyntaxFactory.UsingDirective(SyntaxFactory.IdentifierName("HEAL.Fossil"));
    8888        newRoot = newRoot.WithUsings(oldUsings.Add(persistenceUsing));
    8989      }
Note: See TracChangeset for help on using the changeset viewer.