Free cookie consent management tool by TermsFeed Policy Generator

Changeset 16473 for misc/tools


Ignore:
Timestamp:
12/31/18 07:29:15 (6 years ago)
Author:
gkronber
Message:

#2520 changed name and type of parameter for StorableConstructor

Location:
misc/tools/PersistenceCodeFix/PersistenceCodeFix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • misc/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix.Test/UnitTests.cs

    r14990 r16473  
    3232    {
    3333        [StorableConstructor]
    34         protected A(bool deserializing)
     34        protected A(StorableConstructorFlag _)
    3535        {
    3636        }
     
    6060    {
    6161        [StorableConstructor]
    62         protected A(bool deserializing)
     62        protected A(StorableConstructorFlag _)
    6363        {
    6464        }
     
    6969    {
    7070        [StorableConstructor]
    71         protected B(bool deserializing) : base(deserializing)
     71        protected B(StorableConstructorFlag _) : base(_)
    7272        {
    7373        }
  • misc/tools/PersistenceCodeFix/PersistenceCodeFix/PersistenceCodeFix/Analyzers/MissingStorableConstructor/MissingStorableConstructorFix.cs

    r14989 r16473  
    5858      paramList = paramList.AddParameters(
    5959        SyntaxFactory.Parameter(
    60           SyntaxFactory.Identifier("deserializing"))
    61             .WithType(SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.BoolKeyword))));
     60          SyntaxFactory.Identifier("_"))
     61            .WithType(SyntaxFactory.ParseTypeName("StorableConstructorFlag")));
    6262
    6363      // create initializer args
     
    6565      initArgs = initArgs.AddArguments(
    6666        SyntaxFactory.Argument(
    67           SyntaxFactory.IdentifierName("deserializing")));
     67          SyntaxFactory.IdentifierName("_")));
    6868
    6969      // create initializer
Note: See TracChangeset for help on using the changeset viewer.