mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-19 08:34:37 -04:00
修复@BuildParse修饰的属性不赋值不报错的情况 Signed-off-by: bojiang <jiangbo91@huawei.com> Change-Id: Ibd4f460e8709113bb8d9742fa51998156b13a248
This commit is contained in:
@@ -242,6 +242,7 @@ function validateCustomComponentPrams(node: ts.CallExpression, name: string,
|
||||
}
|
||||
});
|
||||
}
|
||||
validateMandatoryToAssignmentViaParam(node, name, curChildProps, log);
|
||||
}
|
||||
|
||||
function getCustomComponentNode(node: ts.ExpressionStatement): ts.CallExpression {
|
||||
@@ -521,7 +522,7 @@ function validateNonExistentProperty(node: ts.ObjectLiteralElementLike,
|
||||
});
|
||||
}
|
||||
|
||||
function validateMandatoryToAssignmentViaParam(node: ts.ExpressionStatement, customComponentName: string,
|
||||
function validateMandatoryToAssignmentViaParam(node: ts.CallExpression, customComponentName: string,
|
||||
curChildProps: Set<string>, log: LogInfo[]): void {
|
||||
if (builderParamObjectCollection.get(customComponentName) &&
|
||||
builderParamObjectCollection.get(customComponentName).size) {
|
||||
|
||||
Reference in New Issue
Block a user