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
[flow][records] Disallow record names starting with lowercase 'a'-'z'
Summary:
Disallow record names starting with lowercase 'a'-'z'. We would have this as part of the style guide anyway, but update here:
- Record expressions (e.g. `foo {}`): do not parse at all
- We want to future proof the syntax for new contextual keywords being added in TC39 proposals
- Prevent parsing of record expressions in the middle of writing/editing existing constructs like `clas {}`
- Record declarations (e.g. `record foo {}`: add a Flow error
- No syntax conflicts, so we parse and Flow error with an explanation
Changelog: [internal]
Reviewed By: SamChou19815
Differential Revision: D89772551
fbshipit-source-id: 9d5689cb4b77ef63c70a0300f9b4a197994e216c
0 commit comments