Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NEW-FEATURE] Update to stc v6 (#303)
* Create draft PR for #302 * The most significant changes include the refactoring of a method in `IxNodeVisitor.cs`, the addition of a new class in `abstract_members.g.cs`, and the update of `@ax/stc` version in `apax-lock.json` and `apax.yml`. 1. The method `GetFullyQualifiedNameFromCurrentSyntaxTree` in `IxNodeVisitor.cs` was refactored. The updated method now replaces '|' with '.' in the qualified name before returning it. This change ensures that the fully qualified name is in the correct format. 2. A new test class `AbstractMotor` was added to `abstract_members.g.cs`. This class includes various properties, methods, and tasks. The addition of this class expands the functionality of the codebase. 3. The version of `@ax/stc` and its dependencies were updated from `5.3.28` to `6.1.59` in `apax-lock.json`. This update ensures that the latest version of the package is being used, which may include important bug fixes or new features. 4. Similarly, the version of `@ax/stc` was updated from `5.3.28` to `6.1.59` in `apax.yml`. Additionally, `apaxVersion` was updated from `3.1.0` to `3.1.1`. These updates ensure that the latest versions of the packages are being used. The most significant changes include the addition of new package references, changes in the method of creating a compilation, and the addition of new namespaces and classes. 1. The package references in AXSharp.Compiler.csproj were reformatted and a new package reference "System.Collections.Immutable" was added. This change could potentially improve the performance and efficiency of the code. 2. A new reference to AX.ST.Compiler.PluginAbstractions.dll was added in AXSharp.Compiler.csproj. This could potentially extend the functionality of the compiler. 3. A new namespace "AX.ST.Semantic.Analyzer" was added in AXSharpProject.cs. This could potentially improve the organization and structure of the code. 4. The method of creating a compilation was changed in AXSharpProject.cs and Program.cs, now it also includes a list of ISemanticAnalyzer and a null parameter respectively. This could potentially improve the flexibility and robustness of the code. 5. The way metadata is generated was changed in AXSharpProject.cs, now it uses the Compilation property of the compilation object. This could potentially improve the accuracy and efficiency of the metadata generation. 6. Several methods in IxNodeVisitor.cs and MyNodeVisitor.cs were commented out and new ones were added, changing the way the visitor interacts with different types of nodes. This could potentially improve the functionality and efficiency of the visitor. 7. In CsOnlinerSourceBuilder.cs and CsPlainSourceBuilder.cs, a workaround was added for abstract classes where the semantic model does not contain pragmas even when declared in the source. This could potentially improve the robustness of the code. 8. In AXSharp.Compiler.CsTests.csproj, new test files were added and some existing ones were updated. This could potentially improve the coverage and effectiveness of the tests. 9. In CsSourceBuilderTests.cs, a new test method "abstract_members" was added. This could potentially improve the coverage and effectiveness of the tests. 10. In `file_with_usings.g.cs` and `file_with_usings.st`, several `using` statements were removed and new classes were added to various namespaces. This could potentially improve the organization and structure of the code. 11. In `AXSharp.CompilerTests.csproj`, a new reference to `AX.ST.Compiler.PluginAbstractions.dll` was added. This could potentially extend the functionality of the compiler. 12. In `IxNodeVisitorTests.cs` and `IxNodeVisitorTestsSemantics.cs`, several test methods were commented out and some changes were made to the setup of the `_compilation` object. This could potentially improve the coverage and effectiveness of the tests. 13. In `Directory.Packages.props`, a new package reference to `System.Collections.Immutable` was added. This change could potentially improve the performance and efficiency of the code. 14. In `abstract_members.st`, a new abstract class `AbstractMotor` was added with two public variables. This could potentially extend the functionality of the code. * The most significant change is the update of the `next-version` in the `GitVersion.yml` file from `0.18.0` to `0.19.0`. This change signifies that the next version of the software to be deployed will be `0.19.0`. There have been no alterations to the `mode` or `branches` configurations. List of Changes: 1. The `next-version` in the `GitVersion.yml` file has been updated from `0.18.0` to `0.19.0`. This change indicates that the next version of the software to be deployed will be `0.19.0`. (See `GitVersion.yml` for reference) 2. No changes have been made to the `mode` or `branches` configurations. The `mode` remains as `ContinuousDeployment` and the `branches` configuration continues to apply to the `main` branch with a `ContinuousDelivery` mode and no specific tag. (See `GitVersion.yml` for reference) * The most significant changes include the addition of the `Google.Protobuf` package to several project files and the `Directory.Packages.props` file, as well as the removal of the `MonsterData` and `RealMonsterData` namespaces from the `configuration.g.cs` file in various classes and namespaces. Here is a detailed list of the changes: 1. The `Google.Protobuf` package was added to the `AXSharp.ixc.csproj`, `AXSharp.ixd.csproj`, and `AXSharp.ixr.csproj` files. This change indicates that the Google Protocol Buffers, a language-neutral, platform-neutral, extensible mechanism for serializing structured data, is now being used in these projects. 2. The `CommandLineParser` package was reformatted in the `AXSharp.ixc.csproj`, `AXSharp.ixd.csproj`, and `AXSharp.ixr.csproj` files. Although the package itself was not modified, the reformatting could have been done for better readability or to adhere to coding standards. 3. Several packages (`LibGit2Sharp`, `Newtonsoft.Json`, `YamlDotNet`, `Microsoft.CodeAnalysis.CSharp`, and `ResXResourceReader.NetStandard`) were reformatted in the `AXSharp.ixd.csproj` and `AXSharp.ixr.csproj` files. Again, no changes were made to the packages themselves. 4. The `Google.Protobuf` package with version `3.22.0` was added to the `Directory.Packages.props` file. This change ensures that all projects in the solution that use this package will use the same version, promoting consistency across the solution. 5. The `MonsterData` namespace was removed from the `configuration.g.cs` file in the `ix_integration_plcTwinController` class and the `Pocos` namespace. This could indicate a refactoring or restructuring of the code. 6. The `RealMonsterData` namespace was removed from the `configuration.g.cs` file in the `integratedTwinController` class and the `Pocos` namespace. Similar to the previous point, this could be due to a refactoring or restructuring of the code. * asp --------- Co-authored-by: PTKu <[email protected]>
- Loading branch information