3 Commits
Author SHA1 Message Date
Rafal Sroka f1b3fa1361 Add changes generated by rake generate_internal_boilerplate_code 2025-05-13 22:43:20 +02:00
Alexandre Podlewski d2e3d8bc4f Feature/typed throws support (#1401)
* Update Swift Syntax dependency

* Replace deprecated use of `throwsSpecifier` with `throwsClause.throwsSpecifier`

* Add support to typed throws for Method

* Add support to typed throws for Variables

* Add support to typed throws for Subscript

* Add support to typed throws for Closure

* Update AutoMokable stencil to support typed throws

* Consider throws(Never) as non throwing

* Add a flag on Method to know if the thrown error is a generic type

* Safely handle unsupported generic typed throws in AutoMockable template

* Test AutoMockable support for typed throws in inits

* Add missing code for Linux

* Prevent sourcery crash when running tests on Linux

* Fix Linux tests by removing nested types from tests as it cause a crash

This Linux crash is due to the encoding/decoding operation done with NSArchiver in Sourcery.swift (where requiresFileParserCopy is used)
This crash is due to an infinite loop while decoding nested Type because of a cycle between Type and itself (containedTypes / parent), also Type and Typealias have the same issue

* update internal boilerplate code.
2025-02-18 17:00:51 +01:00
Ruslan Alikhamov cec7895f0a Adjusted file structure to accommodate two generated files (#1299)
* Adjusted file structure to accommodate two generated files

* Adjusted scripting

* Removed Description, Diffable, Equality for now

* Removed Stencil import

* Updated templates

* Updated scripting

* Updated generated coding

* Disable build deletion (temp)

* Updated template

* Updated generated code

* updated generated code

* Updated generated code

* Adjusted scripting

* Updated scripting

* Updated generated code

* Reverted template deletion

* Removed Stencil imports

* Updated generated code

* trigger CI

* Removed description, diffable and equality stencil templates

* Reverted temporary changes

* Commented failing tests

* Skipping JSExport for description & hash

* Updated generated code

* Enabled failing tests

* Adding stencil templates back to test tests

* Reset generated file for linux for test

* Reverted Extensions for testing

* Reverted ParserResultsComposed

* Attempt to fix unit tests

* Attempt to resolve unit test

* Reverted TypeName asSource

* Reverted TypeName revertion

* Reverted revert of ParserResultComposed

* Reverted revert of Extensions

* Reverted revert of Linux.content.generated

* Reverted attempts to fix unit tests

* Fix for the failing codegen tests

* Added clarifying comment

* Removed description, diffable and equality stencil templates

* Updated generated code

* Tinkering with optimization level for speed boost

* Excluded stencil templates for codegen

* Fixed wrong compiler flag

* Removed speed optimization to a separate PR

* Reverted test code
2024-03-13 00:01:29 +04:00