Skip to content

add transformer for emit add property to default export #29242

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

Merged

Conversation

Kingwl
Copy link
Contributor

@Kingwl Kingwl commented Jan 3, 2019

Fixes #29206

@DanielRosenwasser
Copy link
Member

ERROR: /home/travis/build/Microsoft/TypeScript/src/compiler/transformers/declarations.ts:1039:42 boolean-trivia There should be 1 space between an argument and its comment.
ERROR: /home/travis/build/Microsoft/TypeScript/src/compiler/transformers/declarations.ts:1040:47 boolean-trivia There should be 1 space between an argument and its comment.

@Kingwl Kingwl force-pushed the attach_property_to_default_export branch from 0a10e12 to ae18c9d Compare January 4, 2019 02:45
@Kingwl Kingwl force-pushed the attach_property_to_default_export branch from ae18c9d to d8aa462 Compare January 7, 2019 03:04
@Kingwl
Copy link
Contributor Author

Kingwl commented Jan 19, 2019

⬆️

@@ -3508,7 +3508,8 @@ namespace ts {
| ModuleDeclaration
| TypeAliasDeclaration
| InterfaceDeclaration
| EnumDeclaration;
| EnumDeclaration
| ExportAssignment;
Copy link
Member

Choose a reason for hiding this comment

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

Why was this added here (and the empty case in transformTopLevelDeclaration)? Without it being added to the isLateVisibilityPaintedStatement, it will still fail to be printed late.

@Kingwl Kingwl force-pushed the attach_property_to_default_export branch from 6f61fbc to e8b6615 Compare March 22, 2019 10:18
@Kingwl
Copy link
Contributor Author

Kingwl commented Apr 19, 2019

🆙

@DanielRosenwasser DanielRosenwasser merged commit 2eea216 into microsoft:master Apr 19, 2019
@Kingwl Kingwl deleted the attach_property_to_default_export branch April 19, 2019 05:18
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.

Attaching property to exported function creates invalid definition file
3 participants