From d7cd4a13aba83232ded963fec73bd8a9b442137e Mon Sep 17 00:00:00 2001 From: laibo102 Date: Fri, 17 Jun 2022 10:56:50 +0800 Subject: [PATCH] bugfix: fixed resource type support Signed-off-by: laibo102 Change-Id: I0168b45ea9b177fe4fce6451be770cfce5a23f63 --- compiler/src/process_ui_syntax.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/process_ui_syntax.ts b/compiler/src/process_ui_syntax.ts index 0b0e244..ebba07a 100644 --- a/compiler/src/process_ui_syntax.ts +++ b/compiler/src/process_ui_syntax.ts @@ -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,