aas-core-codegen 0.0.16__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aas_core_codegen/__init__.py +6 -0
- aas_core_codegen/__main__.py +8 -0
- aas_core_codegen/common.py +500 -0
- aas_core_codegen/cpp/__init__.py +1 -0
- aas_core_codegen/cpp/aas_common/__init__.py +6 -0
- aas_core_codegen/cpp/aas_common/_generate.py +713 -0
- aas_core_codegen/cpp/common.py +681 -0
- aas_core_codegen/cpp/constants/__init__.py +6 -0
- aas_core_codegen/cpp/constants/_generate.py +568 -0
- aas_core_codegen/cpp/description.py +654 -0
- aas_core_codegen/cpp/enhancing/__init__.py +4 -0
- aas_core_codegen/cpp/enhancing/_generate.py +993 -0
- aas_core_codegen/cpp/iteration/__init__.py +6 -0
- aas_core_codegen/cpp/iteration/_generate.py +2332 -0
- aas_core_codegen/cpp/jsonization/__init__.py +6 -0
- aas_core_codegen/cpp/jsonization/_generate.py +2619 -0
- aas_core_codegen/cpp/main.py +694 -0
- aas_core_codegen/cpp/naming.py +170 -0
- aas_core_codegen/cpp/optionaling.py +557 -0
- aas_core_codegen/cpp/pattern/__init__.py +6 -0
- aas_core_codegen/cpp/pattern/_generate.py +508 -0
- aas_core_codegen/cpp/revm/__init__.py +6 -0
- aas_core_codegen/cpp/revm/_generate.py +1149 -0
- aas_core_codegen/cpp/stringification/__init__.py +5 -0
- aas_core_codegen/cpp/stringification/_generate.py +955 -0
- aas_core_codegen/cpp/structure/__init__.py +7 -0
- aas_core_codegen/cpp/structure/_generate.py +1503 -0
- aas_core_codegen/cpp/transpilation.py +1383 -0
- aas_core_codegen/cpp/unrolling.py +159 -0
- aas_core_codegen/cpp/verification/__init__.py +6 -0
- aas_core_codegen/cpp/verification/_generate.py +3073 -0
- aas_core_codegen/cpp/visitation/__init__.py +6 -0
- aas_core_codegen/cpp/visitation/_generate.py +521 -0
- aas_core_codegen/cpp/wstringification/__init__.py +5 -0
- aas_core_codegen/cpp/wstringification/_generate.py +586 -0
- aas_core_codegen/cpp/xmlization/__init__.py +6 -0
- aas_core_codegen/cpp/xmlization/_generate.py +5373 -0
- aas_core_codegen/cpp/yielding.py +201 -0
- aas_core_codegen/csharp/__init__.py +1 -0
- aas_core_codegen/csharp/common.py +224 -0
- aas_core_codegen/csharp/constants/__init__.py +5 -0
- aas_core_codegen/csharp/constants/_generate.py +409 -0
- aas_core_codegen/csharp/copying/__init__.py +4 -0
- aas_core_codegen/csharp/copying/_generate.py +498 -0
- aas_core_codegen/csharp/description.py +1103 -0
- aas_core_codegen/csharp/enhancing/__init__.py +4 -0
- aas_core_codegen/csharp/enhancing/_generate.py +667 -0
- aas_core_codegen/csharp/jsonization/__init__.py +4 -0
- aas_core_codegen/csharp/jsonization/_generate.py +1630 -0
- aas_core_codegen/csharp/main.py +421 -0
- aas_core_codegen/csharp/naming.py +157 -0
- aas_core_codegen/csharp/reporting/__init__.py +4 -0
- aas_core_codegen/csharp/reporting/_generate.py +266 -0
- aas_core_codegen/csharp/stringification/__init__.py +4 -0
- aas_core_codegen/csharp/stringification/_generate.py +243 -0
- aas_core_codegen/csharp/structure/__init__.py +6 -0
- aas_core_codegen/csharp/structure/_generate.py +1341 -0
- aas_core_codegen/csharp/transpilation.py +990 -0
- aas_core_codegen/csharp/unrolling.py +211 -0
- aas_core_codegen/csharp/verification/__init__.py +6 -0
- aas_core_codegen/csharp/verification/_generate.py +1457 -0
- aas_core_codegen/csharp/visitation/__init__.py +5 -0
- aas_core_codegen/csharp/visitation/_generate.py +579 -0
- aas_core_codegen/csharp/xmlization/__init__.py +4 -0
- aas_core_codegen/csharp/xmlization/_generate.py +1980 -0
- aas_core_codegen/golang/__init__.py +1 -0
- aas_core_codegen/golang/aas_common/__init__.py +4 -0
- aas_core_codegen/golang/aas_common/_generate.py +152 -0
- aas_core_codegen/golang/common.py +303 -0
- aas_core_codegen/golang/constants/__init__.py +5 -0
- aas_core_codegen/golang/constants/_generate.py +339 -0
- aas_core_codegen/golang/description.py +501 -0
- aas_core_codegen/golang/enhancing/__init__.py +4 -0
- aas_core_codegen/golang/enhancing/_generate.py +527 -0
- aas_core_codegen/golang/jsonization/__init__.py +4 -0
- aas_core_codegen/golang/jsonization/_generate.py +1740 -0
- aas_core_codegen/golang/main.py +368 -0
- aas_core_codegen/golang/naming.py +412 -0
- aas_core_codegen/golang/pointering.py +631 -0
- aas_core_codegen/golang/reporting/__init__.py +4 -0
- aas_core_codegen/golang/reporting/_generate.py +218 -0
- aas_core_codegen/golang/stringification/__init__.py +4 -0
- aas_core_codegen/golang/stringification/_generate.py +394 -0
- aas_core_codegen/golang/structure/__init__.py +6 -0
- aas_core_codegen/golang/structure/_generate.py +1493 -0
- aas_core_codegen/golang/transpilation.py +1191 -0
- aas_core_codegen/golang/unrolling.py +159 -0
- aas_core_codegen/golang/verification/__init__.py +6 -0
- aas_core_codegen/golang/verification/_generate.py +1513 -0
- aas_core_codegen/golang/xmlization/__init__.py +4 -0
- aas_core_codegen/golang/xmlization/_generate.py +2507 -0
- aas_core_codegen/infer_for_schema/__init__.py +21 -0
- aas_core_codegen/infer_for_schema/_inline.py +693 -0
- aas_core_codegen/infer_for_schema/_len.py +527 -0
- aas_core_codegen/infer_for_schema/_pattern.py +311 -0
- aas_core_codegen/infer_for_schema/_set.py +394 -0
- aas_core_codegen/infer_for_schema/_stringify.py +201 -0
- aas_core_codegen/infer_for_schema/_types.py +135 -0
- aas_core_codegen/infer_for_schema/match.py +122 -0
- aas_core_codegen/intermediate/__init__.py +78 -0
- aas_core_codegen/intermediate/_hierarchy.py +397 -0
- aas_core_codegen/intermediate/_stringify.py +989 -0
- aas_core_codegen/intermediate/_translate.py +5128 -0
- aas_core_codegen/intermediate/_types.py +2901 -0
- aas_core_codegen/intermediate/construction.py +750 -0
- aas_core_codegen/intermediate/doc.py +344 -0
- aas_core_codegen/intermediate/pattern_verification.py +428 -0
- aas_core_codegen/intermediate/revm.py +985 -0
- aas_core_codegen/intermediate/type_inference.py +2266 -0
- aas_core_codegen/java/__init__.py +1 -0
- aas_core_codegen/java/common.py +197 -0
- aas_core_codegen/java/constants/__init__.py +5 -0
- aas_core_codegen/java/constants/_generate.py +334 -0
- aas_core_codegen/java/copying/__init__.py +4 -0
- aas_core_codegen/java/copying/_generate.py +502 -0
- aas_core_codegen/java/description.py +774 -0
- aas_core_codegen/java/enhancing/__init__.py +4 -0
- aas_core_codegen/java/enhancing/_generate.py +820 -0
- aas_core_codegen/java/generation/__init__.py +5 -0
- aas_core_codegen/java/generation/_generate.py +285 -0
- aas_core_codegen/java/jsonization/__init__.py +4 -0
- aas_core_codegen/java/jsonization/_generate.py +1472 -0
- aas_core_codegen/java/main.py +438 -0
- aas_core_codegen/java/naming.py +187 -0
- aas_core_codegen/java/optional.py +514 -0
- aas_core_codegen/java/reporting/__init__.py +4 -0
- aas_core_codegen/java/reporting/_generate.py +248 -0
- aas_core_codegen/java/stringification/__init__.py +4 -0
- aas_core_codegen/java/stringification/_generate.py +212 -0
- aas_core_codegen/java/structure/__init__.py +6 -0
- aas_core_codegen/java/structure/_generate.py +1767 -0
- aas_core_codegen/java/transpilation.py +1111 -0
- aas_core_codegen/java/verification/__init__.py +6 -0
- aas_core_codegen/java/verification/_generate.py +1536 -0
- aas_core_codegen/java/visitation/__init__.py +5 -0
- aas_core_codegen/java/visitation/_generate.py +689 -0
- aas_core_codegen/java/xmlization/__init__.py +4 -0
- aas_core_codegen/java/xmlization/_generate.py +2274 -0
- aas_core_codegen/jsonld/__init__.py +1 -0
- aas_core_codegen/jsonld/main.py +455 -0
- aas_core_codegen/jsonschema/__init__.py +1 -0
- aas_core_codegen/jsonschema/main.py +982 -0
- aas_core_codegen/main.py +245 -0
- aas_core_codegen/naming.py +133 -0
- aas_core_codegen/opcua/__init__.py +1 -0
- aas_core_codegen/opcua/main.py +1525 -0
- aas_core_codegen/opcua/naming.py +126 -0
- aas_core_codegen/parse/__init__.py +46 -0
- aas_core_codegen/parse/_rules.py +796 -0
- aas_core_codegen/parse/_stringify.py +532 -0
- aas_core_codegen/parse/_translate.py +3940 -0
- aas_core_codegen/parse/_types.py +973 -0
- aas_core_codegen/parse/retree/__init__.py +46 -0
- aas_core_codegen/parse/retree/_fix.py +434 -0
- aas_core_codegen/parse/retree/_parse.py +1143 -0
- aas_core_codegen/parse/retree/_render.py +298 -0
- aas_core_codegen/parse/retree/_stringify.py +199 -0
- aas_core_codegen/parse/retree/_types.py +362 -0
- aas_core_codegen/parse/retree/_visitor.py +70 -0
- aas_core_codegen/parse/tree.py +1303 -0
- aas_core_codegen/protobuf/__init__.py +1 -0
- aas_core_codegen/protobuf/common.py +225 -0
- aas_core_codegen/protobuf/description.py +1102 -0
- aas_core_codegen/protobuf/main.py +115 -0
- aas_core_codegen/protobuf/naming.py +143 -0
- aas_core_codegen/protobuf/structure/__init__.py +6 -0
- aas_core_codegen/protobuf/structure/_generate.py +502 -0
- aas_core_codegen/py.typed +1 -0
- aas_core_codegen/python/__init__.py +1 -0
- aas_core_codegen/python/aas_common/__init__.py +4 -0
- aas_core_codegen/python/aas_common/_generate.py +63 -0
- aas_core_codegen/python/common.py +406 -0
- aas_core_codegen/python/constants/__init__.py +5 -0
- aas_core_codegen/python/constants/_generate.py +377 -0
- aas_core_codegen/python/description.py +508 -0
- aas_core_codegen/python/jsonization/__init__.py +4 -0
- aas_core_codegen/python/jsonization/_generate.py +1391 -0
- aas_core_codegen/python/main.py +323 -0
- aas_core_codegen/python/naming.py +255 -0
- aas_core_codegen/python/stringification/__init__.py +4 -0
- aas_core_codegen/python/stringification/_generate.py +129 -0
- aas_core_codegen/python/structure/__init__.py +6 -0
- aas_core_codegen/python/structure/_generate.py +1801 -0
- aas_core_codegen/python/transpilation.py +958 -0
- aas_core_codegen/python/unrolling.py +156 -0
- aas_core_codegen/python/verification/__init__.py +6 -0
- aas_core_codegen/python/verification/_generate.py +1471 -0
- aas_core_codegen/python/xmlization/__init__.py +4 -0
- aas_core_codegen/python/xmlization/_generate.py +3003 -0
- aas_core_codegen/python_protobuf/__init__.py +1 -0
- aas_core_codegen/python_protobuf/main.py +1424 -0
- aas_core_codegen/python_protobuf/naming.py +85 -0
- aas_core_codegen/rdf_shacl/__init__.py +1 -0
- aas_core_codegen/rdf_shacl/_description.py +351 -0
- aas_core_codegen/rdf_shacl/common.py +206 -0
- aas_core_codegen/rdf_shacl/main.py +114 -0
- aas_core_codegen/rdf_shacl/naming.py +145 -0
- aas_core_codegen/rdf_shacl/rdf.py +435 -0
- aas_core_codegen/rdf_shacl/shacl.py +453 -0
- aas_core_codegen/run.py +124 -0
- aas_core_codegen/smoke/__init__.py +1 -0
- aas_core_codegen/smoke/main.py +219 -0
- aas_core_codegen/specific_implementations.py +72 -0
- aas_core_codegen/stringify.py +333 -0
- aas_core_codegen/typescript/__init__.py +1 -0
- aas_core_codegen/typescript/aas_common/__init__.py +4 -0
- aas_core_codegen/typescript/aas_common/_generate.py +472 -0
- aas_core_codegen/typescript/common.py +340 -0
- aas_core_codegen/typescript/constants/__init__.py +5 -0
- aas_core_codegen/typescript/constants/_generate.py +347 -0
- aas_core_codegen/typescript/description.py +530 -0
- aas_core_codegen/typescript/jsonization/__init__.py +4 -0
- aas_core_codegen/typescript/jsonization/_generate.py +1510 -0
- aas_core_codegen/typescript/main.py +258 -0
- aas_core_codegen/typescript/naming.py +189 -0
- aas_core_codegen/typescript/stringification/__init__.py +4 -0
- aas_core_codegen/typescript/stringification/_generate.py +367 -0
- aas_core_codegen/typescript/structure/__init__.py +6 -0
- aas_core_codegen/typescript/structure/_generate.py +2500 -0
- aas_core_codegen/typescript/transpilation.py +1051 -0
- aas_core_codegen/typescript/unrolling.py +159 -0
- aas_core_codegen/typescript/verification/__init__.py +6 -0
- aas_core_codegen/typescript/verification/_generate.py +1578 -0
- aas_core_codegen/xsd/__init__.py +1 -0
- aas_core_codegen/xsd/main.py +1187 -0
- aas_core_codegen/xsd/naming.py +83 -0
- aas_core_codegen/yielding/__init__.py +1 -0
- aas_core_codegen/yielding/flow.py +139 -0
- aas_core_codegen/yielding/linear.py +754 -0
- aas_core_codegen-0.0.16.dist-info/METADATA +211 -0
- aas_core_codegen-0.0.16.dist-info/RECORD +604 -0
- aas_core_codegen-0.0.16.dist-info/WHEEL +5 -0
- aas_core_codegen-0.0.16.dist-info/entry_points.txt +3 -0
- aas_core_codegen-0.0.16.dist-info/licenses/AUTHORS +9 -0
- aas_core_codegen-0.0.16.dist-info/licenses/LICENSE +23 -0
- aas_core_codegen-0.0.16.dist-info/top_level.txt +2 -0
- dev/continuous_integration/__init__.py +1 -0
- dev/continuous_integration/check_help_in_readme.py +208 -0
- dev/continuous_integration/check_init_and_pyproject_consistent.py +154 -0
- dev/continuous_integration/precommit.py +400 -0
- dev/dev_scripts/__init__.py +1 -0
- dev/dev_scripts/compare_rendered_regexes_against_source_py.py +42 -0
- dev/dev_scripts/copy_to_aas_core3_cpp.py +100 -0
- dev/dev_scripts/copy_to_aas_core3_java.py +90 -0
- dev/dev_scripts/download_latest_aas_core_meta_v3.py +114 -0
- dev/dev_scripts/draw_bipartite_graph_based_on_lines.py +37 -0
- dev/dev_scripts/run_tests_with_rerecord.py +69 -0
- dev/dev_scripts/update_to_aas_core_meta.py +174 -0
- dev/integration_tests/input/jsonschema/boilerplate/main.py +55 -0
- dev/integration_tests/input/meta_model.py +38 -0
- dev/integration_tests/input/python/boilerplate/main.py +153 -0
- dev/integration_tests/main.py +258 -0
- dev/test_data/csharp/test_structure/concrete_class_with_descendants/meta_model.py +15 -0
- dev/test_data/csharp/test_structure/constructor_without_arguments/all_properties_optional/meta_model.py +9 -0
- dev/test_data/csharp/test_structure/constructor_without_arguments/no_properties/meta_model.py +6 -0
- dev/test_data/csharp/test_verification/builtin_functions/len/on_list/meta_model.py +20 -0
- dev/test_data/csharp/test_verification/builtin_functions/len/on_str/meta_model.py +16 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_as_literal/as_prefix/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_as_literal/as_suffix/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_as_literal/in_group_with_quantifier/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_as_literal/in_the_middle/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_as_literal/in_union/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_as_literal/single_utf32_literal/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_as_literal/with_quantifier_within_group/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_as_literal/with_quantifier_without_group/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_in_character_set/literal/at_the_beginning/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_in_character_set/literal/at_the_end/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_in_character_set/literal/in_the_middle/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_in_character_set/literal/multiple/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_in_character_set/literal/single/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_in_character_set/literal/single_with_quantifier/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_in_character_set/range/mixed_with_non_utf32/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_in_character_set/range/more_than_two_high_surrogates/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_in_character_set/range/multiple_utf32_ranges/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_in_character_set/range/multiple_utf32_ranges_mixed_with_non_utf32/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_in_character_set/range/same_high_surrogate/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_in_character_set/range/same_high_surrogate_with_quantifier/meta_model.py +8 -0
- dev/test_data/csharp/test_verification/pattern_verification/utf32_in_character_set/range/two_high_surrogates/meta_model.py +8 -0
- dev/test_data/intermediate/expected/class/empty/meta_model.py +6 -0
- dev/test_data/intermediate/expected/class/implementation_specific_method/meta_model.py +8 -0
- dev/test_data/intermediate/expected/class/inheritance/meta_model.py +41 -0
- dev/test_data/intermediate/expected/class/methods_with_contracts/meta_model.py +15 -0
- dev/test_data/intermediate/expected/class/only_method_no_property/meta_model.py +7 -0
- dev/test_data/intermediate/expected/class/only_property_no_method/meta_model.py +9 -0
- dev/test_data/intermediate/expected/constant/constant_set/of_enum/meta_model.py +12 -0
- dev/test_data/intermediate/expected/constant/constant_set/of_str/meta_model.py +4 -0
- dev/test_data/intermediate/expected/constant/constant_set/with_description/meta_model.py +6 -0
- dev/test_data/intermediate/expected/constant/constant_set/with_superset_of/meta_model.py +14 -0
- dev/test_data/intermediate/expected/constant/constant_str/only_value/meta_model.py +7 -0
- dev/test_data/intermediate/expected/constant/constant_str/with_description/meta_model.py +5 -0
- dev/test_data/intermediate/expected/documentation/docstring_with_special_characters_in_literal/meta_model.py +20 -0
- dev/test_data/intermediate/expected/documentation/docstring_with_special_characters_outside_literal/meta_model.py +20 -0
- dev/test_data/intermediate/expected/empty/meta_model.py +2 -0
- dev/test_data/intermediate/expected/enumeration/meta_model.py +9 -0
- dev/test_data/intermediate/expected/interface/basic/meta_model.py +14 -0
- dev/test_data/intermediate/expected/interface/empty/meta_model.py +7 -0
- dev/test_data/intermediate/expected/interface/inheritance/meta_model.py +27 -0
- dev/test_data/intermediate/expected/interface/method_signature/meta_model.py +10 -0
- dev/test_data/intermediate/expected/interface/only_constructor/meta_model.py +11 -0
- dev/test_data/intermediate/expected/method/non_mutating/implementation_specific/meta_model.py +12 -0
- dev/test_data/intermediate/expected/method/non_mutating/understood/meta_model.py +11 -0
- dev/test_data/intermediate/expected/type_annotation/atomic/meta_model.py +9 -0
- dev/test_data/intermediate/expected/type_annotation/subscripted/class/meta_model.py +13 -0
- dev/test_data/intermediate/expected/type_annotation/subscripted/primitive/meta_model.py +9 -0
- dev/test_data/intermediate/unexpected/constant_set/of_enum/enumeration_literals_in_subset_outside_of_superset/meta_model.py +20 -0
- dev/test_data/intermediate/unexpected/constant_set/of_enum/invalid_literal/meta_model.py +11 -0
- dev/test_data/intermediate/unexpected/constant_set/of_enum/mismatch_between_enumeration_and_literal/meta_model.py +30 -0
- dev/test_data/intermediate/unexpected/constant_set/of_enum/mismatch_in_enumerations_between_subset_and_superset/meta_model.py +21 -0
- dev/test_data/intermediate/unexpected/constant_set/of_str/literals_in_subset_outside_of_superset/meta_model.py +18 -0
- dev/test_data/intermediate/unexpected/constant_set/of_str/mismatch_between_type_annotation_and_literals/meta_model.py +10 -0
- dev/test_data/intermediate/unexpected/constant_set/of_str/superset_and_subset_mismatch_in_type/meta_model.py +12 -0
- dev/test_data/intermediate/unexpected/constraints/dangling_constraintref/meta_model.py +18 -0
- dev/test_data/intermediate/unexpected/constraints/duplicate_constraints/meta_model.py +20 -0
- dev/test_data/intermediate/unexpected/documentation/unexpected_documentation_elements/meta_model.py +34 -0
- dev/test_data/intermediate/unexpected/invariant/class_invariant_uses_re/meta_model.py +10 -0
- dev/test_data/intermediate/unexpected/invariant/invariant_of_constrained_primitive_uses_re/meta_model.py +7 -0
- dev/test_data/intermediate/unexpected/invariant/unexpected_argument_count_to_len/meta_model.py +20 -0
- dev/test_data/intermediate/unexpected/invariant/unhandled_built_in_function/meta_model.py +16 -0
- dev/test_data/intermediate/unexpected/method_definitions/non_constant_default/meta_model.py +7 -0
- dev/test_data/intermediate/unexpected/optional_constructor_arguments_wo_default/default_non_none/meta_model.py +16 -0
- dev/test_data/intermediate/unexpected/optional_constructor_arguments_wo_default/no_default/meta_model.py +16 -0
- dev/test_data/intermediate/unexpected/properties_and_constructor_arguments_do_not_match/after_inheritance/meta_model.py +58 -0
- dev/test_data/intermediate/unexpected/properties_and_constructor_arguments_do_not_match/type_missmatch/meta_model.py +9 -0
- dev/test_data/intermediate/unexpected/properties_and_constructor_arguments_do_not_match/within_class/meta_model.py +22 -0
- dev/test_data/jsonschema/test_main/regression_when_len_constraints_on_inherited_property/meta_model.py +28 -0
- dev/test_data/opcua/test_main/abstract_and_concrete_classes/meta_model.py +37 -0
- dev/test_data/opcua/test_main/classes_with_invariants/meta_model.py +21 -0
- dev/test_data/opcua/test_main/concrete_class_with_descendant/meta_model.py +27 -0
- dev/test_data/opcua/test_main/concrete_class_with_enum/meta_model.py +21 -0
- dev/test_data/opcua/test_main/concrete_class_with_list_of_instances/meta_model.py +21 -0
- dev/test_data/opcua/test_main/concrete_class_with_primitive_attributes/meta_model.py +41 -0
- dev/test_data/opcua/test_main/concrete_class_with_string/meta_model.py +13 -0
- dev/test_data/opcua/test_main/constrained_primitive/meta_model.py +20 -0
- dev/test_data/opcua/test_main/multiple_inheritance/meta_model.py +25 -0
- dev/test_data/parse/expected/constant/constant_set/of_enum/meta_model.py +12 -0
- dev/test_data/parse/expected/constant/constant_set/of_str/meta_model.py +4 -0
- dev/test_data/parse/expected/constant/constant_set/with_description/meta_model.py +6 -0
- dev/test_data/parse/expected/constant/constant_set/with_superset_of/meta_model.py +14 -0
- dev/test_data/parse/expected/constant/constant_str/only_value/meta_model.py +7 -0
- dev/test_data/parse/expected/constant/constant_str/with_description/meta_model.py +5 -0
- dev/test_data/parse/expected/enum/ok/meta_model.py +15 -0
- dev/test_data/parse/expected/implementation_specific_class/properties_and_methods_in_implementation_specific_class/meta_model.py +17 -0
- dev/test_data/parse/expected/inheritance/basic/meta_model.py +11 -0
- dev/test_data/parse/expected/inheritance/diamond/meta_model.py +26 -0
- dev/test_data/parse/expected/inheritance/inheritance_from_concrete_class/meta_model.py +10 -0
- dev/test_data/parse/expected/invariants/in_relation/meta_model.py +16 -0
- dev/test_data/parse/expected/method/arguments/meta_model.py +7 -0
- dev/test_data/parse/expected/method/basic/meta_model.py +7 -0
- dev/test_data/parse/expected/method/contracts/condition_as_keyword_argument/meta_model.py +8 -0
- dev/test_data/parse/expected/method/contracts/condition_as_positional_argument/meta_model.py +8 -0
- dev/test_data/parse/expected/method/contracts/description_as_keyword_argument/meta_model.py +8 -0
- dev/test_data/parse/expected/method/contracts/description_as_positional_argument/meta_model.py +8 -0
- dev/test_data/parse/expected/method/contracts/multiple_contracts_in_order/meta_model.py +17 -0
- dev/test_data/parse/expected/method/contracts/postcondition/basic/meta_model.py +10 -0
- dev/test_data/parse/expected/method/contracts/postcondition/snapshot/with_keyword_arguments/meta_model.py +9 -0
- dev/test_data/parse/expected/method/contracts/postcondition/snapshot/with_positional_arguments/meta_model.py +9 -0
- dev/test_data/parse/expected/method/default/meta_model.py +9 -0
- dev/test_data/parse/expected/method/description/meta_model.py +8 -0
- dev/test_data/parse/expected/method/is_implementation_specific/meta_model.py +8 -0
- dev/test_data/parse/expected/method/non_mutating/meta_model.py +11 -0
- dev/test_data/parse/expected/method/returns_none/meta_model.py +7 -0
- dev/test_data/parse/expected/method/returns_something/meta_model.py +7 -0
- dev/test_data/parse/expected/single_class/description/meta_model.py +12 -0
- dev/test_data/parse/expected/single_class/empty/meta_model.py +6 -0
- dev/test_data/parse/expected/single_class/property/description/meta_model.py +14 -0
- dev/test_data/parse/expected/single_class/property/mandatory/meta_model.py +6 -0
- dev/test_data/parse/expected/single_class/property/optional/meta_model.py +6 -0
- dev/test_data/parse/expected/single_class/property/recursion_to_entity/meta_model.py +6 -0
- dev/test_data/parse/unexpected/class_decorators/non_name_decorator/meta_model.py +7 -0
- dev/test_data/parse/unexpected/class_decorators/unknown_decorator/meta_model.py +7 -0
- dev/test_data/parse/unexpected/class_definitions/is_abstract_and_implementation_specific/meta_model.py +8 -0
- dev/test_data/parse/unexpected/class_definitions/unexpected_docstring_before_a_method/meta_model.py +11 -0
- dev/test_data/parse/unexpected/class_definitions/unexpected_docstring_for_a_pass/meta_model.py +9 -0
- dev/test_data/parse/unexpected/class_definitions/unexpected_double_description_for_a_property/meta_model.py +10 -0
- dev/test_data/parse/unexpected/class_inheritances/inheriting_from_implementation_specific_parent/meta_model.py +20 -0
- dev/test_data/parse/unexpected/class_inheritances/non_name_super_class/meta_model.py +6 -0
- dev/test_data/parse/unexpected/enum/expression_as_assignment_value/meta_model.py +6 -0
- dev/test_data/parse/unexpected/enum/non_assignment/meta_model.py +8 -0
- dev/test_data/parse/unexpected/enum/non_string_literal/meta_model.py +6 -0
- dev/test_data/parse/unexpected/enum/unexpected_inheritance/meta_model.py +6 -0
- dev/test_data/parse/unexpected/method_contracts/contract/non_lambda_condition/meta_model.py +8 -0
- dev/test_data/parse/unexpected/method_contracts/contract/non_string_literal_description/meta_model.py +8 -0
- dev/test_data/parse/unexpected/method_contracts/contract/without_any_arguments/meta_model.py +8 -0
- dev/test_data/parse/unexpected/method_contracts/contract/without_condition/meta_model.py +8 -0
- dev/test_data/parse/unexpected/method_contracts/postcondition/OLD_in_postcondition_without_snapshot/meta_model.py +8 -0
- dev/test_data/parse/unexpected/method_contracts/postcondition/argument_missing_in_function/meta_model.py +8 -0
- dev/test_data/parse/unexpected/method_contracts/precondition/argument_missing_in_function/meta_model.py +8 -0
- dev/test_data/parse/unexpected/method_contracts/snapshot/argument_missing_in_function/meta_model.py +8 -0
- dev/test_data/parse/unexpected/method_contracts/snapshot/capture_not_a_lambda/meta_model.py +8 -0
- dev/test_data/parse/unexpected/method_contracts/snapshot/invalid_name/meta_model.py +8 -0
- dev/test_data/parse/unexpected/method_contracts/snapshot/name_not_a_string_literal/meta_model.py +8 -0
- dev/test_data/parse/unexpected/method_contracts/snapshot/without_a_capture/meta_model.py +8 -0
- dev/test_data/parse/unexpected/method_contracts/snapshot/without_a_name/meta_model.py +8 -0
- dev/test_data/parse/unexpected/method_decorators/non_mutating/non_mutating_constructor/meta_model.py +8 -0
- dev/test_data/parse/unexpected/method_decorators/non_mutating/non_mutating_verification_function/meta_model.py +8 -0
- dev/test_data/parse/unexpected/method_decorators/non_name_decorator/meta_model.py +8 -0
- dev/test_data/parse/unexpected/method_decorators/unknown_call_decorator/meta_model.py +8 -0
- dev/test_data/parse/unexpected/method_decorators/unknown_name_decorator/meta_model.py +8 -0
- dev/test_data/parse/unexpected/method_definitions/argument_with_final/meta_model.py +7 -0
- dev/test_data/parse/unexpected/method_definitions/argument_without_a_type_annotation/meta_model.py +7 -0
- dev/test_data/parse/unexpected/method_definitions/default_for_self/meta_model.py +7 -0
- dev/test_data/parse/unexpected/method_definitions/dunder/meta_model.py +7 -0
- dev/test_data/parse/unexpected/method_definitions/init_with_return_type/meta_model.py +7 -0
- dev/test_data/parse/unexpected/method_definitions/with_keyword_only_arguments/meta_model.py +7 -0
- dev/test_data/parse/unexpected/method_definitions/with_positional_arguments/meta_model.py +7 -0
- dev/test_data/parse/unexpected/method_definitions/with_type_annotation_for_self/meta_model.py +7 -0
- dev/test_data/parse/unexpected/method_definitions/with_variable_arguments/meta_model.py +7 -0
- dev/test_data/parse/unexpected/method_definitions/with_variable_keyword_arguments/meta_model.py +7 -0
- dev/test_data/parse/unexpected/method_definitions/without_arguments/meta_model.py +7 -0
- dev/test_data/parse/unexpected/method_definitions/without_self/meta_model.py +7 -0
- dev/test_data/parse/unexpected/method_definitions/without_type_annotation_for_result/meta_model.py +7 -0
- dev/test_data/parse/unexpected/property_definitions/final_without_subscript/meta_model.py +6 -0
- dev/test_data/parse/unexpected/property_definitions/nested_final/meta_model.py +6 -0
- dev/test_data/parse/unexpected/property_definitions/non_simple/meta_model.py +6 -0
- dev/test_data/parse/unexpected/property_definitions/unexpected_assignment/meta_model.py +6 -0
- dev/test_data/parse/unexpected/property_definitions/unexpected_non_name_property/meta_model.py +6 -0
- dev/test_data/parse/unexpected/property_definitions/without_type_annotation/meta_model.py +6 -0
- dev/test_data/parse/unexpected/symbol_table/constant_set_with_a_non_set_subset/meta_model.py +6 -0
- dev/test_data/parse/unexpected/symbol_table/dangling_inheritance/meta_model.py +6 -0
- dev/test_data/parse/unexpected/symbol_table/dangling_reference_in_type_annotation_of_a_property/meta_model.py +6 -0
- dev/test_data/parse/unexpected/symbol_table/dangling_reference_in_type_annotation_of_an_argument/meta_model.py +7 -0
- dev/test_data/parse/unexpected/symbol_table/dangling_reference_in_type_annotation_of_constant_set/meta_model.py +6 -0
- dev/test_data/parse/unexpected/symbol_table/dangling_subset_in_constant_set/meta_model.py +4 -0
- dev/test_data/parse/unexpected/symbol_table/inheritance_from_non_class/meta_model.py +10 -0
- dev/test_data/parse_retree/expected/character_set/common_escaping/source.py +1 -0
- dev/test_data/parse_retree/expected/character_set/complementing/double_caret/source.py +1 -0
- dev/test_data/parse_retree/expected/character_set/complementing/multiple_ranges/source.py +1 -0
- dev/test_data/parse_retree/expected/character_set/complementing/suffix_dash/source.py +1 -0
- dev/test_data/parse_retree/expected/character_set/escape_first_caret/source.py +1 -0
- dev/test_data/parse_retree/expected/character_set/literals_which_need_no_escaping_in_characters_set_but_need_escaping_outside/source.py +1 -0
- dev/test_data/parse_retree/expected/character_set/multiple_ranges/source.py +1 -0
- dev/test_data/parse_retree/expected/character_set/single_literal/source.py +1 -0
- dev/test_data/parse_retree/expected/character_set/single_range/source.py +1 -0
- dev/test_data/parse_retree/expected/character_set/unescaped_dash/only_dash/source.py +1 -0
- dev/test_data/parse_retree/expected/character_set/unescaped_dash/prefix_dash/source.py +1 -0
- dev/test_data/parse_retree/expected/character_set/unescaped_dash/suffix_dash/source.py +1 -0
- dev/test_data/parse_retree/expected/dot/source.py +1 -0
- dev/test_data/parse_retree/expected/empty/group/source.py +1 -0
- dev/test_data/parse_retree/expected/empty/group_in_a_group/source.py +1 -0
- dev/test_data/parse_retree/expected/empty/group_of_union_of_empty_concatenations/source.py +1 -0
- dev/test_data/parse_retree/expected/empty/regex/source.py +1 -0
- dev/test_data/parse_retree/expected/empty/union_of_empty_concatenations/source.py +1 -0
- dev/test_data/parse_retree/expected/escaped_literals/source.py +1 -0
- dev/test_data/parse_retree/expected/formatted_value/at_the_beginning/source.py +1 -0
- dev/test_data/parse_retree/expected/formatted_value/at_the_end/source.py +1 -0
- dev/test_data/parse_retree/expected/formatted_value/in_the_middle/source.py +1 -0
- dev/test_data/parse_retree/expected/formatted_value/single_formatted_value/source.py +1 -0
- dev/test_data/parse_retree/expected/literal/source.py +1 -0
- dev/test_data/parse_retree/expected/quantifier/greedy/at_least_3/source.py +1 -0
- dev/test_data/parse_retree/expected/quantifier/greedy/at_least_one/source.py +1 -0
- dev/test_data/parse_retree/expected/quantifier/greedy/at_most_3/source.py +1 -0
- dev/test_data/parse_retree/expected/quantifier/greedy/exactly_3/source.py +1 -0
- dev/test_data/parse_retree/expected/quantifier/greedy/maybe/source.py +1 -0
- dev/test_data/parse_retree/expected/quantifier/greedy/zero_or_more/source.py +1 -0
- dev/test_data/parse_retree/expected/quantifier/non_greedy/at_least_3/source.py +1 -0
- dev/test_data/parse_retree/expected/quantifier/non_greedy/at_least_one/source.py +1 -0
- dev/test_data/parse_retree/expected/quantifier/non_greedy/at_most_3/source.py +1 -0
- dev/test_data/parse_retree/expected/quantifier/non_greedy/exactly_3/source.py +1 -0
- dev/test_data/parse_retree/expected/quantifier/non_greedy/maybe/source.py +1 -0
- dev/test_data/parse_retree/expected/quantifier/non_greedy/zero_or_more/source.py +1 -0
- dev/test_data/parse_retree/expected/quantifier/on_a_character_set/source.py +1 -0
- dev/test_data/parse_retree/expected/quantifier/on_a_formatted_value/source.py +1 -0
- dev/test_data/parse_retree/expected/quantifier/on_a_group/source.py +1 -0
- dev/test_data/parse_retree/expected/quantifier/on_a_literal/source.py +1 -0
- dev/test_data/parse_retree/expected/start_and_stop_symbols/double_end_symbol/source.py +1 -0
- dev/test_data/parse_retree/expected/start_and_stop_symbols/double_start_symbol/source.py +1 -0
- dev/test_data/parse_retree/expected/start_and_stop_symbols/end_symbol_in_the_middle/source.py +1 -0
- dev/test_data/parse_retree/expected/start_and_stop_symbols/only_start_symbol/source.py +1 -0
- dev/test_data/parse_retree/expected/start_and_stop_symbols/only_stop_symbol/source.py +1 -0
- dev/test_data/parse_retree/expected/start_and_stop_symbols/start_symbol_at_the_beginning/source.py +1 -0
- dev/test_data/parse_retree/expected/start_and_stop_symbols/start_symbol_in_the_middle/source.py +1 -0
- dev/test_data/parse_retree/expected/start_and_stop_symbols/stop_symbol_at_the_end/source.py +1 -0
- dev/test_data/parse_retree/expected/union/of_character_sets/source.py +1 -0
- dev/test_data/parse_retree/expected/union/of_groups/source.py +1 -0
- dev/test_data/parse_retree/expected/union/of_string_literals/source.py +1 -0
- dev/test_data/parse_retree/expected/union/within_group/source.py +1 -0
- dev/test_data/parse_retree/expected/whitespace/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/character_literal/Uxxxxxxxx_out_of_range/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/character_literal/only_backslash/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/character_literal/short_Uxxxxxxxx/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/character_literal/short_uxxxx/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/character_literal/short_x/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/character_literal/unexpected_escaping/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/character_literal/unhandled/digit/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/character_literal/unhandled/not_digit/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/character_literal/unhandled/not_whitespace/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/character_literal/unhandled/not_word/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/character_literal/unhandled/whitespace/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/character_literal/unhandled/word/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/range_character/Uxxxxxxxx_out_of_range/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/range_character/only_backslash/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/range_character/short_Uxxxxxxxx/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/range_character/short_uxxxx/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/range_character/short_x/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/range_character/unexpected_escaping/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/range_character/unhandled/digit/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/range_character/unhandled/not_digit/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/range_character/unhandled/not_whitespace/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/range_character/unhandled/not_word/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/range_character/unhandled/whitespace/source.py +1 -0
- dev/test_data/parse_retree/unexpected/improper_escaping/range_character/unhandled/word/source.py +1 -0
- dev/test_data/parse_retree/unexpected/invalid_character_range/source.py +1 -0
- dev/test_data/parse_retree/unexpected/invalid_quantifier/at_least_x/source.py +1 -0
- dev/test_data/parse_retree/unexpected/invalid_quantifier/between_3_and_x/source.py +1 -0
- dev/test_data/parse_retree/unexpected/invalid_quantifier/exactly_x/source.py +1 -0
- dev/test_data/parse_retree/unexpected/unhandled_group_directives/source.py +1 -0
- dev/test_data/parse_retree/unexpected/unterminated/character_set/source.py +1 -0
- dev/test_data/parse_retree/unexpected/unterminated/group/source.py +1 -0
- dev/test_data/parse_retree/unexpected/unterminated/group_of_union_of_empty_concatenations/source.py +1 -0
- dev/test_data/parse_retree/unexpected/unterminated/quantifier/source.py +1 -0
- dev/test_data/parse_retree/unexpected/unterminated/quantifier_with_comma/source.py +1 -0
- dev/test_data/parse_retree/unexpected/unterminated/quantifier_with_number_and_comma/source.py +1 -0
- dev/test_data/proto/test_main/expected/abstract_and_concrete_classes/meta_model.py +37 -0
- dev/test_data/proto/test_main/expected/concrete_class_with_descendants/meta_model.py +30 -0
- dev/test_data/proto/test_main/expected/concrete_class_with_enum/meta_model.py +21 -0
- dev/test_data/proto/test_main/expected/concrete_class_with_list_of_instances/meta_model.py +21 -0
- dev/test_data/proto/test_main/expected/concrete_class_with_primitive_attributes/meta_model.py +41 -0
- dev/test_data/python_protobuf/test_main/abstract_and_concrete_classes/expected_output/pbization.py +532 -0
- dev/test_data/python_protobuf/test_main/abstract_and_concrete_classes/meta_model.py +37 -0
- dev/test_data/python_protobuf/test_main/concrete_class_with_descendant/expected_output/pbization.py +527 -0
- dev/test_data/python_protobuf/test_main/concrete_class_with_descendant/meta_model.py +27 -0
- dev/test_data/python_protobuf/test_main/concrete_class_with_enum/expected_output/pbization.py +290 -0
- dev/test_data/python_protobuf/test_main/concrete_class_with_enum/meta_model.py +21 -0
- dev/test_data/python_protobuf/test_main/concrete_class_with_list_of_instances/expected_output/pbization.py +328 -0
- dev/test_data/python_protobuf/test_main/concrete_class_with_list_of_instances/meta_model.py +23 -0
- dev/test_data/python_protobuf/test_main/concrete_class_with_primitive_attributes/expected_output/pbization.py +274 -0
- dev/test_data/python_protobuf/test_main/concrete_class_with_primitive_attributes/meta_model.py +41 -0
- dev/test_data/rdf_shacl/test_main/expected/regression_when_lang_string_class_is_missing/meta_model.py +29 -0
- dev/test_data/rdf_shacl/test_main/expected/regression_when_len_constraints_on_inherited_property/meta_model.py +27 -0
- dev/test_data/rdf_shacl/test_main/unexpected/regression_len_constraint_on_class_property/meta_model.py +61 -0
- dev/test_data/real_meta_models/aas_core_meta.v3.py +5721 -0
- dev/test_data/smoke/test_main/unexpected/infer_for_schema_error/meta_model.py +12 -0
- dev/test_data/smoke/test_main/unexpected/intermediate_error/meta_model.py +18 -0
- dev/test_data/smoke/test_main/unexpected/parse_error/meta_model.py +5 -0
- dev/test_data/smoke/test_main/unexpected/pattern_verification_unparsable_regex/direct_match/meta_model.py +8 -0
- dev/test_data/smoke/test_main/unexpected/type_error/meta_model.py +18 -0
- dev/tests/__init__.py +1 -0
- dev/tests/common.py +197 -0
- dev/tests/cpp/__init__.py +0 -0
- dev/tests/cpp/test_common.py +32 -0
- dev/tests/cpp/test_main.py +144 -0
- dev/tests/cpp/test_pattern.py +188 -0
- dev/tests/cpp/test_verification.py +189 -0
- dev/tests/cpp/test_yielding.py +225 -0
- dev/tests/csharp/__init__.py +0 -0
- dev/tests/csharp/live_test_main.py +109 -0
- dev/tests/csharp/test_common.py +28 -0
- dev/tests/csharp/test_description.py +684 -0
- dev/tests/csharp/test_main.py +129 -0
- dev/tests/csharp/test_structure.py +93 -0
- dev/tests/csharp/test_verification.py +82 -0
- dev/tests/description.py +29 -0
- dev/tests/golang/__init__.py +0 -0
- dev/tests/golang/test_common.py +78 -0
- dev/tests/golang/test_main.py +128 -0
- dev/tests/infer_for_schema/__init__.py +0 -0
- dev/tests/infer_for_schema/common.py +47 -0
- dev/tests/infer_for_schema/test_len_on_properties.py +955 -0
- dev/tests/infer_for_schema/test_len_on_self.py +580 -0
- dev/tests/infer_for_schema/test_patterns_on_properties.py +686 -0
- dev/tests/infer_for_schema/test_patterns_on_self.py +258 -0
- dev/tests/infer_for_schema/test_property_in_set_of_enumeration_literals.py +600 -0
- dev/tests/infer_for_schema/test_property_in_set_of_primitives.py +549 -0
- dev/tests/intermediate/__init__.py +0 -0
- dev/tests/intermediate/test_constructor.py +719 -0
- dev/tests/intermediate/test_hierarchy.py +221 -0
- dev/tests/intermediate/test_revm.py +134 -0
- dev/tests/intermediate/test_translate.py +337 -0
- dev/tests/intermediate/test_type_inference.py +333 -0
- dev/tests/intermediate/test_types.py +169 -0
- dev/tests/java/__init__.py +0 -0
- dev/tests/java/test_common.py +20 -0
- dev/tests/java/test_description.py +128 -0
- dev/tests/java/test_main.py +234 -0
- dev/tests/jsonld_context/test_main.py +79 -0
- dev/tests/opcua/__init__.py +3 -0
- dev/tests/opcua/test_main.py +110 -0
- dev/tests/our_jsonschema/__init__.py +3 -0
- dev/tests/our_jsonschema/test_main.py +232 -0
- dev/tests/parse/__init__.py +0 -0
- dev/tests/parse/test_parse.py +503 -0
- dev/tests/parse/test_retree.py +272 -0
- dev/tests/proto/__init__.py +0 -0
- dev/tests/proto/test_main.py +112 -0
- dev/tests/python/__init__.py +0 -0
- dev/tests/python/test_common.py +124 -0
- dev/tests/python/test_main.py +126 -0
- dev/tests/python/test_xml_playground.py +254 -0
- dev/tests/python_protobuf/__init__.py +0 -0
- dev/tests/python_protobuf/test_main.py +111 -0
- dev/tests/rdf_shacl/__init__.py +0 -0
- dev/tests/rdf_shacl/test_common.py +32 -0
- dev/tests/rdf_shacl/test_description.py +223 -0
- dev/tests/rdf_shacl/test_main.py +194 -0
- dev/tests/smoke/__init__.py +0 -0
- dev/tests/smoke/test_main.py +83 -0
- dev/tests/test_common.py +94 -0
- dev/tests/typescript/__init__.py +0 -0
- dev/tests/typescript/test_common.py +108 -0
- dev/tests/typescript/test_main.py +125 -0
- dev/tests/xsd/__init__.py +0 -0
- dev/tests/xsd/test_main.py +227 -0
- dev/tests/yielding/__init__.py +0 -0
- dev/tests/yielding/test_linear.py +558 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
"""Represent inferred constraints as strings."""
|
|
2
|
+
import collections
|
|
3
|
+
from typing import Union, Optional
|
|
4
|
+
|
|
5
|
+
from aas_core_codegen import stringify, intermediate
|
|
6
|
+
from aas_core_codegen.infer_for_schema._types import (
|
|
7
|
+
LenConstraint,
|
|
8
|
+
PatternConstraint,
|
|
9
|
+
ConstraintsByProperty,
|
|
10
|
+
SetOfPrimitivesConstraint,
|
|
11
|
+
SetOfEnumerationLiteralsConstraint,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def _stringify_len_constraint(
|
|
16
|
+
that: LenConstraint,
|
|
17
|
+
) -> stringify.Entity:
|
|
18
|
+
result = stringify.Entity(
|
|
19
|
+
name=that.__class__.__name__,
|
|
20
|
+
properties=[
|
|
21
|
+
stringify.Property("min_value", that.min_value),
|
|
22
|
+
stringify.Property("max_value", that.max_value),
|
|
23
|
+
],
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
return result
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def _stringify_pattern_constraint(
|
|
30
|
+
that: PatternConstraint,
|
|
31
|
+
) -> stringify.Entity:
|
|
32
|
+
result = stringify.Entity(
|
|
33
|
+
name=that.__class__.__name__,
|
|
34
|
+
properties=[
|
|
35
|
+
stringify.Property("pattern", that.pattern),
|
|
36
|
+
],
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
return result
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def _stringify_set_of_primitives_constraint(
|
|
43
|
+
that: SetOfPrimitivesConstraint,
|
|
44
|
+
) -> stringify.Entity:
|
|
45
|
+
result = stringify.Entity(
|
|
46
|
+
name=that.__class__.__name__,
|
|
47
|
+
properties=[
|
|
48
|
+
stringify.Property("a_type", that.a_type.name),
|
|
49
|
+
stringify.Property(
|
|
50
|
+
"literals", list(map(intermediate.stringify, that.literals))
|
|
51
|
+
),
|
|
52
|
+
],
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
return result
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def _stringify_set_of_enumeration_literals_constraint(
|
|
59
|
+
that: SetOfEnumerationLiteralsConstraint,
|
|
60
|
+
) -> stringify.Entity:
|
|
61
|
+
result = stringify.Entity(
|
|
62
|
+
name=that.__class__.__name__,
|
|
63
|
+
properties=[
|
|
64
|
+
stringify.Property(
|
|
65
|
+
"enumeration",
|
|
66
|
+
f"Reference to {that.enumeration.__class__.__name__} "
|
|
67
|
+
f"{that.enumeration.name}",
|
|
68
|
+
),
|
|
69
|
+
stringify.Property(
|
|
70
|
+
"literals",
|
|
71
|
+
[
|
|
72
|
+
f"Reference to {literal.__class__.__name__} {literal.name}"
|
|
73
|
+
for literal in that.literals
|
|
74
|
+
],
|
|
75
|
+
),
|
|
76
|
+
],
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
return result
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def _stringify_constraints_by_property(that: ConstraintsByProperty) -> stringify.Entity:
|
|
83
|
+
result = stringify.Entity(
|
|
84
|
+
name=that.__class__.__name__,
|
|
85
|
+
properties=[
|
|
86
|
+
stringify.Property(
|
|
87
|
+
"len_constraints_by_property",
|
|
88
|
+
# fmt: off
|
|
89
|
+
collections.OrderedDict(
|
|
90
|
+
[
|
|
91
|
+
# NOTE (mristin, 2022-05-18):
|
|
92
|
+
# Mypy could not infer that an identifier is also a string.
|
|
93
|
+
# Hence, we need to explicitly convert to a str here.
|
|
94
|
+
(str(prop.name), _stringify_len_constraint(len_constraint))
|
|
95
|
+
for prop, len_constraint in
|
|
96
|
+
that.len_constraints_by_property.items()
|
|
97
|
+
]
|
|
98
|
+
),
|
|
99
|
+
# fmt: on
|
|
100
|
+
),
|
|
101
|
+
stringify.Property(
|
|
102
|
+
"patterns_by_property",
|
|
103
|
+
# fmt: off
|
|
104
|
+
collections.OrderedDict(
|
|
105
|
+
[
|
|
106
|
+
(
|
|
107
|
+
# NOTE (mristin, 2022-05-18):
|
|
108
|
+
# Mypy could not infer that an identifier is also a string.
|
|
109
|
+
# Hence, we need to explicitly convert to a str here.
|
|
110
|
+
str(prop.name),
|
|
111
|
+
[_stringify(pattern) for pattern in patterns],
|
|
112
|
+
)
|
|
113
|
+
for prop, patterns in that.patterns_by_property.items()
|
|
114
|
+
]
|
|
115
|
+
),
|
|
116
|
+
# fmt: on
|
|
117
|
+
),
|
|
118
|
+
stringify.Property(
|
|
119
|
+
"set_of_primitives_by_property",
|
|
120
|
+
# fmt: off
|
|
121
|
+
collections.OrderedDict(
|
|
122
|
+
[
|
|
123
|
+
# NOTE (mristin, 2022-07-08):
|
|
124
|
+
# Mypy could not infer that an identifier is also a string.
|
|
125
|
+
# Hence, we need to explicitly convert to a str here.
|
|
126
|
+
(str(prop.name), _stringify(set_of_primitives))
|
|
127
|
+
for prop, set_of_primitives in
|
|
128
|
+
that.set_of_primitives_by_property.items()
|
|
129
|
+
]
|
|
130
|
+
),
|
|
131
|
+
# fmt: on
|
|
132
|
+
),
|
|
133
|
+
stringify.Property(
|
|
134
|
+
"set_of_enumeration_literals_by_property",
|
|
135
|
+
# fmt: off
|
|
136
|
+
collections.OrderedDict(
|
|
137
|
+
[
|
|
138
|
+
# NOTE (mristin, 2022-07-08):
|
|
139
|
+
# Mypy could not infer that an identifier is also a string.
|
|
140
|
+
# Hence, we need to explicitly convert to a str here.
|
|
141
|
+
(str(prop.name), _stringify(set_of_enum_literals))
|
|
142
|
+
for prop, set_of_enum_literals in
|
|
143
|
+
that.set_of_enumeration_literals_by_property.items()
|
|
144
|
+
]
|
|
145
|
+
),
|
|
146
|
+
# fmt: on
|
|
147
|
+
),
|
|
148
|
+
],
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
return result
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
Dumpable = Union[
|
|
155
|
+
LenConstraint,
|
|
156
|
+
PatternConstraint,
|
|
157
|
+
SetOfPrimitivesConstraint,
|
|
158
|
+
SetOfEnumerationLiteralsConstraint,
|
|
159
|
+
ConstraintsByProperty,
|
|
160
|
+
]
|
|
161
|
+
|
|
162
|
+
_DISPATCH = {
|
|
163
|
+
LenConstraint: _stringify_len_constraint,
|
|
164
|
+
PatternConstraint: _stringify_pattern_constraint,
|
|
165
|
+
SetOfPrimitivesConstraint: _stringify_set_of_primitives_constraint,
|
|
166
|
+
# fmt: off
|
|
167
|
+
SetOfEnumerationLiteralsConstraint: (
|
|
168
|
+
_stringify_set_of_enumeration_literals_constraint
|
|
169
|
+
),
|
|
170
|
+
# fmt: on
|
|
171
|
+
ConstraintsByProperty: _stringify_constraints_by_property,
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
stringify.assert_dispatch_exhaustive(dispatch=_DISPATCH, dumpable=Dumpable)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
def _stringify(that: Optional[Dumpable]) -> Optional[stringify.Entity]:
|
|
178
|
+
"""Dispatch to the correct ``_stringify_*`` method."""
|
|
179
|
+
if that is None:
|
|
180
|
+
return None
|
|
181
|
+
|
|
182
|
+
stringify_func = _DISPATCH.get(that.__class__, None)
|
|
183
|
+
if stringify_func is None:
|
|
184
|
+
raise AssertionError(
|
|
185
|
+
f"No stringify function could be found for the class {that.__class__}"
|
|
186
|
+
)
|
|
187
|
+
|
|
188
|
+
stringified = stringify_func(that) # type: ignore
|
|
189
|
+
assert isinstance(stringified, stringify.Entity)
|
|
190
|
+
stringify.assert_compares_against_dict(stringified, that)
|
|
191
|
+
|
|
192
|
+
return stringified
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
def dump(that: Optional[Dumpable]) -> str:
|
|
196
|
+
"""Produce a string representation of the ``dumpable`` for testing or debugging."""
|
|
197
|
+
if that is None:
|
|
198
|
+
return repr(None)
|
|
199
|
+
|
|
200
|
+
stringified = _stringify(that)
|
|
201
|
+
return stringify.dump(stringified)
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"""Provide data structures for the constraint inferences."""
|
|
2
|
+
from typing import Mapping, Sequence, Optional
|
|
3
|
+
|
|
4
|
+
from icontract import require
|
|
5
|
+
|
|
6
|
+
from aas_core_codegen import intermediate
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class LenConstraint:
|
|
10
|
+
"""
|
|
11
|
+
Represent the inferred constraint on the ``len`` of something.
|
|
12
|
+
|
|
13
|
+
Both bounds are inclusive: ``min_value ≤ len ≤ max_value``.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
# fmt: off
|
|
17
|
+
@require(
|
|
18
|
+
lambda min_value, max_value:
|
|
19
|
+
not (min_value is not None and max_value is not None)
|
|
20
|
+
or 0 < min_value <= max_value
|
|
21
|
+
)
|
|
22
|
+
# fmt: on
|
|
23
|
+
def __init__(self, min_value: Optional[int], max_value: Optional[int]) -> None:
|
|
24
|
+
"""Initialize with the given values."""
|
|
25
|
+
self.min_value = min_value
|
|
26
|
+
self.max_value = max_value
|
|
27
|
+
|
|
28
|
+
def copy(self) -> "LenConstraint":
|
|
29
|
+
"""Create a copy of the self."""
|
|
30
|
+
return LenConstraint(min_value=self.min_value, max_value=self.max_value)
|
|
31
|
+
|
|
32
|
+
def __str__(self) -> str:
|
|
33
|
+
return (
|
|
34
|
+
f"{self.__class__.__name__}("
|
|
35
|
+
f"min_value={self.min_value!r}, max_value={self.max_value!r})"
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class PatternConstraint:
|
|
40
|
+
"""Constrain a string to comply to a regular expression."""
|
|
41
|
+
|
|
42
|
+
def __init__(self, pattern: str) -> None:
|
|
43
|
+
"""Initialize with the given values."""
|
|
44
|
+
self.pattern = pattern
|
|
45
|
+
|
|
46
|
+
def __repr__(self) -> str:
|
|
47
|
+
"""Represent the constraint with the pattern."""
|
|
48
|
+
return (
|
|
49
|
+
f"<{self.__class__.__name__} at 0x{id(self):x} "
|
|
50
|
+
f"with pattern={self.pattern!r}>"
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class SetOfPrimitivesConstraint:
|
|
55
|
+
"""Constrain a primitive value to be a member of a pre-defined set of values."""
|
|
56
|
+
|
|
57
|
+
# fmt: off
|
|
58
|
+
@require(
|
|
59
|
+
lambda a_type, literals:
|
|
60
|
+
all(
|
|
61
|
+
literal.a_type is a_type
|
|
62
|
+
for literal in literals
|
|
63
|
+
)
|
|
64
|
+
)
|
|
65
|
+
# fmt: on
|
|
66
|
+
def __init__(
|
|
67
|
+
self,
|
|
68
|
+
a_type: intermediate.PrimitiveType,
|
|
69
|
+
literals: Sequence[intermediate.PrimitiveSetLiteral],
|
|
70
|
+
) -> None:
|
|
71
|
+
"""Initialize with the given values."""
|
|
72
|
+
self.a_type = a_type
|
|
73
|
+
self.literals = literals
|
|
74
|
+
|
|
75
|
+
def __repr__(self) -> str:
|
|
76
|
+
"""Represent the constraint with the pattern."""
|
|
77
|
+
return f"<{self.__class__.__name__} at 0x{id(self):x}>"
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
class SetOfEnumerationLiteralsConstraint:
|
|
81
|
+
"""Constrain a value to be a member of a pre-defined set of values."""
|
|
82
|
+
|
|
83
|
+
# fmt: off
|
|
84
|
+
@require(
|
|
85
|
+
lambda enumeration, literals:
|
|
86
|
+
all(
|
|
87
|
+
id(literal) in enumeration.literal_id_set
|
|
88
|
+
for literal in literals
|
|
89
|
+
)
|
|
90
|
+
)
|
|
91
|
+
# fmt: on
|
|
92
|
+
def __init__(
|
|
93
|
+
self,
|
|
94
|
+
enumeration: intermediate.Enumeration,
|
|
95
|
+
literals: Sequence[intermediate.EnumerationLiteral],
|
|
96
|
+
) -> None:
|
|
97
|
+
"""Initialize with the given values."""
|
|
98
|
+
self.enumeration = enumeration
|
|
99
|
+
self.literals = literals
|
|
100
|
+
|
|
101
|
+
def __repr__(self) -> str:
|
|
102
|
+
"""Represent the constraint with the pattern."""
|
|
103
|
+
return f"<{self.__class__.__name__} at 0x{id(self):x}>"
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
class ConstraintsByProperty:
|
|
107
|
+
"""
|
|
108
|
+
Represent all the inferred property constraints of one of our types.
|
|
109
|
+
|
|
110
|
+
The constraints coming from the constrained primitives are in-lined and hence also
|
|
111
|
+
included in this representation.
|
|
112
|
+
"""
|
|
113
|
+
|
|
114
|
+
def __init__(
|
|
115
|
+
self,
|
|
116
|
+
len_constraints_by_property: Mapping[intermediate.Property, LenConstraint],
|
|
117
|
+
patterns_by_property: Mapping[
|
|
118
|
+
intermediate.Property, Sequence[PatternConstraint]
|
|
119
|
+
],
|
|
120
|
+
set_of_primitives_by_property: Mapping[
|
|
121
|
+
intermediate.Property, SetOfPrimitivesConstraint
|
|
122
|
+
],
|
|
123
|
+
set_of_enumeration_literals_by_property: Mapping[
|
|
124
|
+
intermediate.Property, SetOfEnumerationLiteralsConstraint
|
|
125
|
+
],
|
|
126
|
+
) -> None:
|
|
127
|
+
"""Initialize with the given values."""
|
|
128
|
+
self.len_constraints_by_property = len_constraints_by_property
|
|
129
|
+
self.patterns_by_property = patterns_by_property
|
|
130
|
+
self.set_of_primitives_by_property = set_of_primitives_by_property
|
|
131
|
+
# fmt: off
|
|
132
|
+
self.set_of_enumeration_literals_by_property = (
|
|
133
|
+
set_of_enumeration_literals_by_property
|
|
134
|
+
)
|
|
135
|
+
# fmt: on
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Provide matching functions for different algorithms for inference of the constraints.
|
|
3
|
+
|
|
4
|
+
The constraints are inferred based on the invariants, so the properties in this context
|
|
5
|
+
refer to member access in form of ``self.some_property``.
|
|
6
|
+
|
|
7
|
+
.. note::
|
|
8
|
+
|
|
9
|
+
This module is not only used by aas-core-codegen, but also by downstream clients
|
|
10
|
+
or continuous integrations of other packages, *e.g.*, aas-core-meta.
|
|
11
|
+
"""
|
|
12
|
+
from typing import Optional, Union
|
|
13
|
+
|
|
14
|
+
from aas_core_codegen.common import Identifier
|
|
15
|
+
|
|
16
|
+
from aas_core_codegen.parse import tree as parse_tree
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def try_property(node: parse_tree.Node) -> Optional[Identifier]:
|
|
20
|
+
"""
|
|
21
|
+
Match access to a property.
|
|
22
|
+
|
|
23
|
+
For example, matching ``self.something`` will be a ``"something"``.
|
|
24
|
+
"""
|
|
25
|
+
if (
|
|
26
|
+
isinstance(node, parse_tree.Member)
|
|
27
|
+
and isinstance(node.instance, parse_tree.Name)
|
|
28
|
+
and node.instance.identifier == "self"
|
|
29
|
+
):
|
|
30
|
+
return node.name
|
|
31
|
+
|
|
32
|
+
return None
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class SingleArgFunctionOnMemberOrName:
|
|
36
|
+
"""
|
|
37
|
+
Match a call of a function with a single argument on a member or a variable.
|
|
38
|
+
|
|
39
|
+
Mind that we only match arguments, but ignore keyword arguments. This is due to
|
|
40
|
+
simplicity of the implementation and this behavior might change in the future.
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
def __init__(
|
|
44
|
+
self,
|
|
45
|
+
function_name: Identifier,
|
|
46
|
+
member_or_name: Union[parse_tree.Member, parse_tree.Name],
|
|
47
|
+
) -> None:
|
|
48
|
+
"""Initialize with the given values."""
|
|
49
|
+
self.function_name = function_name
|
|
50
|
+
self.member_or_name = member_or_name
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def try_single_arg_function_on_member_or_name(
|
|
54
|
+
node: parse_tree.Node,
|
|
55
|
+
) -> Optional[SingleArgFunctionOnMemberOrName]:
|
|
56
|
+
"""
|
|
57
|
+
Match a call of a function with a single argument on a member or a variable.
|
|
58
|
+
|
|
59
|
+
For example, something like ``len(self.some_property)`` or ``is_MIME_type(self)``.
|
|
60
|
+
|
|
61
|
+
Mind that we only match arguments, but ignore keyword arguments. This is due to
|
|
62
|
+
simplicity of the implementation and this behavior might change in the future.
|
|
63
|
+
"""
|
|
64
|
+
if not isinstance(node, parse_tree.FunctionCall):
|
|
65
|
+
return None
|
|
66
|
+
|
|
67
|
+
if len(node.args) != 1:
|
|
68
|
+
return None
|
|
69
|
+
|
|
70
|
+
if not isinstance(node.args[0], (parse_tree.Name, parse_tree.Member)):
|
|
71
|
+
return None
|
|
72
|
+
|
|
73
|
+
# noinspection PyTypeChecker
|
|
74
|
+
return SingleArgFunctionOnMemberOrName(
|
|
75
|
+
function_name=node.name.identifier, member_or_name=node.args[0]
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
class ConditionalOnProp:
|
|
80
|
+
"""Represent an invariant conditioned on an optional property."""
|
|
81
|
+
|
|
82
|
+
def __init__(
|
|
83
|
+
self, prop_name: Identifier, consequent: parse_tree.Expression
|
|
84
|
+
) -> None:
|
|
85
|
+
"""Initialize with the given values."""
|
|
86
|
+
self.prop_name = prop_name
|
|
87
|
+
self.consequent = consequent
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def try_conditional_on_prop(node: parse_tree.Node) -> Optional[ConditionalOnProp]:
|
|
91
|
+
"""
|
|
92
|
+
Match an invariant conditioned on an optional property.
|
|
93
|
+
|
|
94
|
+
For example, ``not (self.some_prop is not None) or ...`` or
|
|
95
|
+
``self.some_prop is None or ...``.
|
|
96
|
+
"""
|
|
97
|
+
if isinstance(node, parse_tree.Implication):
|
|
98
|
+
if not isinstance(node.antecedent, parse_tree.IsNotNone):
|
|
99
|
+
return None
|
|
100
|
+
|
|
101
|
+
prop_name = try_property(node.antecedent.value)
|
|
102
|
+
if prop_name is None:
|
|
103
|
+
return None
|
|
104
|
+
|
|
105
|
+
return ConditionalOnProp(prop_name=prop_name, consequent=node.consequent)
|
|
106
|
+
|
|
107
|
+
elif isinstance(node, parse_tree.Or):
|
|
108
|
+
if len(node.values) != 2:
|
|
109
|
+
return None
|
|
110
|
+
|
|
111
|
+
if not isinstance(node.values[0], parse_tree.IsNone):
|
|
112
|
+
return None
|
|
113
|
+
|
|
114
|
+
# noinspection PyUnresolvedReferences
|
|
115
|
+
prop_name = try_property(node.values[0].value)
|
|
116
|
+
if prop_name is None:
|
|
117
|
+
return None
|
|
118
|
+
|
|
119
|
+
return ConditionalOnProp(prop_name=prop_name, consequent=node.values[1])
|
|
120
|
+
|
|
121
|
+
else:
|
|
122
|
+
return None
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"""Provide the intermediate representation of the meta-model."""
|
|
2
|
+
|
|
3
|
+
from aas_core_codegen.intermediate import _types, _translate, _stringify
|
|
4
|
+
|
|
5
|
+
TypeAnnotation = _types.TypeAnnotation
|
|
6
|
+
TypeAnnotationUnion = _types.TypeAnnotationUnion
|
|
7
|
+
AtomicTypeAnnotation = _types.AtomicTypeAnnotation
|
|
8
|
+
PrimitiveType = _types.PrimitiveType
|
|
9
|
+
PrimitiveTypeAnnotation = _types.PrimitiveTypeAnnotation
|
|
10
|
+
OurTypeAnnotation = _types.OurTypeAnnotation
|
|
11
|
+
ListTypeAnnotation = _types.ListTypeAnnotation
|
|
12
|
+
OptionalTypeAnnotation = _types.OptionalTypeAnnotation
|
|
13
|
+
SummaryRemarksDescription = _types.SummaryRemarksDescription
|
|
14
|
+
SummaryRemarksConstraintsDescription = _types.SummaryRemarksConstraintsDescription
|
|
15
|
+
DescriptionOfMetaModel = _types.DescriptionOfMetaModel
|
|
16
|
+
DescriptionOfOurType = _types.DescriptionOfOurType
|
|
17
|
+
DescriptionOfProperty = _types.DescriptionOfProperty
|
|
18
|
+
DescriptionOfEnumerationLiteral = _types.DescriptionOfEnumerationLiteral
|
|
19
|
+
DescriptionOfSignature = _types.DescriptionOfSignature
|
|
20
|
+
DescriptionOfConstant = _types.DescriptionOfConstant
|
|
21
|
+
DescriptionUnion = _types.DescriptionUnion
|
|
22
|
+
Property = _types.Property
|
|
23
|
+
Default = _types.Default
|
|
24
|
+
DefaultPrimitive = _types.DefaultPrimitive
|
|
25
|
+
DefaultEnumerationLiteral = _types.DefaultEnumerationLiteral
|
|
26
|
+
Argument = _types.Argument
|
|
27
|
+
OurType = _types.OurType
|
|
28
|
+
OurTypeExceptEnumeration = _types.OurTypeExceptEnumeration
|
|
29
|
+
Invariant = _types.Invariant
|
|
30
|
+
Contract = _types.Contract
|
|
31
|
+
Snapshot = _types.Snapshot
|
|
32
|
+
Contracts = _types.Contracts
|
|
33
|
+
Method = _types.Method
|
|
34
|
+
ImplementationSpecificMethod = _types.ImplementationSpecificMethod
|
|
35
|
+
UnderstoodMethod = _types.UnderstoodMethod
|
|
36
|
+
MethodUnion = _types.MethodUnion
|
|
37
|
+
Constructor = _types.Constructor
|
|
38
|
+
Serialization = _types.Serialization
|
|
39
|
+
EnumerationLiteral = _types.EnumerationLiteral
|
|
40
|
+
Enumeration = _types.Enumeration
|
|
41
|
+
ConstrainedPrimitive = _types.ConstrainedPrimitive
|
|
42
|
+
Class = _types.Class
|
|
43
|
+
ClassUnion = _types.ClassUnion
|
|
44
|
+
ConcreteClass = _types.ConcreteClass
|
|
45
|
+
AbstractClass = _types.AbstractClass
|
|
46
|
+
ConstantPrimitive = _types.ConstantPrimitive
|
|
47
|
+
PrimitiveSetLiteral = _types.PrimitiveSetLiteral
|
|
48
|
+
Constant = _types.Constant
|
|
49
|
+
ConstantSetOfPrimitives = _types.ConstantSetOfPrimitives
|
|
50
|
+
ConstantSetOfEnumerationLiterals = _types.ConstantSetOfEnumerationLiterals
|
|
51
|
+
ConstantSetUnion = _types.ConstantSetUnion
|
|
52
|
+
ConstantUnion = _types.ConstantUnion
|
|
53
|
+
Verification = _types.Verification
|
|
54
|
+
ImplementationSpecificVerification = _types.ImplementationSpecificVerification
|
|
55
|
+
PatternVerification = _types.PatternVerification
|
|
56
|
+
TranspilableVerification = _types.TranspilableVerification
|
|
57
|
+
VerificationUnion = _types.VerificationUnion
|
|
58
|
+
Signature = _types.Signature
|
|
59
|
+
Interface = _types.Interface
|
|
60
|
+
SymbolTable = _types.SymbolTable
|
|
61
|
+
|
|
62
|
+
type_annotations_equal = _types.type_annotations_equal
|
|
63
|
+
beneath_optional = _types.beneath_optional
|
|
64
|
+
TypeAnnotationExceptOptional = _types.TypeAnnotationExceptOptional
|
|
65
|
+
try_primitive_type = _types.try_primitive_type
|
|
66
|
+
map_descendability = _types.map_descendability
|
|
67
|
+
collect_ids_of_our_types_in_properties = _types.collect_ids_of_our_types_in_properties
|
|
68
|
+
|
|
69
|
+
translate = _translate.translate
|
|
70
|
+
errors_if_contracts_for_functions_or_methods_defined = (
|
|
71
|
+
_translate.errors_if_contracts_for_functions_or_methods_defined
|
|
72
|
+
)
|
|
73
|
+
errors_if_non_implementation_specific_methods = (
|
|
74
|
+
_translate.errors_if_non_implementation_specific_methods
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
dump = _stringify.dump
|
|
78
|
+
stringify = _stringify.stringify
|