fix error attr style not warning

Signed-off-by: houhaoyu <houhaoyu@huawei.com>
Change-Id: I39579700ec622e9af19c97c6e673cc69cc3dcb97
This commit is contained in:
houhaoyu
2022-03-06 18:49:45 +08:00
parent 7686e2f892
commit 7a1ca4ad5e
+7
View File
@@ -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))) {