8 Commits

Author SHA1 Message Date
Kuba Ober
024ecbbced Fix categorization of generated vs. non-generated nodes. 2019-08-30 11:35:54 -04:00
Kuba Ober
c296c0f63a Assert that non-file definitions must have a parent. 2019-08-30 11:35:54 -04:00
Kuba Ober
d6d83d54a2 Fix annotations and constants: Factor out type definitions, and add definitions of annotations and constants.
The TypeDefinition is no longer overloaded for Annotation and Constant nodes, and the generator is happy again.
2019-08-29 13:36:58 -04:00
Kuba Ober
884040bd66 Fix namespace generation in imported types. 2019-08-29 13:36:58 -04:00
Kuba Ober
dd83132b5d Fix crash when referencing nodes from imported, non-generated schemas. 2019-08-29 13:36:58 -04:00
Kuba Ober
92a7c03cb2 Fix attempted use of incomplete dependent types in schema model.
Resolve node hierarchy and names in a new 1st pass before generating types in pass2. Consider imported files.
2019-08-29 13:36:58 -04:00
Kuba Ober
8d9c3a8b57 Fix by renaming enumerants that happen to be keywords.
This fixes e.g. the compilation of capnp/schema.capnp.
2019-08-29 13:36:58 -04:00
Christian Köllner
cbf2144ef4 Initial commit 2019-06-12 21:56:55 +02:00