AyCode.Core/AyCode.Core.Tests
Loretta 8f665c5c4d Detect circular references in source generator; depth fixes
Added compile-time cycle detection for [AcBinarySerializable] types in AcBinarySourceGenerator, reporting ACBIN001 warnings to guide reference handling. Increased depth increment for nested serialization to improve max depth enforcement. Refactored collection element depth checks for clarity. Updated tests to conditionally assign Parent and commented out a redundant assertion. Simplified slot bounds check in AcSerializerContextBase.

Detect circular references at compile time in source gen

Added DFS-based cycle detection to AcBinarySourceGenerator, reporting ACBIN001 warnings for circular reference chains among [AcBinarySerializable] types. Increased depth increment for nested serialization from +1 to +2 to improve handling of deep/circular structures. Adjusted null-check logic for collections to respect MaxDepth. Updated tests to conditionally set circular references and commented out assertions for Parent when not applicable. Minor slot bounds check fix in AcSerializerContextBase.
2026-02-28 07:17:50 +01:00
..
Compression Refactor serializer tests, fix deserializer bugs, add Gzip 2025-12-19 19:29:12 +01:00
GeneratedWriters Source-generated scan pass for SGen binary serialization 2026-02-19 16:40:16 +01:00
Serialization Detect circular references in source generator; depth fixes 2026-02-28 07:17:50 +01:00
TestModels Improve circular reference handling in binary serializer 2026-02-23 16:01:37 +01:00
AyCode.Core.Tests.csproj Add MemoryPack benchmarks and model support 2026-02-16 07:59:24 +01:00
GlobalUsings.cs database improvements... 2023-11-23 22:38:13 +01:00
JsonExtensionTests.cs Update enum values, PropertySkip code, and add int tests 2026-01-05 09:44:02 +01:00
TestModelBase.cs refactoring, improvements, fixes, etc... 2024-05-01 17:07:48 +02:00