mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Move token scan to inside if
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user