@@ -397,6 +397,8 @@ private void GenerateAssemblyAttributes()
397
397
this . generator . DeclareAttribute ( typeof ( AssemblyCopyrightAttribute ) , this . AssemblyCopyright ) ;
398
398
}
399
399
}
400
+
401
+ this . generator . EndAssemblyAttributes ( ) ;
400
402
}
401
403
402
404
private List < KeyValuePair < string , ( object Value , bool EmitIfEmpty /* Only applies to string values */ ) > > GetFieldsForThisAssembly ( )
@@ -658,6 +660,10 @@ internal virtual void StartAssemblyAttributes()
658
660
{
659
661
}
660
662
663
+ internal virtual void EndAssemblyAttributes ( )
664
+ {
665
+ }
666
+
661
667
internal abstract void DeclareAttribute ( Type type , string arg ) ;
662
668
663
669
internal abstract void StartThisAssemblyClass ( ) ;
@@ -726,6 +732,11 @@ internal override void StartAssemblyAttributes()
726
732
this . CodeBuilder . AppendLine ( $ "namespace { this . Namespace } ") ;
727
733
}
728
734
735
+ internal override void EndAssemblyAttributes ( )
736
+ {
737
+ this . CodeBuilder . AppendLine ( "do()" ) ;
738
+ }
739
+
729
740
internal override void DeclareAttribute ( Type type , string arg )
730
741
{
731
742
this . CodeBuilder . AppendLine ( $ "[<assembly: { type . FullName } (\" { arg } \" )>]") ;
@@ -738,7 +749,6 @@ internal override void EndThisAssemblyClass()
738
749
739
750
internal override void StartThisAssemblyClass ( )
740
751
{
741
- this . CodeBuilder . AppendLine ( "do()" ) ;
742
752
this . CodeBuilder . AppendLine ( $ "#if { CompilerDefinesAroundGeneratedCodeAttribute } ") ;
743
753
this . CodeBuilder . AppendLine ( $ "[<System.CodeDom.Compiler.GeneratedCode(\" { GeneratorName } \" ,\" { GeneratorVersion } \" )>]") ;
744
754
this . CodeBuilder . AppendLine ( "#endif" ) ;
0 commit comments