sysmlpy 0.36.2__tar.gz → 0.36.3__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.
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/PKG-INFO +1 -1
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/pyproject.toml +1 -1
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/__init__.py +1 -1
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/definition.py +2 -14
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/usage.py +34 -3
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/LICENSE +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/README.md +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/__main__.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/antlr/README.md +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/antlr/SysMLv2Lexer.interp +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/antlr/SysMLv2Lexer.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/antlr/SysMLv2Lexer.tokens +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/antlr/SysMLv2Parser.interp +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/antlr/SysMLv2Parser.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/antlr/SysMLv2Parser.tokens +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/antlr/SysMLv2ParserListener.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/antlr/SysMLv2ParserVisitor.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/antlr/src/sysmlpy/grammar/antlr4/SysMLv2Lexer.interp +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/antlr/src/sysmlpy/grammar/antlr4/SysMLv2Lexer.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/antlr/src/sysmlpy/grammar/antlr4/SysMLv2Lexer.tokens +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/antlr_parser.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/antlr_visitor.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/boxes_view.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/examples/attribute_values.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/examples/part_attributes.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/examples/tuples_sequences.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/formatting.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/grammar/antlr4/README.md +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/grammar/antlr4/SysMLv2Lexer.g4 +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/grammar/antlr4/SysMLv2Lexer.interp +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/grammar/antlr4/SysMLv2Lexer.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/grammar/antlr4/SysMLv2Lexer.tokens +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/grammar/antlr4/SysMLv2Parser.g4 +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/grammar/antlr4/SysMLv2Parser.interp +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/grammar/antlr4/SysMLv2Parser.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/grammar/antlr4/SysMLv2Parser.tokens +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/grammar/antlr4/SysMLv2ParserListener.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/grammar/antlr4/SysMLv2ParserVisitor.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/grammar/antlr4/desc.xml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/grammar/antlr4/examples/camera.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/grammar/antlr4/examples/toaster-system.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/grammar/antlr4/examples/vehicle-model.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/grammar/antlr4/pom.xml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/grammar/classes.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/LICENSE +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/README.md +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/__init__.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Analysis/AnalysisTooling.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Analysis/SampledFunctions.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Analysis/StateSpaceRepresentation.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Analysis/TradeStudies.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Cause and Effect/CausationConnections.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Cause and Effect/CauseAndEffect.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Geometry/ShapeItems.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Geometry/SpatialItems.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Metadata/ImageMetadata.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Metadata/ModelingMetadata.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Metadata/ParametersOfInterestMetadata.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Metadata/RiskMetadata.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/ISQ.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/ISQAcoustics.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/ISQAtomicNuclear.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/ISQBase.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/ISQCharacteristicNumbers.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/ISQChemistryMolecular.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/ISQCondensedMatter.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/ISQElectromagnetism.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/ISQInformation.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/ISQLight.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/ISQMechanics.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/ISQSpaceTime.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/ISQThermodynamics.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/MeasurementRefCalculations.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/MeasurementReferences.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/Quantities.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/QuantityCalculations.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/SI.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/SIPrefixes.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/TensorCalculations.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/Time.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/USCustomaryUnits.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/VectorCalculations.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Requirement Derivation/DerivationConnections.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Requirement Derivation/RequirementDerivation.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/Base.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/BaseFunctions.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/BooleanFunctions.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/Clocks.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/CollectionFunctions.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/Collections.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/ComplexFunctions.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/ControlFunctions.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/ControlPerformances.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/DataFunctions.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/FeatureReferencingPerformances.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/IntegerFunctions.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/KerML.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/Links.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/Metaobjects.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/NaturalFunctions.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/NumericalFunctions.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/Objects.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/Observation.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/OccurrenceFunctions.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/Occurrences.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/Performances.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/RationalFunctions.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/RealFunctions.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/ScalarFunctions.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/ScalarValues.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/SequenceFunctions.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/SpatialFrames.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/StatePerformances.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/StringFunctions.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/Transfers.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/TransitionPerformances.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/TrigFunctions.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/Triggers.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/VectorFunctions.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/VectorValues.kerml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/Actions.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/Allocations.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/AnalysisCases.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/Attributes.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/Calculations.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/Cases.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/Connections.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/Constraints.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/Flows.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/Interfaces.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/Items.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/Metadata.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/Parts.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/Ports.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/Requirements.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/StandardViewDefinitions.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/States.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/SysML.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/UseCases.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/VerificationCases.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/systems/Views.sysml +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/navigate.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/plantuml.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/project.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/semantic.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/store.py +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/us_customary_units.txt +0 -0
- {sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/validator.py +0 -0
|
@@ -24,7 +24,7 @@ __all__ = [
|
|
|
24
24
|
"render_state_transition_view_svg", "boxes_view",
|
|
25
25
|
]
|
|
26
26
|
__author__ = "Jon Fox"
|
|
27
|
-
__version__ = "0.36.
|
|
27
|
+
__version__ = "0.36.3"
|
|
28
28
|
|
|
29
29
|
from sysmlpy.usage import (
|
|
30
30
|
Item, Attribute, Part, Port, Action, Reference, UseCase, Requirement, Interface, Message,
|
|
@@ -1168,23 +1168,11 @@ class Package(Searchable):
|
|
|
1168
1168
|
f.parent = self
|
|
1169
1169
|
self.children.append(f)
|
|
1170
1170
|
elif inner_class == "ViewDefinition":
|
|
1171
|
-
v = View(definition=True)
|
|
1172
|
-
v.grammar = inner_element
|
|
1173
|
-
if hasattr(inner_element, 'declaration') and inner_element.declaration:
|
|
1174
|
-
decl = inner_element.declaration
|
|
1175
|
-
if hasattr(decl, 'identification') and decl.identification:
|
|
1176
|
-
v.name = decl.identification.declaredName
|
|
1171
|
+
v = View(definition=True).load_from_grammar(inner_element)
|
|
1177
1172
|
v.parent = self
|
|
1178
1173
|
self.children.append(v)
|
|
1179
1174
|
elif inner_class == "ViewUsage":
|
|
1180
|
-
v = View()
|
|
1181
|
-
v.grammar = inner_element
|
|
1182
|
-
if hasattr(inner_element, 'declaration') and inner_element.declaration:
|
|
1183
|
-
decl = inner_element.declaration
|
|
1184
|
-
if hasattr(decl, 'declaration') and decl.declaration:
|
|
1185
|
-
feat_decl = decl.declaration
|
|
1186
|
-
if hasattr(feat_decl, 'identification') and feat_decl.identification:
|
|
1187
|
-
v.name = feat_decl.identification.declaredName
|
|
1175
|
+
v = View().load_from_grammar(inner_element)
|
|
1188
1176
|
v.parent = self
|
|
1189
1177
|
self.children.append(v)
|
|
1190
1178
|
elif inner_class == "ViewpointDefinition":
|
|
@@ -151,15 +151,24 @@ class Usage(Searchable):
|
|
|
151
151
|
)
|
|
152
152
|
|
|
153
153
|
if len(body) > 0:
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
# Most usages (Part, Item, Attribute, ...) nest their body under
|
|
155
|
+
# ``grammar.usage.completion.body.body`` (a DefinitionBody). Prefixed
|
|
156
|
+
# usages such as ViewUsage carry the body directly on ``grammar.body``
|
|
157
|
+
# (a ViewBody / ViewDefinitionBody) whose ``children`` are the
|
|
158
|
+
# DefinitionBodyItem objects themselves.
|
|
159
|
+
target = getattr(self.grammar, subgrammar, None)
|
|
160
|
+
if target is not None and hasattr(target, 'completion'):
|
|
156
161
|
target.completion.body.body = DefinitionBody(
|
|
157
162
|
{"name": "DefinitionBody", "ownedRelatedElement": body}
|
|
158
163
|
)
|
|
159
|
-
|
|
164
|
+
elif target is not None and hasattr(target, 'body'):
|
|
160
165
|
target.body = DefinitionBody(
|
|
161
166
|
{"name": "DefinitionBody", "ownedRelatedElement": body}
|
|
162
167
|
)
|
|
168
|
+
elif hasattr(self.grammar, 'body') and hasattr(self.grammar.body, 'children'):
|
|
169
|
+
self.grammar.body.children = [
|
|
170
|
+
DefinitionBodyItem(item) for item in body
|
|
171
|
+
]
|
|
163
172
|
return self
|
|
164
173
|
|
|
165
174
|
def usage_dump(self, child):
|
|
@@ -780,7 +789,29 @@ class Usage(Searchable):
|
|
|
780
789
|
# Check direct identification (for RequirementDefinition, UseCaseDefinition)
|
|
781
790
|
elif hasattr(decl, 'identification') and decl.identification:
|
|
782
791
|
u_name = decl.identification.declaredName
|
|
792
|
+
# Prefixed usages (e.g. ViewUsage, ViewDefinition) and other
|
|
793
|
+
# declaration-based types carry their body directly on
|
|
794
|
+
# ``grammar.body`` rather than nested under
|
|
795
|
+
# ``grammar.usage.completion.body.body``. Extract children the
|
|
796
|
+
# same way the usage path does when the body exposes a
|
|
797
|
+
# ``children`` list (ViewBody / ViewDefinitionBody /
|
|
798
|
+
# DefinitionBody). Bodies that use ``items`` instead
|
|
799
|
+
# (RequirementBody, CaseBody) are left untouched here.
|
|
783
800
|
children = []
|
|
801
|
+
body = getattr(grammar, 'body', None)
|
|
802
|
+
if body is not None and hasattr(body, 'children') and body.children:
|
|
803
|
+
children_list = []
|
|
804
|
+
for body_item in body.children:
|
|
805
|
+
if hasattr(body_item, 'children') and body_item.children:
|
|
806
|
+
member = body_item.children[0]
|
|
807
|
+
mc = member.children if isinstance(member.children, list) else [member.children]
|
|
808
|
+
for inner in mc:
|
|
809
|
+
if inner is None:
|
|
810
|
+
continue
|
|
811
|
+
if inner.__class__.__name__ == 'DefinitionElement' and hasattr(inner, 'children') and inner.children:
|
|
812
|
+
inner = inner.children[0]
|
|
813
|
+
children_list.append(inner)
|
|
814
|
+
children = children_list
|
|
784
815
|
else:
|
|
785
816
|
u_name = None
|
|
786
817
|
children = []
|
|
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
|
{sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/antlr/src/sysmlpy/grammar/antlr4/SysMLv2Lexer.interp
RENAMED
|
File without changes
|
{sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/antlr/src/sysmlpy/grammar/antlr4/SysMLv2Lexer.py
RENAMED
|
File without changes
|
{sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/antlr/src/sysmlpy/grammar/antlr4/SysMLv2Lexer.tokens
RENAMED
|
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
|
|
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
|
{sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Analysis/SampledFunctions.sysml
RENAMED
|
File without changes
|
{sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Analysis/StateSpaceRepresentation.sysml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Cause and Effect/CauseAndEffect.sysml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Metadata/ModelingMetadata.sysml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/ISQAcoustics.sysml
RENAMED
|
File without changes
|
|
File without changes
|
{sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/ISQBase.sysml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/ISQLight.sysml
RENAMED
|
File without changes
|
{sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/ISQMechanics.sysml
RENAMED
|
File without changes
|
{sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/ISQSpaceTime.sysml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/Quantities.sysml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/SIPrefixes.sysml
RENAMED
|
File without changes
|
|
File without changes
|
{sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/domain/Quantities and Units/Time.sysml
RENAMED
|
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
|
{sysmlpy-0.36.2 → sysmlpy-0.36.3}/src/sysmlpy/library/kernel/FeatureReferencingPerformances.kerml
RENAMED
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|