@@ -113,8 +113,7 @@ public void CreateNamespaceDeclaration(INamespaceDeclarationSyntax namespaceDecl
113
113
public void CreateFieldDeclaration ( IFieldDeclaration fieldDeclaration , IxNodeVisitor visitor )
114
114
{
115
115
if ( fieldDeclaration . IsMemberEligibleForTranspile ( this ) )
116
- {
117
- AddToSource ( fieldDeclaration . Pragmas . AddAttributes ( ) ) ;
116
+ {
118
117
AddToSource ( fieldDeclaration . Pragmas . AddedPropertiesAsAttributes ( ) ) ;
119
118
switch ( fieldDeclaration . Type )
120
119
{
@@ -195,8 +194,10 @@ public void CreateFile(IFileSyntax fileSyntax, IxNodeVisitor visitor)
195
194
fileSyntax . UsingDirectives
196
195
. Where ( p => this . Compilation . GetSemanticTree ( ) . Namespaces . Select ( p => p . FullyQualifiedName ) . Contains ( p . QualifiedIdentifierList . GetText ( ) ) ) )
197
196
{
198
- AddToSource ( $ "using Pocos.{ fileSyntaxUsingDirective . QualifiedIdentifierList . GetText ( ) } ;") ;
197
+ //AddToSource($"using {fileSyntaxUsingDirective.QualifiedIdentifierList.GetText()};");
198
+ AddToSource ( $ "using Pocos.{ fileSyntaxUsingDirective . QualifiedIdentifierList . GetText ( ) } ;") ;
199
199
}
200
+
200
201
AddToSource ( "namespace Pocos {" ) ;
201
202
fileSyntax . Declarations . ToList ( ) . ForEach ( p => p . Visit ( visitor , this ) ) ;
202
203
AddToSource ( "}" ) ;
@@ -266,8 +267,7 @@ public void CreateConfigDeclaration(IConfigurationDeclaration configurationDecla
266
267
public void CreateVariableDeclaration ( IVariableDeclaration fieldDeclaration , IxNodeVisitor visitor )
267
268
{
268
269
if ( fieldDeclaration . IsMemberEligibleForTranspile ( this ) )
269
- {
270
- AddToSource ( fieldDeclaration . Pragmas . AddAttributes ( ) ) ;
270
+ {
271
271
AddToSource ( fieldDeclaration . Pragmas . AddedPropertiesAsAttributes ( ) ) ;
272
272
switch ( fieldDeclaration . Type )
273
273
{
0 commit comments