-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: update metadata mapping to handle no getter #583
fix: update metadata mapping to handle no getter #583
Conversation
loc = propertyObj.getter.location | ||
} else if (propertyObj.setter) { | ||
loc = propertyObj.setter.location | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From local testing it appears there will be no property object without either a getter, setter, both, or a dataProperty. TheexternalToInternalLoc
method handle the case where this value is empty.
? propertyObj.getter.location | ||
: propertyObj.dataProperty.location | ||
), | ||
loc: externalToInternalLoc(loc), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the fix!
What does this PR do?
Update the javascript type mapping to handle the case where a class has a property with only a setter.
What issues does this PR fix or reference?
@W-14391061@
forcedotcom/salesforcedx-vscode#5069