ix-ax / axsharp

[This repository is for active development.] AX# binds SIMATIC AX based projects with .NET ecosystem.
https://ix-ax.github.io/axsharp/
MIT License
48 stars 11 forks source link

Additional filtering of namespaces #305

Closed PTKu closed 4 months ago

PTKu commented 4 months ago

The most significant changes involve updates to the CsOnlinerSourceBuilder and CsPlainSourceBuilder classes, which now filter UsingDirectives based on the presence of the namespace's fully qualified name in the semantic tree of the compilation. This is achieved through a LINQ query.

Changes:

  1. The CsOnlinerSourceBuilder and CsPlainSourceBuilder classes have been updated to filter UsingDirectives based on whether the fully qualified name of the namespace is present in the semantic tree of the compilation. This is done using a LINQ query that checks if the FullyQualifiedName of each namespace in the semantic tree is contained in the QualifiedIdentifierList of the UsingDirectives.