We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a96491 commit cdd5b6aCopy full SHA for cdd5b6a
src/compiler/parser.ts
@@ -917,9 +917,9 @@ namespace ts {
917
return token > SyntaxKind.LastReservedWord;
918
}
919
920
- function parseExpected(kind: SyntaxKind, diagnosticMessage?: DiagnosticMessage, advance = true): boolean {
+ function parseExpected(kind: SyntaxKind, diagnosticMessage?: DiagnosticMessage, shouldAdvance = true): boolean {
921
if (token === kind) {
922
- if (advance) {
+ if (shouldAdvance) {
923
nextToken();
924
925
return true;
0 commit comments