-
Couldn't load subscription status.
- Fork 13.1k
Template literal types and mapped type 'as' clauses #40336
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
Changes from all commits
1a6676e
27d9164
0b9c5f5
815a408
032e1bf
ced200f
d2ad4c1
b5b897d
3b14f3d
6a8e070
a63a442
45ea576
05e2ef1
95ac3d4
c95c000
b3178d4
8cac241
4061ba9
d68670b
b7b58c7
b12681d
272b23f
3b6e8c2
6dc0b2a
9c1f9fb
b2518c6
2d70ca2
096d0ae
1488f35
66337ed
b5e75dd
6c95951
e81ebb4
6bd94b0
d38a388
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -151,6 +151,10 @@ namespace ts { | |
| yield: SyntaxKind.YieldKeyword, | ||
| async: SyntaxKind.AsyncKeyword, | ||
| await: SyntaxKind.AwaitKeyword, | ||
| uppercase: SyntaxKind.UppercaseKeyword, | ||
| lowercase: SyntaxKind.LowercaseKeyword, | ||
| capitalize: SyntaxKind.CapitalizeKeyword, | ||
| uncapitalize: SyntaxKind.UncapitalizeKeyword, | ||
| of: SyntaxKind.OfKeyword, | ||
| }; | ||
|
|
||
|
|
@@ -1508,9 +1512,9 @@ namespace ts { | |
| } | ||
|
|
||
| function getIdentifierToken(): SyntaxKind.Identifier | KeywordSyntaxKind { | ||
| // Reserved words are between 2 and 11 characters long and start with a lowercase letter | ||
| // Reserved words are between 2 and 12 characters long and start with a lowercase letter | ||
| const len = tokenValue.length; | ||
| if (len >= 2 && len <= 11) { | ||
| if (len >= 2 && len <= 12) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that this change should be reverted since #40580 has removed |
||
| const ch = tokenValue.charCodeAt(0); | ||
| if (ch >= CharacterCodes.a && ch <= CharacterCodes.z) { | ||
| const keyword = textToKeyword.get(tokenValue); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noticed this when handling a merge conflict: