Commit 1b2e428
authored
Internal improvements 6 (#29)
* Add ByRefService and ByRefServiceInterface with by-reference parameter methods
* Add UnpackService and ArgumentUnpackingTest for argument unpacking functionality
* Add UnsealedPayloadService and ComplexUnsealedShapesTest for dynamic shape processing
* Add CollisionService and related traits for method conflict resolution testing
* Add trait alias caching and retrieval in HierarchyResolver for improved performance
* Add ReadonlyUser and UninitializedReadonlyContainer classes with tests for readonly properties
* Add AnonymousContractInterface and ReadonlyOrder classes with tests for anonymous class contracts
* Add Suit and TransactionStatus enums with tests for key-of and value-of functionality
* Add ConditionalReturnService and MultiBranchConditionalReturnsTest for complex return type handling
* Add DnfService and DnfAndComplexIntersectionsTest for handling complex intersections and type aliases
* Add DeepOffsetContainer and DeepOffsetAccessTest for multi-level nested offset access and type validation
* Add CurriedPipelineService and tests for curried callable validation and type checking
* Add CallableTypeNode handling in ReturnChecker for callable return type validation
* Add CallableTypeNode support and enhance callable handling in various services
* Add GenericStreamService and tests for generic iterable and generator functionality
* Enhance GeneratorChecker and RuntimeTypeChecker to support context-aware type validation with $thisOrClass parameter
* Add FirstClassCallableService and corresponding tests for first-class callable validation
* Add MultiTemplateBag class and corresponding tests for multi-template functionality
* Add CRLF line-drift stress tests for source transformation
* Refactor CRLF line-drift tests to ensure Windows compatibility and improve line index assertions
* Fix debug_backtrace function retrieval in ParamChecker and ReturnChecker for improved reliability
* Enhance documentation on generics, callables, and iterators
- Added sections on simultaneous first-use multi-template inference and generic callables with template substitution in generics and bounds documentation.
- Expanded explanations on conditional types, negated generic conditionals, and generic iterables with template substitution.
- Introduced detailed examples for generic generators and interactive generators, including validation of sent values.
- Updated arrays and shapes documentation to include key/value extractions and implicit keyless tuple syntax.
- Improved clarity on callable contracts, including strict closure instance contracts and higher-order callables.
- Enhanced iterator and generator documentation with lazy validation and multi-level iterator unwrapping.
* Fix path comparison in TypeError exception handling for CRLF tests1 parent 9253f39 commit 1b2e428
55 files changed
Lines changed: 3348 additions & 167 deletions
File tree
- .github/workflows
- docs
- advanced
- core-concepts
- generics
- supported-types
- src
- Contract
- Internal
- Checker
- Visitor
- Resolver
- Validator
- Wrapper
- tests
- Fixtures
- Anonymous
- ByRef
- Callables
- Conditionals
- Dnf
- Enums
- Generics
- Iterators
- Readonly
- Shapes
- Traits
- Types
- Unpack
- TypeChecking
- ArraysAndShapes
- Boundaries
- CallablesAndIterators
- Generics
- InheritanceAndAttributes
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
286 | 337 | | |
287 | 338 | | |
288 | 339 | | |
| |||
338 | 389 | | |
339 | 390 | | |
340 | 391 | | |
341 | | - | |
| 392 | + | |
342 | 393 | | |
343 | 394 | | |
344 | 395 | | |
| |||
435 | 486 | | |
436 | 487 | | |
437 | 488 | | |
438 | | - | |
| 489 | + | |
439 | 490 | | |
440 | 491 | | |
441 | 492 | | |
| |||
445 | 496 | | |
446 | 497 | | |
447 | 498 | | |
| 499 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
69 | 211 | | |
70 | 212 | | |
71 | 213 | | |
| |||
0 commit comments