mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-19 08:34:37 -04:00
!1110 fix @BuildParse no assignment time no error
Merge pull request !1110 from Bo Jiang/cherry-pick-1662707791
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user