Skip to content
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

Slight improvement to SymbolDisplay for 'module.exports =' #25013

Closed
wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jun 16, 2018

Part of #24025

Makes us treat module.exports = more like export = in symbolDisplay. Unfortunately, addFullSymbolName() adds a second export = because that's the name we get from the checker -- ideally we could fix the checker to return the name of the exported class like it does for export =.

@ghost ghost requested a review from sandersn June 16, 2018 00:01
@@ -21,7 +21,7 @@ const [r0, r1, r2, r3, r4, r5] = test.ranges();
verify.referenceGroups(r0, [
{ definition: "(local class) C", ranges: [r0] },
// TODO: This definition is really ugly
{ definition: "(alias) (local class) export=\nimport export=", ranges: [r3] },
{ definition: "(alias) (local class) C\nexport = export=", ranges: [r3] },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure this looks any better than the previous one..

@ghost ghost closed this Jun 19, 2018
@ghost ghost deleted the symbolDisplay_moduleExportsEquals branch June 19, 2018 20:44
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant