Skip to content

Commit

Permalink
removes CLR attributes from pocos due to possible conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
PTKu committed Dec 2, 2024
1 parent 7a88231 commit 1c19e54
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ public void CreateNamespaceDeclaration(INamespaceDeclarationSyntax namespaceDecl
public void CreateFieldDeclaration(IFieldDeclaration fieldDeclaration, IxNodeVisitor visitor)
{
if (fieldDeclaration.IsMemberEligibleForTranspile(this))
{
AddToSource(fieldDeclaration.Pragmas.AddAttributes());
{
AddToSource(fieldDeclaration.Pragmas.AddedPropertiesAsAttributes());
switch (fieldDeclaration.Type)
{
Expand Down Expand Up @@ -195,8 +194,10 @@ public void CreateFile(IFileSyntax fileSyntax, IxNodeVisitor visitor)
fileSyntax.UsingDirectives
.Where(p => this.Compilation.GetSemanticTree().Namespaces.Select(p => p.FullyQualifiedName).Contains(p.QualifiedIdentifierList.GetText())))
{
AddToSource($"using Pocos.{fileSyntaxUsingDirective.QualifiedIdentifierList.GetText()};");
//AddToSource($"using {fileSyntaxUsingDirective.QualifiedIdentifierList.GetText()};");
AddToSource($"using Pocos.{fileSyntaxUsingDirective.QualifiedIdentifierList.GetText()};");
}

AddToSource("namespace Pocos {");
fileSyntax.Declarations.ToList().ForEach(p => p.Visit(visitor, this));
AddToSource("}");
Expand Down Expand Up @@ -266,8 +267,7 @@ public void CreateConfigDeclaration(IConfigurationDeclaration configurationDecla
public void CreateVariableDeclaration(IVariableDeclaration fieldDeclaration, IxNodeVisitor visitor)
{
if (fieldDeclaration.IsMemberEligibleForTranspile(this))
{
AddToSource(fieldDeclaration.Pragmas.AddAttributes());
{
AddToSource(fieldDeclaration.Pragmas.AddedPropertiesAsAttributes());
switch (fieldDeclaration.Type)
{
Expand Down

0 comments on commit 1c19e54

Please sign in to comment.