You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[INTERNAL] lib/processors/jsdoc: fix calculation of fully qualified names
When destructuring was used to create a shortcut for an enum type and
when the RHS of the destructuring was a member expression, not a simple
identifier, then the calculated name was incomplete and the enum was
not recognized properly, e.g. when used for a property default value.
Example:
const {SimpleFormLayout} = layoutLibrary.form;
was mistakenly resolved to `sap.ui.layout.SimpleFormLayout` instead of
`sap.ui.layout.form.SimpleFormLayout`.
Cherry-picked from UI5/openui5@0f4d13da6
}elseif(writeExprNode.type===Syntax.MemberExpression&&writeExprNode.object.type===Syntax.MemberExpression){// Standalone variable without leading dot notation namespace
875
+
// determine from write expression how to replace the leftmost name
876
+
if(writeExprNode.type===Syntax.MemberExpression){
877
+
// replacement is a qualified name (its leftmost part will be resolved in the next round)
0 commit comments