removed premature parser check
This commit is contained in:
parent
6dc430d892
commit
4c1002e96b
1 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue