You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Original Author: pvekris@meta.com
Original Git: 3a24531
Original Reviewed By: avp
Original Revision: D66739150
Adds support for [`const` modifier on type parameters](microsoft/TypeScript#51865). E.g.
```
function foo<const T>(x: T): [T] {...}
```
We parse an optional `const` keyword right before parsing the variance of a type parameter.
```
cd ~/fbsource/xplat/hermes/unsupported/tools/rustgen
buck run //xplat/hermes/unsupported/tools/rustgen:rustgen -- ffi > ../../juno/crates/hermes/src/parser/generated_ffi.rs
buck run //xplat/hermes/unsupported/tools/rustgen:rustgen -- cvt > ../../juno/crates/juno/src/hparser/generated_cvt.rs
```
Reviewed By: fbmal7
Differential Revision: D67867901
fbshipit-source-id: 4683aee20adfed18e0a6343b4fdacf8e016015df
0 commit comments