diff --git a/compiler/src/process_component_build.ts b/compiler/src/process_component_build.ts index d8db918fd416a9323798ec6d057af6ac9af0115c..a3039e11ed46cbde2a1ed58b17bd13931b984927 100644 --- a/compiler/src/process_component_build.ts +++ b/compiler/src/process_component_build.ts @@ -522,6 +522,13 @@ export function bindComponentAttr(node: ts.ExpressionStatement, identifierNode: let temp: any = node.expression; const statements: ts.Statement[] = []; const lastStatement: AnimationInfo = { statement: null, kind: false }; + if (ts.isPropertyAccessExpression(temp)) { + log.push({ + type: LogType.ERROR, + message: `'${node.getText()}' does not meet UI component syntax.`, + pos: node.getStart() + }); + } while (temp && ts.isCallExpression(temp) && temp.expression) { if (temp.expression && (validatePropertyAccessExpressionWithCustomBuilder(temp.expression) || validateIdentifierWithCustomBuilder(temp.expression))) {