Skip to content

Commit

Permalink
Merge pull request #6 from sgherbst/noimport
Browse files Browse the repository at this point in the history
expand package detection and bump version
  • Loading branch information
sgherbst authored Jul 6, 2020
2 parents 2e02e15 + c140546 commit fbac156
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "svinst"
version = "0.0.9"
version = "0.1.1"
authors = ["[email protected]"]
repository = "https://github.com/sgherbst/svinst"
keywords = ["parser", "verilog", "systemverilog"]
Expand All @@ -14,5 +14,5 @@ edition = "2018"
sv-parser = "0.6.3"
sv-parser-error = "0.6.3"
sv-parser-syntaxtree = "0.6.3"
structopt = "0.3.2"
enquote = "1.0"
structopt = "0.3.14"
enquote = "1.0.3"
16 changes: 16 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,22 @@ fn analyze_defs(
None => { continue; },
Some(x) => x
};
println!(" - pkg_name: \"{}\"", id);
}
RefNode::ImplicitClassHandleOrClassScopeOrPackageScope(x) => {
// write the package name
let id = match unwrap_node!(x, ClassIdentifier) {
None => { continue; },
Some(x) => x
};
let id = match get_identifier(id) {
None => { continue; },
Some(x) => x
};
let id = match syntax_tree.get_str(&id) {
None => { continue; },
Some(x) => x
};
println!(" - pkg_name: \"{}\"", id);
}
_ => (),
Expand Down

0 comments on commit fbac156

Please sign in to comment.