amazon-ion / ion-cli

Apache License 2.0
34 stars 15 forks source link

Adds changes for using the new code gen model #135

Closed desaikd closed 2 months ago

desaikd commented 3 months ago

Issue #, if available:

Description of changes:

This PR works on adding changes for using the new model created with #123

List of changes:

Generated code in Java:

Note: Rust templates are not yet changed based on the new model hence the support for Rust is put under a TODO for now. Overall the generated code still remains same(Except that it uses fully qualified names now) but the way template engine renders it has changed.

Generated Java code can be found here.

Tests:

Modified the current tests to use fully qualified names instead of relative names in Java.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

desaikd commented 2 months ago

As per offline discussion, closing out this PR to open small PRs implementing each model varaint(i.e. Structure, Sequence, Scalar).