Move token scan to inside if

This commit is contained in:
Ryan Cavanaugh 2015-06-26 14:21:29 -07:00
parent 306de4d681
commit ce6f39edca

View File

@ -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: