Skip to content

Commit

Permalink
Revert "Additional filtering of namespaces (#305)" (#306)
Browse files Browse the repository at this point in the history
This reverts commit 0cd8cb0.
  • Loading branch information
PTKu committed May 6, 2024
1 parent 0cd8cb0 commit 90c982a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ public void CreateFile(IFileSyntax fileSyntax, IxNodeVisitor visitor)
AddToSource("using System.Collections.Generic;");
AddToSource("using AXSharp.Connector.Localizations;");


foreach (var fileSyntaxUsingDirective in fileSyntax.UsingDirectives
.Where(p => this.Compilation.GetSemanticTree().Namespaces.Select(p => p.FullyQualifiedName).Contains(p.QualifiedIdentifierList.GetText())))
foreach (var fileSyntaxUsingDirective in fileSyntax.UsingDirectives)
{
AddToSource($"using {fileSyntaxUsingDirective.QualifiedIdentifierList.GetText()};");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,7 @@ public void CreateFile(IFileSyntax fileSyntax, IxNodeVisitor visitor)
{
AddToSource("using System;");

foreach (var fileSyntaxUsingDirective in
fileSyntax.UsingDirectives
.Where(p => this.Compilation.GetSemanticTree().Namespaces.Select(p => p.FullyQualifiedName).Contains(p.QualifiedIdentifierList.GetText())))
foreach (var fileSyntaxUsingDirective in fileSyntax.UsingDirectives)
{
AddToSource($"using Pocos.{fileSyntaxUsingDirective.QualifiedIdentifierList.GetText()};");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
using AXSharp.Connector.ValueTypes;
using System.Collections.Generic;
using AXSharp.Connector.Localizations;
using Simatic.Ax.Stateframework;
using Simatic.Ax.StatePattern;

namespace Simatic.Ax.StateFramework
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
using Pocos.Simatic.Ax.Stateframework;
using Pocos.Simatic.Ax.StatePattern;

namespace Pocos
{
Expand Down

0 comments on commit 90c982a

Please sign in to comment.