mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 11:54:44 -06:00
Move token scan to inside if
This commit is contained in:
parent
306de4d681
commit
ce6f39edca
@ -2850,8 +2850,8 @@ namespace ts {
|
||||
if (sourceFile.languageVariant === LanguageVariant.JSX) {
|
||||
let isArrowFunctionInJsx = lookAhead(() => {
|
||||
let third = nextToken();
|
||||
let fourth = nextToken();
|
||||
if (third === SyntaxKind.ExtendsKeyword) {
|
||||
let fourth = nextToken();
|
||||
switch (fourth) {
|
||||
case SyntaxKind.EqualsToken:
|
||||
case SyntaxKind.GreaterThanToken:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user