mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
removed premature parser check
This commit is contained in:
1 parent
6dc430d892
commit
4c1002e96b
1 file changed
+5
-5
@@ -1082,11 +1082,11 @@ namespace ts {
|
||||
}
|
||||
return token !== SyntaxKind.AsteriskToken && token !== SyntaxKind.OpenBraceToken && canFollowModifier();
|
||||
}
|
||||
if (token === SyntaxKind.AbstractKeyword) {
|
||||
nextToken();
|
||||
// 'abstract' can precede class declarations and member function declarations.
|
||||
return token === SyntaxKind.ClassKeyword || token === SyntaxKind.Identifier;
|
||||
}
|
||||
// if (token === SyntaxKind.AbstractKeyword) {
|
||||
// nextToken();
|
||||
// // 'abstract' can precede class declarations and member function declarations.
|
||||
// return token === SyntaxKind.ClassKeyword || token === SyntaxKind.Identifier;
|
||||
// }
|
||||
if (token === SyntaxKind.DefaultKeyword) {
|
||||
return nextTokenIsClassOrFunction();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user