mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-24 07:40:25 +00:00
fix delete_systemapi_plugin
Signed-off-by: wangqing <wangqing136@huawei.com>
This commit is contained in:
parent
fb1c3b0121
commit
e57f34e32a
@ -129,6 +129,9 @@ function formatImportDeclaration(url) {
|
||||
const clauseNode = statement.importClause;
|
||||
if (!clauseNode.namedBindings && clauseNode.name && ts.isIdentifier(clauseNode.name)) {
|
||||
clauseSet.add(clauseNode.name.escapedText.toString());
|
||||
} else if (clauseNode.namedBindings && clauseNode.namedBindings.name &&
|
||||
ts.isIdentifier(clauseNode.namedBindings.name)) {
|
||||
clauseSet.add(clauseNode.namedBindings.name.escapedText.toString());
|
||||
} else if (clauseNode.namedBindings && clauseNode.namedBindings.elements) {
|
||||
clauseNode.namedBindings.elements.forEach(ele => {
|
||||
if (ele.name && ts.isIdentifier(ele.name)) {
|
||||
|
Loading…
Reference in New Issue
Block a user