bugfix: fixed resource type support

Signed-off-by: laibo102 <laibo2@huawei.com>
Change-Id: I0168b45ea9b177fe4fce6451be770cfce5a23f63
This commit is contained in:
laibo102
2022-06-17 10:56:50 +08:00
parent 82070d7665
commit d7cd4a13ab
+1 -1
View File
@@ -310,7 +310,7 @@ function getResourceDataNode(node: ts.CallExpression): ts.Node {
message: `The resource type ${resourceData[1]} is not supported.`,
pos: node.getStart()
});
return;
return node;
}
const resourceValue: number = resources[resourceData[0]][resourceData[1]][resourceData[2]];
return createResourceParam(resourceValue, resourceType,