From 4be45cbc3b4fc20eae8f817fce7bd508d6964691 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sun, 25 Dec 2022 22:27:02 +0100 Subject: Converted more symbols for packages and contexts. --- pyGHDL/dom/NonStandard.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pyGHDL/dom/NonStandard.py') diff --git a/pyGHDL/dom/NonStandard.py b/pyGHDL/dom/NonStandard.py index 0bfc774bf..64c34b527 100644 --- a/pyGHDL/dom/NonStandard.py +++ b/pyGHDL/dom/NonStandard.py @@ -48,7 +48,6 @@ from pyVHDLModel.SyntaxModel import ( Design as VHDLModel_Design, Library as VHDLModel_Library, Document as VHDLModel_Document, - LibraryReferenceSymbol, ) from pyGHDL.libghdl import ( @@ -82,8 +81,8 @@ from pyGHDL.dom.DesignUnit import ( PackageInstantiation, LibraryClause, UseClause, - ContextReference, -) + ContextReference, ) +from pyGHDL.dom.Symbol import LibraryReferenceSymbol from pyGHDL.dom.PSL import VerificationUnit, VerificationProperty, VerificationMode @@ -195,7 +194,8 @@ class Document(VHDLModel_Document): for item in utils.chain_iter(context): itemKind = GetIirKindOfNode(item) if itemKind is nodes.Iir_Kind.Library_Clause: - contextNames.append(LibraryReferenceSymbol(SimpleName(item, GetNameOfNode(item)))) + libraryIdentifier = GetNameOfNode(item) + contextNames.append(LibraryReferenceSymbol(item, libraryIdentifier)) if nodes.Get_Has_Identifier_List(item): continue -- cgit v1.2.3