!1110 fix @BuildParse no assignment time no error

Merge pull request !1110 from Bo Jiang/cherry-pick-1662707791
This commit is contained in:
openharmony_ci
2022-09-09 08:07:38 +00:00
committed by Gitee
+2 -1
View File
@@ -163,6 +163,7 @@ function validateCustomComponentPrams(node: ts.ExpressionStatement, name: string
}
});
}
validateMandatoryToAssignmentViaParam(node, name, curChildProps, log);
}
function getCustomComponentName(newNode: ts.NewExpression): string {
@@ -402,7 +403,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) {