Updated parser lookahead for modifiers to anticipate object literals.

This commit is contained in:
Daniel Rosenwasser
2015-01-13 16:24:23 -08:00
parent b434ee42a8
commit 372b0a4e15
2 changed files with 18 additions and 12 deletions

View File

@@ -1395,7 +1395,10 @@ module ts {
}
function canFollowModifier(): boolean {
return token === SyntaxKind.OpenBracketToken || token === SyntaxKind.AsteriskToken || isLiteralPropertyName();
return token === SyntaxKind.OpenBracketToken
|| token === SyntaxKind.OpenBraceToken
|| token === SyntaxKind.AsteriskToken
|| isLiteralPropertyName();
}
// True if positioned at the start of a list element