aboutsummaryrefslogtreecommitdiffstats
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* Check gen rule circularities and dead-endsMiguel Costa2025-11-131-0/+50
| | | | | Change-Id: I5758a0127be73964056b91da560a3f38de37eb8b Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Add ConcurrentSet tests and refactor core implementationKarsten Heimrich2025-10-021-3/+6
| | | | | | | | | | | * Add Test_ConcurrentSet.cs with functionality tests. * Implement IReadOnlyCollection<T> rather than IEnumerable<T> to expose Count property. * Remove Items property initializer cause it's ignored anyway. * Add Clear() method. Change-Id: I05a45253688cc6cabb57c5274a9d38990525ccbd Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Add LazyFactory tests and refactor core implementationKarsten Heimrich2025-10-021-26/+115
| | | | | | | | | | | | | | | * Add new Test_Utils MSTest project for unit testing. * Add Test_LazyFactory{Get|Set|Helper).cs with functionality tests. * Rename Objs to ObjectsCache and update cache logic. * Extract method to validate and split the given property expression. * Add method to determine whether the given expression contains any method call nodes. * Update Get method to not cache default values and implement fallback to real property reads. * Implement functionality to fully resolve owner instances or Type. Change-Id: Ieef01fb862829c9402603b03de6d5374765cce0d Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Fix "duplicate placeholder" error in testsMiguel Costa2025-09-292-0/+7
| | | | | | | Resets the in-memory generator internal state for every run. Change-Id: I448d42354f47c248a62becbf89f0267ab23490c9 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Modify LazyFactoryMiguel Costa2025-08-072-2/+5
| | | | | | | | | * Only notify property change if the new value is different. * Always notify property change, regardless of whether the owner implements INotifyPropertyChanged or not. Change-Id: Ifc5a48bce3fdcdc537754fd353561f3c34b53596 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Modify utility librariesMiguel Costa2025-08-064-0/+95
| | | | | | | | | * Added ConcurrentPriorityList * Added Concurrent library with Timestamp class * Generate assembly names with 'Qt.DotNet.Utils' prefix Change-Id: If938890f6483cf3e6b3753abfaa24f5a5d972c1c Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Add utility modulesMiguel Costa2025-07-024-0/+94
Change-Id: I3b15fccc69d4c45f60f8fd24fb1945b1528a22ba Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>