|
7 | 7 | use crate::ast::{ |
8 | 8 | AliasDeclaration, AnyDesignUnit, AnyPrimaryUnit, AnySecondaryUnit, Attribute, |
9 | 9 | AttributeDeclaration, AttributeSpecification, ComponentDeclaration, Declaration, Designator, |
10 | | - DisconnectionSpecification, FileDeclaration, HasIdent, Ident, InterfaceFileDeclaration, |
11 | | - InterfacePackageDeclaration, ModeViewDeclaration, ObjectClass, ObjectDeclaration, PackageBody, |
12 | | - PackageDeclaration, PackageInstantiation, SubprogramBody, SubprogramInstantiation, |
13 | | - SubprogramSpecification, TypeDeclaration, WithDecl, |
| 10 | + DisconnectionSpecification, FileDeclaration, GuardedSignalList, HasIdent, Ident, |
| 11 | + InterfaceFileDeclaration, InterfacePackageDeclaration, ModeViewDeclaration, ObjectClass, |
| 12 | + ObjectDeclaration, PackageBody, PackageDeclaration, PackageInstantiation, SubprogramBody, |
| 13 | + SubprogramInstantiation, SubprogramSpecification, TypeDeclaration, WithDecl, |
14 | 14 | }; |
15 | 15 | use crate::ast::{ExternalObjectClass, InterfaceDeclaration, InterfaceObjectDeclaration}; |
16 | 16 | use crate::data::*; |
@@ -66,6 +66,7 @@ pub enum AnyEntKind<'a> { |
66 | 66 | Library, |
67 | 67 | Design(Design<'a>), |
68 | 68 | View(Subtype<'a>), |
| 69 | + Disconnection(Subtype<'a>), |
69 | 70 | } |
70 | 71 |
|
71 | 72 | impl<'a> AnyEntKind<'a> { |
@@ -129,6 +130,7 @@ impl<'a> AnyEntKind<'a> { |
129 | 130 | Design(design) => design.describe(), |
130 | 131 | Type(typ) => typ.describe(), |
131 | 132 | View(..) => "view", |
| 133 | + Disconnection(..) => "disconnection", |
132 | 134 | } |
133 | 135 | } |
134 | 136 | } |
@@ -662,7 +664,10 @@ impl HasEntityId for PackageDeclaration { |
662 | 664 |
|
663 | 665 | impl HasEntityId for DisconnectionSpecification { |
664 | 666 | fn ent_id(&self) -> Option<EntityId> { |
665 | | - self.ident.as_ref().and_then(|ident| ident.decl.get()) |
| 667 | + match &self.ident { |
| 668 | + GuardedSignalList::Ident(with_decl) => with_decl.decl.get(), |
| 669 | + _ => None, |
| 670 | + } |
666 | 671 | } |
667 | 672 | } |
668 | 673 |
|
|
0 commit comments