Skip to content

Commit

Permalink
more modifications to allow different dependency cases to work proper…
Browse files Browse the repository at this point in the history
…ly; specifically we have introduced the detection of classes
  • Loading branch information
fpgauserdude committed Sep 12, 2024
1 parent dd3e6a4 commit d4c7fe4
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,24 @@ fn analyze_defs(
Some(x) => x
};
println!(" - pkg_name: {}", escape_str(id));
}/*
RefNode::ImplicitClassHandleOrClassScope(x) => {
}
RefNode::ClassDeclaration(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!(" - class_def: {}", escape_str(id));
}
RefNode::ImplicitClassHandleOrClassScopeOrPackageScope(x) => {
// write the package name
let id = match unwrap_node!(x, ClassIdentifier) {
None => { continue; },
Expand All @@ -425,7 +441,7 @@ fn analyze_defs(
Some(x) => x
};
println!(" - pkg_name: {}", escape_str(id));
}*/
}
RefNode::PsClassIdentifier(x) => {
// write the package name
let id = match unwrap_node!(x, PackageIdentifier) {
Expand Down

0 comments on commit d4c7fe4

Please sign in to comment.