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

@babel/parser(ts): Add parsing of type import #9302

Merged
merged 8 commits into from Jan 10, 2019
Merged

@babel/parser(ts): Add parsing of type import #9302

merged 8 commits into from Jan 10, 2019

Conversation

armano2
Copy link
Contributor

@armano2 armano2 commented Jan 8, 2019

Q                       A
Fixed Issues? #7749
Patch: Bug Fix? 👎
Major: Breaking Change? 👎
Minor: New Feature? 👍
Tests Added + Pass? 👍
Documentation PR Link 👎
Any Dependency Changes? 👎
License MIT

This PR is continuation of work done in #8798 by @Kovensky few months ago.
This PR adds new node TSImportType.

Comparing to how TS parses this there is one difference

typeof import("./a")

in typescript is represented by ImportType[typeof=true]
this implementation will parse it into: TSTypeQuery[exprName='TSImportType']

i can easily change that if you think it will be better.

@babel-bot
Copy link
Collaborator

babel-bot commented Jan 8, 2019

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9735/

@babel-bot
Copy link
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9725/

@armano2
Copy link
Contributor Author

armano2 commented Jan 8, 2019

build failed due to timeout

@existentialism
Copy link
Member

@armano2 restarted!

@existentialism existentialism added area: typescript PR: New Feature 🚀 A type of pull request used for our changelog categories labels Jan 8, 2019
@armano2
Copy link
Contributor Author

armano2 commented Jan 9, 2019

@existentialism you guys have to fix developing on windows, this is killing me xd

finally its finished xd

Copy link
Member

@hzoo hzoo left a comment

Choose a reason for hiding this comment

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

looks good? I can do a generator pr after

@danez
Copy link
Member

danez commented Jan 10, 2019

Before we merge we should have the changes for generator ready.

@Jessidhia
Copy link
Member

Thanks for following up on my PR 🙏

@hzoo
Copy link
Member

hzoo commented Jan 10, 2019

@danez Going to make a PR tomorrow!

@hzoo hzoo merged commit 2cc0376 into babel:master Jan 10, 2019
@armano2 armano2 deleted the typescript-import-support branch January 10, 2019 16:16
@esamattis esamattis mentioned this pull request Jan 10, 2019
3 tasks
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: typescript outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: New Feature 🚀 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants