File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2975,9 +2975,10 @@ module ts {
2975
2975
return ! scanner . hasPrecedingLineBreak ( ) && isIdentifier ( )
2976
2976
}
2977
2977
2978
- function netTokenIsIdentifierOrStartOfDestructuringOnTheSameLine ( ) {
2978
+ function nextTokenIsIdentifierOrStartOfDestructuringOnTheSameLine ( ) {
2979
2979
nextToken ( ) ;
2980
- return ! scanner . hasPrecedingLineBreak ( ) && ( isIdentifier ( ) || token === SyntaxKind . OpenBraceToken || token === SyntaxKind . OpenBracketToken )
2980
+ return ! scanner . hasPrecedingLineBreak ( ) &&
2981
+ ( isIdentifier ( ) || token === SyntaxKind . OpenBraceToken || token === SyntaxKind . OpenBracketToken ) ;
2981
2982
}
2982
2983
2983
2984
function parseYieldExpression ( ) : YieldExpression {
@@ -4878,9 +4879,9 @@ module ts {
4878
4879
}
4879
4880
4880
4881
function isLetDeclaration ( ) {
4881
- // It is let declaration if in strict mode or next token is identifier\open brace \open curly on same line.
4882
+ // It is let declaration if in strict mode or next token is identifier\open bracket \open curly on same line.
4882
4883
// otherwise it needs to be treated like identifier
4883
- return inStrictModeContext ( ) || lookAhead ( netTokenIsIdentifierOrStartOfDestructuringOnTheSameLine ) ;
4884
+ return inStrictModeContext ( ) || lookAhead ( nextTokenIsIdentifierOrStartOfDestructuringOnTheSameLine ) ;
4884
4885
}
4885
4886
4886
4887
function isDeclarationStart ( ) : boolean {
You can’t perform that action at this time.
0 commit comments