Changeset 16469 for misc/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/Analyzers/ObsoleteStorableClass/ObsoleteStorableClassFix.cs
- Timestamp:
- 12/29/18 21:13:46 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/Analyzers/ObsoleteStorableClass/ObsoleteStorableClassFix.cs
r14989 r16469 82 82 var newRoot = root.ReplaceNode(attrDecl, newAttrDecl); 83 83 84 // add using of H euristicLab.Persistenceif the document does not already have it84 // add using of HEAL.Fossil if the document does not already have it 85 85 var oldUsings = root.Usings; 86 if (oldUsings.All(x => x.Name.WithoutTrivia().ToString() != "H euristicLab.Persistence")) {87 var persistenceUsing = SyntaxFactory.UsingDirective(SyntaxFactory.IdentifierName("H euristicLab.Persistence"));86 if (oldUsings.All(x => x.Name.WithoutTrivia().ToString() != "HEAL.Fossil")) { 87 var persistenceUsing = SyntaxFactory.UsingDirective(SyntaxFactory.IdentifierName("HEAL.Fossil")); 88 88 newRoot = newRoot.WithUsings(oldUsings.Add(persistenceUsing)); 89 89 }
Note: See TracChangeset
for help on using the changeset viewer.