diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-08-11 00:39:05 +0200 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2021-08-23 16:35:34 +0200 |
commit | 91392f7951f9a60f50d20c594e3b9c978a4104bc (patch) | |
tree | ecc121db072e187674e760ef447771fef93c9c88 /pyGHDL/dom | |
parent | c80c2e02dda356e3eb00ae6a097ff62c0f08fc79 (diff) | |
download | ghdl-91392f7951f9a60f50d20c594e3b9c978a4104bc.tar.gz ghdl-91392f7951f9a60f50d20c594e3b9c978a4104bc.tar.bz2 ghdl-91392f7951f9a60f50d20c594e3b9c978a4104bc.zip |
Renamed BodyItems to Statements.
Diffstat (limited to 'pyGHDL/dom')
-rw-r--r-- | pyGHDL/dom/Concurrent.py | 8 | ||||
-rw-r--r-- | pyGHDL/dom/DesignUnit.py | 16 |
2 files changed, 12 insertions, 12 deletions
diff --git a/pyGHDL/dom/Concurrent.py b/pyGHDL/dom/Concurrent.py index ab30f9176..76ebd12a4 100644 --- a/pyGHDL/dom/Concurrent.py +++ b/pyGHDL/dom/Concurrent.py @@ -137,9 +137,9 @@ class ConcurrentBlockStatement(VHDLModel_ConcurrentBlockStatement, DOMMixin): blockNode: Iir, label: str, declaredItems: Iterable = None, - bodyItems: Iterable["ConcurrentStatement"] = None, + statements: Iterable["ConcurrentStatement"] = None, ): - super().__init__(label, None, declaredItems, bodyItems) + super().__init__(label, None, declaredItems, statements) DOMMixin.__init__(self, blockNode) @classmethod @@ -152,11 +152,11 @@ class ConcurrentBlockStatement(VHDLModel_ConcurrentBlockStatement, DOMMixin): declaredItems = GetDeclaredItemsFromChainedNodes( nodes.Get_Declaration_Chain(blockNode), "block", label ) - bodyItems = GetStatementsFromChainedNodes( + statements = GetStatementsFromChainedNodes( nodes.Get_Concurrent_Statement_Chain(blockNode), "block", label ) - return cls(blockNode, label, declaredItems, bodyItems) + return cls(blockNode, label, declaredItems, statements) @export diff --git a/pyGHDL/dom/DesignUnit.py b/pyGHDL/dom/DesignUnit.py index d8e816635..9c083679d 100644 --- a/pyGHDL/dom/DesignUnit.py +++ b/pyGHDL/dom/DesignUnit.py @@ -102,9 +102,9 @@ class Entity(VHDLModel_Entity, DOMMixin): genericItems: Iterable[GenericInterfaceItem] = None, portItems: Iterable[PortInterfaceItem] = None, declaredItems: Iterable = None, - bodyItems: Iterable["ConcurrentStatement"] = None, + statements: Iterable["ConcurrentStatement"] = None, ): - super().__init__(identifier, genericItems, portItems, declaredItems, bodyItems) + super().__init__(identifier, genericItems, portItems, declaredItems, statements) DOMMixin.__init__(self, node) @classmethod @@ -115,11 +115,11 @@ class Entity(VHDLModel_Entity, DOMMixin): declaredItems = GetDeclaredItemsFromChainedNodes( nodes.Get_Declaration_Chain(entityNode), "entity", name ) - bodyItems = GetStatementsFromChainedNodes( + statements = GetStatementsFromChainedNodes( nodes.Get_Concurrent_Statement_Chain(entityNode), "entity", name ) - return cls(entityNode, name, generics, ports, declaredItems, bodyItems) + return cls(entityNode, name, generics, ports, declaredItems, statements) @export @@ -130,9 +130,9 @@ class Architecture(VHDLModel_Architecture, DOMMixin): identifier: str, entity: EntityOrSymbol, declaredItems: Iterable = None, - bodyItems: Iterable["ConcurrentStatement"] = None, + statements: Iterable["ConcurrentStatement"] = None, ): - super().__init__(identifier, entity, declaredItems, bodyItems) + super().__init__(identifier, entity, declaredItems, statements) DOMMixin.__init__(self, node) @classmethod @@ -144,11 +144,11 @@ class Architecture(VHDLModel_Architecture, DOMMixin): declaredItems = GetDeclaredItemsFromChainedNodes( nodes.Get_Declaration_Chain(architectureNode), "architecture", name ) - bodyItems = GetStatementsFromChainedNodes( + statements = GetStatementsFromChainedNodes( nodes.Get_Concurrent_Statement_Chain(architectureNode), "architecture", name ) - return cls(architectureNode, name, entity, declaredItems, bodyItems) + return cls(architectureNode, name, entity, declaredItems, statements) def resolve(self): pass |