[twincat] TwinCAT — ENUM and ALIAS at discovery #345
Reference in New Issue
Block a user
Delete Branch "auto/twincat/1.5"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
ENUM and ALIAS symbols now surface during discovery instead of being silently dropped.
MapSymbolTypeName(string?)with newResolveSymbolDataType(IDataType?)that inspectsDataTypeCategoryand walks theIAliasType.BaseTypechain.IEnumType : IAliasType, same code path.symbol.DataTypedirectly.Test plan
dotnet build src/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT— clean (0 / 0)dotnet test tests/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Tests— 151 / 151 passed (8 new inTwinCATTypeResolutionTests: single alias, chained alias, alias to unrecognised primitive, primitive direct, null, self-referential cycle, INT-based enum, DINT-based enum)🤖 Auto-generated by the Mode-B execution loop. Closes #309.
Closes #309