Skip to content

Commit 11dd164

Browse files
Fix #479 to add parameters back into Module instantiation (#496)
1 parent cb21064 commit 11dd164

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/commands/ModuleInstantiation.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,9 @@ class ModuleTags extends Ctags {
159159
lines.forEach((line) => {
160160
if (line !== '') {
161161
let tag: Symbol = this.parseTagLine(line);
162-
// add only modules and ports
163-
if (tag.type === 'module' || tag.type === 'port' || tag.type === 'constant') {
162+
// add only modules, ports and parameters
163+
// Use 'parameter' type instead of 'constant' after #102
164+
if (tag.type === 'module' || tag.type === 'port' || tag.type === 'parameter') {
164165
this.symbols.push(tag);
165166
}
166167
}

0 commit comments

Comments
 (0)