removed premature parser check

This commit is contained in:
Arthur Ozga 2015-06-18 14:39:16 -07:00
parent 6dc430d892
commit 4c1002e96b

View file

@ -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();
}