mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-20 05:17:43 -05:00
removed premature parser check
This commit is contained in:
@@ -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