This PR works on adding new model changes following up on #135. This Pr only contains changes for Structure (does not contains changes for model variants Sequence and Scalar). This PR disables Rust support until the entire functionality for the new model change is supported and uses feature branch new-model-changes as target.
List of changes:
Generator changes:
Adds build_wrapped_scalar_from_constraints which is used for constructing named scalar data type as data model.
Adds build_scalar_from_constraints which is used for constructing nested scalar data type as data model. (Doesn't have a name)
Adds is_nested flag in convert_isl_type_def_to_data_model_node which can be used to either call wrapped sclar or scalar ADT construction.
Modified structure construction to move the common logic at the beginning of the method.
Model changes:
Changes Scalar and WrappedScalar ADT to represent the underlying scalar type with base_type and its name with name field.
Adds doc comment changes for the same
Adds templates changes for java/scalar.templ
Generated code:
The generated code still stays the same only the template changes to use the new model. (Only added scalar files for checking this change, other files remain same)
Issue #, if available:
Description of changes:
This PR works on adding new model changes following up on #135. This Pr only contains changes for
Structure
(does not contains changes for model variantsSequence
andScalar
). This PR disables Rust support until the entire functionality for the new model change is supported and uses feature branchnew-model-changes
as target.List of changes:
Generator changes:
build_wrapped_scalar_from_constraints
which is used for constructing named scalar data type as data model.build_scalar_from_constraints
which is used for constructing nested scalar data type as data model. (Doesn't have a name)is_nested
flag inconvert_isl_type_def_to_data_model_node
which can be used to either call wrapped sclar or scalar ADT construction.structure
construction to move the common logic at the beginning of the method.Model changes:
Scalar
andWrappedScalar
ADT to represent the underlying scalar type withbase_type
and its name withname
field.Adds templates changes for
java/scalar.templ
Generated code:
The generated code still stays the same only the template changes to use the new model. (Only added scalar files for checking this change, other files remain same)
Generated Java code can be found here.
Tests:
scalar
test cases.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.