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,