@ -103,7 +103,9 @@ namespace ICSharpCode.NRefactory.CSharp
first = false ;
first = false ;
if ( mc . OptAttributes ! = null ) {
if ( mc . OptAttributes ! = null ) {
foreach ( var attr in mc . OptAttributes . Sections ) {
foreach ( var attr in mc . OptAttributes . Sections ) {
unit . AddChild ( ConvertAttributeSection ( attr ) , SyntaxTree . MemberRole ) ;
var section = ConvertAttributeSection ( attr ) ;
if ( section ! = null )
unit . AddChild ( section , SyntaxTree . MemberRole ) ;
}
}
}
}
}
}
@ -958,7 +960,8 @@ namespace ICSharpCode.NRefactory.CSharp
return ;
return ;
foreach ( var attr in attrs . Sections ) {
foreach ( var attr in attrs . Sections ) {
var section = ConvertAttributeSection ( attr ) ;
var section = ConvertAttributeSection ( attr ) ;
if ( section ! = null )
if ( section = = null | | section . AttributeTarget = = "module" | | section . AttributeTarget = = "assembly" )
continue ;
parent . AddChild ( section , role ) ;
parent . AddChild ( section , role ) ;
}
}
}
}