-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Codegen Preprocessing
Jesse Talavera-Greenberg edited this page May 6, 2019
·
7 revisions
Pre-processors implement the IPreProcessor
interface, and are executed before your project's source code is analyzed. They're useful for validating assumptions or enforcing prerequisites for your other plugins. If these assumptions fail or you can't enforce prerequisites, you can stop the entire pipeline by throwing an exception.
- Search for or download external programs or libraries that your code generator relies on.
- Verify the existence of files that your code generator reads, or that a file you intend to generate doesn't already exist.
- Validate the format of complicated configuration options.
- Print information that can be used for debugging.
Guides: Introduction - Installation - Upgrading - FAQ - Cookbook - Contributing
Need Help? Ask a question on Discord or create an issue.
- The Basics
- Concepts
- Architecture / Patterns