Example #1
0
 internal static void Replace(this IMemberList members, NestedStaticPartialClassMethodCollectionWithCodeAnalysis value)
 {
     members.CombineList(
         new MemberListSyntax(nameof(value.Methods), value.Methods.Select(method => method.Syntax)),
         new MemberListSyntax(nameof(value.PartialMethodDefinitions), value.PartialMethodDefinitions.Select(method => method.Syntax)),
         new MemberListSyntax(nameof(value.PartialMethodImplementations), value.PartialMethodImplementations.Select(method => method.Syntax)));
 }
Example #2
0
 internal static void Replace(this IMemberList members, PartialStructMethodCollectionWithCodeAnalysis value)
 {
     members.CombineList(
         new MemberListSyntax(nameof(value.Methods), value.Methods.Select(method => method.Syntax)),
         new MemberListSyntax(nameof(value.ExplicitInterfaceMethods), value.ExplicitInterfaceMethods.Select(method => method.Syntax)),
         new MemberListSyntax(nameof(value.PartialMethodDefinitions), value.PartialMethodDefinitions.Select(method => method.Syntax)),
         new MemberListSyntax(nameof(value.PartialMethodImplementations), value.PartialMethodImplementations.Select(method => method.Syntax)));
 }