Changeset 16576 for misc/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/Analyzers/ObsoleteStorableClass/ObsoleteStorableClassFix.cs
- Timestamp:
- 01/29/19 09:41:45 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/Analyzers/ObsoleteStorableClass/ObsoleteStorableClassFix.cs
r16475 r16576 82 82 var newRoot = root.ReplaceNode(attrDecl, newAttrDecl); 83 83 84 // add using of HEAL. Fossilif the document does not already have it84 // add using of HEAL.Attic if the document does not already have it 85 85 var oldUsings = root.Usings; 86 if (oldUsings.All(x => x.Name.WithoutTrivia().ToString() != "HEAL. Fossil")) {87 var persistenceUsing = SyntaxFactory.UsingDirective(SyntaxFactory.IdentifierName("HEAL. Fossil"));86 if (oldUsings.All(x => x.Name.WithoutTrivia().ToString() != "HEAL.Attic")) { 87 var persistenceUsing = SyntaxFactory.UsingDirective(SyntaxFactory.IdentifierName("HEAL.Attic")); 88 88 newRoot = newRoot.WithUsings(oldUsings.Add(persistenceUsing)); 89 89 }
Note: See TracChangeset
for help on using the changeset viewer.