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

fix(jsii): selective exports declarations are ignored #1829

Merged
merged 1 commit into from
Jul 29, 2020

Conversation

RomainMuller
Copy link
Contributor

When specific symbols are exported from a module using the
ExportDeclaration syntax:

export { Foo } from './foo';

Those declarations would not be processed at all, because they lack the
ts.ModifierFlags.Export modifier (which is to be expected from a
declaration that is an export statement).

Added the necessary code (and a test) to ensure these statements are
correctly detected, and the exported symbols are correctly processed
into the output assembly.

Fixes #1818


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

When specific symbols are exported from a module using the
*ExportDeclaration* syntax:

```ts
export { Foo } from './foo';
```

Those declarations would not be processed at all, because they lack the
`ts.ModifierFlags.Export` modifier (which is to be expected from a
declaration that **is** an export statement).

Added the necessary code (and a test) to ensure these statements are
correctly detected, and the exported symbols are correctly processed
into the output assembly.

Fixes #1818
@RomainMuller RomainMuller added effort/small Small work item – less than a day of effort contribution/core This is a PR that came from AWS. labels Jul 29, 2020
@RomainMuller RomainMuller requested a review from a team July 29, 2020 09:51
@RomainMuller RomainMuller self-assigned this Jul 29, 2020
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
  • Commit ID: 5e6452e
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@RomainMuller RomainMuller added the module/compiler Issues affecting the JSII compiler label Jul 29, 2020
@mergify
Copy link
Contributor

mergify bot commented Jul 29, 2020

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Jul 29, 2020
@mergify mergify bot merged commit 2699ccf into master Jul 29, 2020
@mergify mergify bot deleted the rmuller/missing-types branch July 29, 2020 14:02
@mergify
Copy link
Contributor

mergify bot commented Jul 29, 2020

Merging (with squash)...

@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. effort/small Small work item – less than a day of effort module/compiler Issues affecting the JSII compiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Exported APIs cannot use un-exported type", even though the type IS exported
3 participants