Skip to content

Commit 4c1002e

Browse files
author
Arthur Ozga
committed
removed premature parser check
1 parent 6dc430d commit 4c1002e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/compiler/parser.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,11 +1082,11 @@ namespace ts {
10821082
}
10831083
return token !== SyntaxKind.AsteriskToken && token !== SyntaxKind.OpenBraceToken && canFollowModifier();
10841084
}
1085-
if (token === SyntaxKind.AbstractKeyword) {
1086-
nextToken();
1087-
// 'abstract' can precede class declarations and member function declarations.
1088-
return token === SyntaxKind.ClassKeyword || token === SyntaxKind.Identifier;
1089-
}
1085+
// if (token === SyntaxKind.AbstractKeyword) {
1086+
// nextToken();
1087+
// // 'abstract' can precede class declarations and member function declarations.
1088+
// return token === SyntaxKind.ClassKeyword || token === SyntaxKind.Identifier;
1089+
// }
10901090
if (token === SyntaxKind.DefaultKeyword) {
10911091
return nextTokenIsClassOrFunction();
10921092
}

0 commit comments

Comments
 (0)