Skip to content

Conversation

asgerf
Copy link
Contributor

@asgerf asgerf commented Feb 6, 2020

Builds out support for export declarations of the form:

export * as ns from "x"

We already parse and extract these, but they were not mentioned in our documentation and not handled by the type inference.

The proposal is at stage 4 and will be part of ES2020 (I think) and TypeScript 3.8.

Commit-by-commit review recommended.

@asgerf asgerf added the JS label Feb 6, 2020
@asgerf asgerf requested a review from a team as a code owner February 6, 2020 14:41
max-schaefer
max-schaefer previously approved these changes Feb 6, 2020
max-schaefer
max-schaefer previously approved these changes Feb 7, 2020
Copy link
Contributor

@erik-krogh erik-krogh left a comment

Choose a reason for hiding this comment

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

The changes in the expected output was hard to read, so I reordered the tests such that the diff in the expected output became more readable: https://github.com/Semmle/ql/compare/master...erik-krogh:js/export-as-ns?expand=1

There are a few changes in the expected output for the existing test files, but for all of those it looks like the new output is correct.

So LGTM.

@semmle-qlci semmle-qlci merged commit 23ed2bc into github:master Feb 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants