Skip to content

Commit 1c19e54

Browse files
committed
removes CLR attributes from pocos due to possible conflicts
1 parent 7a88231 commit 1c19e54

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/AXSharp.compiler/src/AXSharp.Cs.Compiler/Plain/CsPlainSourceBuilder.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ public void CreateNamespaceDeclaration(INamespaceDeclarationSyntax namespaceDecl
113113
public void CreateFieldDeclaration(IFieldDeclaration fieldDeclaration, IxNodeVisitor visitor)
114114
{
115115
if (fieldDeclaration.IsMemberEligibleForTranspile(this))
116-
{
117-
AddToSource(fieldDeclaration.Pragmas.AddAttributes());
116+
{
118117
AddToSource(fieldDeclaration.Pragmas.AddedPropertiesAsAttributes());
119118
switch (fieldDeclaration.Type)
120119
{
@@ -195,8 +194,10 @@ public void CreateFile(IFileSyntax fileSyntax, IxNodeVisitor visitor)
195194
fileSyntax.UsingDirectives
196195
.Where(p => this.Compilation.GetSemanticTree().Namespaces.Select(p => p.FullyQualifiedName).Contains(p.QualifiedIdentifierList.GetText())))
197196
{
198-
AddToSource($"using Pocos.{fileSyntaxUsingDirective.QualifiedIdentifierList.GetText()};");
197+
//AddToSource($"using {fileSyntaxUsingDirective.QualifiedIdentifierList.GetText()};");
198+
AddToSource($"using Pocos.{fileSyntaxUsingDirective.QualifiedIdentifierList.GetText()};");
199199
}
200+
200201
AddToSource("namespace Pocos {");
201202
fileSyntax.Declarations.ToList().ForEach(p => p.Visit(visitor, this));
202203
AddToSource("}");
@@ -266,8 +267,7 @@ public void CreateConfigDeclaration(IConfigurationDeclaration configurationDecla
266267
public void CreateVariableDeclaration(IVariableDeclaration fieldDeclaration, IxNodeVisitor visitor)
267268
{
268269
if (fieldDeclaration.IsMemberEligibleForTranspile(this))
269-
{
270-
AddToSource(fieldDeclaration.Pragmas.AddAttributes());
270+
{
271271
AddToSource(fieldDeclaration.Pragmas.AddedPropertiesAsAttributes());
272272
switch (fieldDeclaration.Type)
273273
{

0 commit comments

Comments
 (0)