完成所有打包的功能点

This commit is contained in:
2022-11-25 16:00:57 +08:00
parent 8a41942ea6
commit ed3ef2609a
5 changed files with 166 additions and 78 deletions

View File

@@ -82,15 +82,14 @@ class NodeVisitorTools extends NodeVisitorAbstract
return;
}
if(isset($this->usedClass[$used_class_str])){
return NodeTraverser::REMOVE_NODE;
}
$name .= md5($used_class_str);
$this->usedClass[$used_class_str] = $name;
if (!empty($use_item->alias->name)) {
$name .= md5($use_item->alias->name);
$this->usedClass[$use_item->alias->name] = $name;
}
$use_item->alias = new Identifier($name);
}