Comments (2)
Getting a separate framework with Stencil extensions that we could share between SwiftGen
and Insanity
is definitely something we should work on soon.
Due to how I structured this code adding more reflection like hasAssociatedValue
or isGeneric
into Enum / Type is trivial, it's just a computed property that we need to add and it will be available in Stencil templates immediately
from sourcery.
I've added hasAssociatedValues
to Enum introspection, closing this task as we discussed it off github and we'll make task of extracting Stencil extensions that Olivier uses in his repo first, then we'll integrate it with Insanity.
from sourcery.
Related Issues (20)
- Generated AutoMockable compilation issue due to variadic parameters HOT 11
- [BUG] Generated AutoMockable compilation issues HOT 1
- Windows Support
- Sourcery doesn't properly work when using protocols with primary associated types HOT 2
- Add whitespace trimming configuration for Stencil templates
- [QUESTION] Thread-Safe Mocks HOT 1
- [Bug] Failed to resolve dependencies (SPM issue) HOT 5
- Watch mode only watches sources from last configuration file when passing multiple paths to configuration files using `--config` command line options
- Getting generic requirements from methods HOT 1
- Possible to generate asset catalog constants? HOT 1
- Detecting if a variable is an Enum works if enum is declared in the file but doesn't otherwise. HOT 4
- AutoMockable does not generate valid Swift code during method generic requirement parsing HOT 2
- Swift macros and method bodies HOT 1
- Update CHANGELOG
- Generated code doesn't compile if returning type starts with the "any" keyword HOT 5
- Sourcery not passing variable to .stencil file inside {{ }}
- --cacheBasePath is treated as an absolute path
- `SwiftTemplate` fails to build due to `Invalid manifest` HOT 6
- Pull in protocol info from other projects/targets, without generating for those projects/targets HOT 3
- Typealias resolution replaces unrelated generic types HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sourcery.