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

Remove binder from transpileDeclaration implementation. #138

Merged

Conversation

dragomirtitian
Copy link

Addresses feedback about duplication of the binder.

@dragomirtitian dragomirtitian force-pushed the isolated-declaration-reuse-binder branch from f68c7da to 3188a82 Compare January 18, 2024 18:51
@dragomirtitian dragomirtitian changed the title Remove binder from transpileDeclaration implementation. WIP: Remove binder from transpileDeclaration implementation. Jan 18, 2024
@dragomirtitian dragomirtitian marked this pull request as draft January 18, 2024 19:20
@dragomirtitian dragomirtitian marked this pull request as ready for review January 19, 2024 15:40
@dragomirtitian dragomirtitian force-pushed the isolated-declaration-reuse-binder branch from 1382822 to a229141 Compare January 19, 2024 15:45
@dragomirtitian dragomirtitian force-pushed the isolated-declaration-reuse-binder branch from a229141 to e1bb300 Compare January 19, 2024 15:46
@dragomirtitian dragomirtitian changed the title WIP: Remove binder from transpileDeclaration implementation. Remove binder from transpileDeclaration implementation. Jan 19, 2024
return name;
}

function getDynamicSymbolName(name: ElementAccessExpression | PropertyName) {

Choose a reason for hiding this comment

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

I wonder if you can use tryGetPropertyAccessOrIdentifierToString or entityNameToString.

Copy link
Author

Choose a reason for hiding this comment

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

Switched over to entityNameToString

// @isolatedDeclarations: true
// @declarationMap: false
// @target: ESNext
// @isolatedDeclarationFixedDiffReason: Function declarations are not fixed.
Copy link

Choose a reason for hiding this comment

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

I guess better to mention "Expando* functions "

Copy link

Choose a reason for hiding this comment

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

I guess the changes in this test file is a side effect of having the "vanilla" symbol info?

Signed-off-by: Titian Cernicova-Dragomir <[email protected]>
@dragomirtitian dragomirtitian force-pushed the isolated-declaration-reuse-binder branch from 1eb2132 to dc1ffe9 Compare January 21, 2024 15:51
@dragomirtitian dragomirtitian merged commit a9d06d7 into isolated-declarations Jan 22, 2024
1 check passed
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.

3 participants