Changeset 16473
- Timestamp:
- 12/31/18 07:29:15 (6 years ago)
- Location:
- misc/tools/PersistenceCodeFix/PersistenceCodeFix
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix.Test/UnitTests.cs
r14990 r16473 32 32 { 33 33 [StorableConstructor] 34 protected A( bool deserializing)34 protected A(StorableConstructorFlag _) 35 35 { 36 36 } … … 60 60 { 61 61 [StorableConstructor] 62 protected A( bool deserializing)62 protected A(StorableConstructorFlag _) 63 63 { 64 64 } … … 69 69 { 70 70 [StorableConstructor] 71 protected B( bool deserializing) : base(deserializing)71 protected B(StorableConstructorFlag _) : base(_) 72 72 { 73 73 } -
misc/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/Analyzers/MissingStorableConstructor/MissingStorableConstructorFix.cs
r14989 r16473 58 58 paramList = paramList.AddParameters( 59 59 SyntaxFactory.Parameter( 60 SyntaxFactory.Identifier(" deserializing"))61 .WithType(SyntaxFactory.P redefinedType(SyntaxFactory.Token(SyntaxKind.BoolKeyword))));60 SyntaxFactory.Identifier("_")) 61 .WithType(SyntaxFactory.ParseTypeName("StorableConstructorFlag"))); 62 62 63 63 // create initializer args … … 65 65 initArgs = initArgs.AddArguments( 66 66 SyntaxFactory.Argument( 67 SyntaxFactory.IdentifierName(" deserializing")));67 SyntaxFactory.IdentifierName("_"))); 68 68 69 69 // create initializer
Note: See TracChangeset
for help on using the changeset viewer.