specware 1.3.35__tar.gz → 1.3.36__tar.gz
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.
- {specware-1.3.35 → specware-1.3.36}/PKG-INFO +1 -1
- {specware-1.3.35 → specware-1.3.36}/pyproject.toml +1 -1
- {specware-1.3.35 → specware-1.3.36}/src/specware/rtems.py +15 -2
- {specware-1.3.35 → specware-1.3.36}/src/specware/spec.pickle +0 -0
- {specware-1.3.35 → specware-1.3.36}/README.md +0 -0
- {specware-1.3.35 → specware-1.3.36}/src/specware/__init__.py +0 -0
- {specware-1.3.35 → specware-1.3.36}/src/specware/applconfig.py +0 -0
- {specware-1.3.35 → specware-1.3.36}/src/specware/build.py +0 -0
- {specware-1.3.35 → specware-1.3.36}/src/specware/cliexport.py +0 -0
- {specware-1.3.35 → specware-1.3.36}/src/specware/cliexportheader.py +0 -0
- {specware-1.3.35 → specware-1.3.36}/src/specware/clifind.py +0 -0
- {specware-1.3.35 → specware-1.3.36}/src/specware/cliview.py +0 -0
- {specware-1.3.35 → specware-1.3.36}/src/specware/contentc.py +0 -0
- {specware-1.3.35 → specware-1.3.36}/src/specware/interface.py +0 -0
- {specware-1.3.35 → specware-1.3.36}/src/specware/interfacedoc.py +0 -0
- {specware-1.3.35 → specware-1.3.36}/src/specware/interfacemapper.py +0 -0
- {specware-1.3.35 → specware-1.3.36}/src/specware/py.typed +0 -0
- {specware-1.3.35 → specware-1.3.36}/src/specware/registerblock.py +0 -0
- {specware-1.3.35 → specware-1.3.36}/src/specware/transitionmap.py +0 -0
- {specware-1.3.35 → specware-1.3.36}/src/specware/util.py +0 -0
- {specware-1.3.35 → specware-1.3.36}/src/specware/validation.py +0 -0
|
@@ -57,13 +57,26 @@ _ENABLEMENT_CHILD_ROLES = ("interface-host", "interface-group-member",
|
|
|
57
57
|
"register-block-base", "register-block-include")
|
|
58
58
|
|
|
59
59
|
|
|
60
|
+
def _is_design_property_enabled(enabled_set: EnabledSet, item: Item) -> bool:
|
|
61
|
+
result = True
|
|
62
|
+
for design_property in item.parents("design-property",
|
|
63
|
+
is_link_enabled=link_is_enabled):
|
|
64
|
+
if recursive_is_enabled(enabled_set, design_property):
|
|
65
|
+
return True
|
|
66
|
+
result = False
|
|
67
|
+
return result
|
|
68
|
+
|
|
69
|
+
|
|
60
70
|
def recursive_is_enabled(enabled_set: EnabledSet, item: Item) -> bool:
|
|
61
71
|
"""
|
|
62
|
-
Return true, if the item is enabled
|
|
63
|
-
|
|
72
|
+
Return true, if the item is enabled, at least one of its design properties
|
|
73
|
+
is enabled or it has no design property, and there exists a path to the
|
|
74
|
+
root item where each item on the path is enabled, otherwise false.
|
|
64
75
|
"""
|
|
65
76
|
if not item.is_enabled(enabled_set):
|
|
66
77
|
return False
|
|
78
|
+
if not _is_design_property_enabled(enabled_set, item):
|
|
79
|
+
return False
|
|
67
80
|
result = True
|
|
68
81
|
for parent in itertools.chain(
|
|
69
82
|
item.parents(_ENABLEMENT_ROLES, is_link_enabled=link_is_enabled),
|
|
index 7944dbb..722e79c 100644
|
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|