Exemple #1
0
 /// <inheritdoc/>
 protected override IEnumerable <MemberDeclarationSyntax> FilterDeclaredMembers(
     GeneratorExecutionContext context,
     AttributeData attributeData,
     ClassDeclarationSyntax classDeclaration,
     INamedTypeSymbol classDeclarationSymbol,
     ClassDeclarationSyntax sourceDeclaration)
 {
     // If requested, only include the event and the basic methods to raise it, but not the additional helpers
     if (attributeData.HasNamedArgument("IncludeAdditionalHelperMethods", false))
     {
         return(sourceDeclaration.Members.Where(static member =>