@@ -111,7 +111,7 @@ namespace ts {
111
111
thisName ?: Identifier ;
112
112
113
113
/*
114
- * set to true if node contains lexical 'this' so we can mark function that wraps convered loop body as 'CapturedThis' for subsequence substitution.
114
+ * set to true if node contains lexical 'this' so we can mark function that wraps convered loop body as 'CapturedThis' for subsequent substitution.
115
115
*/
116
116
containsLexicalThis ?: boolean ;
117
117
@@ -445,7 +445,7 @@ namespace ts {
445
445
Debug . assert ( convertedLoopState !== undefined ) ;
446
446
447
447
if ( useCapturedThis ) {
448
- // if useCapturedThis is true then 'this' keyword is contained inside the arrow function.
448
+ // if useCapturedThis is true then 'this' keyword is contained inside an arrow function.
449
449
convertedLoopState . containsLexicalThis = true ;
450
450
return node ;
451
451
}
@@ -467,10 +467,10 @@ namespace ts {
467
467
468
468
function visitBreakOrContinueStatement ( node : BreakOrContinueStatement ) : Statement {
469
469
if ( convertedLoopState ) {
470
- // check if we can emit break\ continue as is
470
+ // check if we can emit break/ continue as is
471
471
// it is possible if either
472
- // - break\ continue is labeled and label is located inside the converted loop
473
- // - break\ continue is non-labeled and located in non-converted loop\ switch statement
472
+ // - break/ continue is labeled and label is located inside the converted loop
473
+ // - break/ continue is non-labeled and located in non-converted loop/ switch statement
474
474
const jump = node . kind === SyntaxKind . BreakStatement ? Jump . Break : Jump . Continue ;
475
475
const canUseBreakOrContinue =
476
476
( node . label && convertedLoopState . labels && convertedLoopState . labels [ node . label . text ] ) ||
0 commit comments