mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-21 12:05:24 -04:00
fix error attr style not warning Signed-off-by: houhaoyu <houhaoyu@huawei.com> Change-Id: I39579700ec622e9af19c97c6e673cc69cc3dcb97
This commit is contained in:
@@ -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))) {
|
||||
|
||||
Reference in New Issue
Block a user