Skip to content

Commit

Permalink
Skip modules with no name (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
sherbst-openai authored Nov 16, 2024
1 parent 4715bcc commit 951867c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "slang-rs"
version = "0.10.0"
version = "0.11.0"
edition = "2021"
license = "Apache-2.0"
description = "Rust bindings for the Slang Verilog parser"
Expand Down
3 changes: 3 additions & 0 deletions src/extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ pub fn extract_ports_from_value(
for member in members {
if member["kind"] == "Instance" {
let module_name = member["name"].as_str().unwrap();
if module_name.is_empty() {
continue;
}
let mut ports = Vec::new();
if let Some(instance_body_members) = member["body"]["members"].as_array() {
for instance_member in instance_body_members {
Expand Down

0 comments on commit 951867c

Please sign in to comment.