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

Support TS type argument syntax in optional chaining #496

Merged
merged 1 commit into from Dec 31, 2019

Conversation

alangpierce
Copy link
Owner

Progress toward #461

The previous implemented worked for normal JS syntax, but f?.<T>() needs a
special case when working with tokens. Also, regular type argument syntax wasn't
marking the open-paren correctly, so this fixes that as well.

Progress toward #461

The previous implemented worked for normal JS syntax, but `f?.<T>()` needs a
special case when working with tokens. Also, regular type argument syntax wasn't
marking the open-paren correctly, so this fixes that as well.
@codecov-io
Copy link

Codecov Report

Merging #496 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #496      +/-   ##
==========================================
+ Coverage   82.56%   82.59%   +0.02%     
==========================================
  Files          54       54              
  Lines        5536     5545       +9     
  Branches     1236     1238       +2     
==========================================
+ Hits         4571     4580       +9     
  Misses        678      678              
  Partials      287      287
Impacted Files Coverage Δ
src/parser/plugins/typescript.ts 80.58% <100%> (+0.21%) ⬆️
...transformers/OptionalChainingNullishTransformer.ts 89.79% <100%> (+0.21%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 12126d3...5a70d14. Read the comment docs.

@alangpierce alangpierce merged commit d1a9731 into master Dec 31, 2019
@alangpierce alangpierce deleted the implement-type-argument-optional-chaining branch December 31, 2019 06:30
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.

None yet

2 participants