Changeset 16576 for misc/tools
- Timestamp:
- 01/29/19 09:41:45 (6 years ago)
- Location:
- misc/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/Analyzers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/Analyzers/MissingStorableType/MissingStorableTypeFix.cs
r16475 r16576 100 100 var newRoot = root.ReplaceNode(baseTypeDecl, newBaseTypeDecl); 101 101 102 // add using of HEAL. Fossilif the document does not already have it102 // add using of HEAL.Attic if the document does not already have it 103 103 var oldUsings = root.Usings; 104 if (oldUsings.All(x => x.Name.WithoutTrivia().ToString() != "HEAL. Fossil")) {105 var persistenceUsing = SyntaxFactory.UsingDirective(SyntaxFactory.IdentifierName("HEAL. Fossil"));104 if (oldUsings.All(x => x.Name.WithoutTrivia().ToString() != "HEAL.Attic")) { 105 var persistenceUsing = SyntaxFactory.UsingDirective(SyntaxFactory.IdentifierName("HEAL.Attic")); 106 106 newRoot = newRoot.WithUsings(oldUsings.Add(persistenceUsing)); 107 107 } -
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.