Skip to content

Commit

Permalink
Fixed typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Apr 16, 2023
1 parent 253507b commit 004fb0e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pyVHDLModel/Namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def FindComponent(self, componentSymbol: ComponentInstantiationSymbol):
from pyVHDLModel.DesignUnit import Component

try:
element = self._elements[componentSymbol.NormalizedIdentifier]
element = self._elements[componentSymbol.Name.NormalizedIdentifier]
if isinstance(element, Component):
return element
else:
Expand Down
4 changes: 2 additions & 2 deletions pyVHDLModel/STD.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

from pyVHDLModel import Library
from pyVHDLModel.Name import SimpleName, SelectedName, AllName
from pyVHDLModel.Symbol import LibraryReferenceSymbol, PackageMembersReferenceSymbol, AllPackageMembersReferenceSymbol, PackageSymbol
from pyVHDLModel.Symbol import LibraryReferenceSymbol, PackageMemberReferenceSymbol, AllPackageMembersReferenceSymbol, PackageSymbol
from pyVHDLModel.DesignUnit import LibraryClause, UseClause, Package, PackageBody


Expand Down Expand Up @@ -77,7 +77,7 @@ def _AddPackageClause(self, packages: Iterable[str]):
if members.lower() == "all":
symbols.append(AllPackageMembersReferenceSymbol(AllName(packageName)))
else:
symbols.append(PackageMembersReferenceSymbol(SelectedName(members, packageName)))
symbols.append(PackageMemberReferenceSymbol(SelectedName(members, packageName)))

useClause = UseClause(symbols)
self._contextItems.append(useClause)
Expand Down
4 changes: 2 additions & 2 deletions pyVHDLModel/Symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def Package(self, value: 'Package') -> None:


@export
class PackageMembersReferenceSymbol(Symbol):
class PackageMemberReferenceSymbol(Symbol):
"""A package member reference in a use clause."""

def __init__(self, name: Name):
Expand All @@ -181,7 +181,7 @@ def Member(self, value: 'Package') -> None: # TODO: typehint
class AllPackageMembersReferenceSymbol(Symbol):
"""A package reference in a use clause."""

def __init__(self, name: Name):
def __init__(self, name: AllName):
super().__init__(name, PossibleReference.PackageMember)

@property
Expand Down
6 changes: 3 additions & 3 deletions pyVHDLModel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
from pyVHDLModel.Exception import ArchitectureExistsInLibraryError, PackageExistsInLibraryError, PackageBodyExistsError, ConfigurationExistsInLibraryError
from pyVHDLModel.Exception import ContextExistsInLibraryError, ReferencedLibraryNotExistingError
from pyVHDLModel.Base import ModelEntity, NamedEntityMixin, DocumentedEntityMixin
from pyVHDLModel.Symbol import AllPackageMembersReferenceSymbol, PackageMembersReferenceSymbol
from pyVHDLModel.Symbol import AllPackageMembersReferenceSymbol, PackageMemberReferenceSymbol
from pyVHDLModel.Concurrent import EntityInstantiation, ComponentInstantiation, ConfigurationInstantiation
from pyVHDLModel.DesignUnit import DesignUnit, PrimaryUnit, Architecture, PackageBody, Context, Entity, Configuration, Package
from pyVHDLModel.PSLModel import VerificationUnit, VerificationProperty, VerificationMode
Expand Down Expand Up @@ -704,7 +704,7 @@ def LinkContexts(self) -> None:
if isinstance(symbol, AllPackageMembersReferenceSymbol):
pass

elif isinstance(symbol, PackageMembersReferenceSymbol):
elif isinstance(symbol, PackageMemberReferenceSymbol):
raise NotImplementedError()
else:
raise VHDLModelException()
Expand Down Expand Up @@ -848,7 +848,7 @@ def LinkPackageReferences(self) -> None:
for componentIdentifier, component in package._components.items():
designUnit._namespace._elements[componentIdentifier] = component

elif isinstance(packageMemeberSymbol, PackageMembersReferenceSymbol):
elif isinstance(packageMemeberSymbol, PackageMemberReferenceSymbol):
raise NotImplementedError()
else:
raise VHDLModelException()
Expand Down

0 comments on commit 004fb0e

Please sign in to comment.