@@ -407,14 +407,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
407
407
408
408
interface ConvertedLoopState {
409
409
/*
410
- * set of labels that occured inside the converted loop
410
+ * set of labels that occurred inside the converted loop
411
411
* used to determine if labeled jump can be emitted as is or it should be dispatched to calling code
412
412
*/
413
413
labels ?: Map < string > ;
414
414
/*
415
415
* collection of labeled jumps that transfer control outside the converted loop.
416
416
* maps store association 'label -> labelMarker' where
417
- * - label - value of label as it apprear in code
417
+ * - label - value of label as it appear in code
418
418
* - label marker - return value that should be interpreted by calling code as 'jump to <label>'
419
419
*/
420
420
labeledNonLocalBreaks ?: Map < string > ;
@@ -437,7 +437,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
437
437
* i.e.
438
438
* for (let x;;) <statement that captures x in closure and uses 'arguments'>
439
439
* should be converted to
440
- * var loop = function(x) { <code where 'arguments' is replaced witg 'arguments_1'> }
440
+ * var loop = function(x) { <code where 'arguments' is replaced with 'arguments_1'> }
441
441
* var arguments_1 = arguments
442
442
* for (var x;;) loop(x);
443
443
* otherwise semantics of the code will be different since 'arguments' inside converted loop body
@@ -1005,7 +1005,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
1005
1005
// Examples: `\n` is converted to "\\n", a template string with a newline to "\n".
1006
1006
let text = getTextOfNodeFromSourceText ( currentText , node ) ;
1007
1007
1008
- // text contains the original source, it will also contain quotes ("`"), dolar signs and braces ("${" and "}"),
1008
+ // text contains the original source, it will also contain quotes ("`"), dollar signs and braces ("${" and "}"),
1009
1009
// thus we need to remove those characters.
1010
1010
// First template piece starts with "`", others with " }"
1011
1011
// Last template piece ends with "`", others with "${"
@@ -4064,14 +4064,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
4064
4064
if ( properties . length !== 1 ) {
4065
4065
// For anything but a single element destructuring we need to generate a temporary
4066
4066
// to ensure value is evaluated exactly once.
4067
- // When doing so we want to hightlight the passed in source map node since thats the one needing this temp assignment
4067
+ // When doing so we want to highlight the passed in source map node since thats the one needing this temp assignment
4068
4068
value = ensureIdentifier ( value , /*reuseIdentifierExpressions*/ true , sourceMapNode ) ;
4069
4069
}
4070
4070
for ( const p of properties ) {
4071
4071
if ( p . kind === SyntaxKind . PropertyAssignment || p . kind === SyntaxKind . ShorthandPropertyAssignment ) {
4072
4072
const propName = < Identifier | LiteralExpression > ( < PropertyAssignment > p ) . name ;
4073
4073
const target = p . kind === SyntaxKind . ShorthandPropertyAssignment ? < ShorthandPropertyAssignment > p : ( < PropertyAssignment > p ) . initializer || propName ;
4074
- // Assignment for target = value.propName should highligh whole property, hence use p as source map node
4074
+ // Assignment for target = value.propName should highlight whole property, hence use p as source map node
4075
4075
emitDestructuringAssignment ( target , createPropertyAccessForDestructuringProperty ( value , propName ) , p ) ;
4076
4076
}
4077
4077
}
@@ -4082,13 +4082,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
4082
4082
if ( elements . length !== 1 ) {
4083
4083
// For anything but a single element destructuring we need to generate a temporary
4084
4084
// to ensure value is evaluated exactly once.
4085
- // When doing so we want to hightlight the passed in source map node since thats the one needing this temp assignment
4085
+ // When doing so we want to highlight the passed in source map node since thats the one needing this temp assignment
4086
4086
value = ensureIdentifier ( value , /*reuseIdentifierExpressions*/ true , sourceMapNode ) ;
4087
4087
}
4088
4088
for ( let i = 0 ; i < elements . length ; i ++ ) {
4089
4089
const e = elements [ i ] ;
4090
4090
if ( e . kind !== SyntaxKind . OmittedExpression ) {
4091
- // Assignment for target = value.propName should highligh whole property, hence use e as source map node
4091
+ // Assignment for target = value.propName should highlight whole property, hence use e as source map node
4092
4092
if ( e . kind !== SyntaxKind . SpreadElementExpression ) {
4093
4093
emitDestructuringAssignment ( e , createElementAccessExpression ( value , createNumericLiteral ( i ) ) , e ) ;
4094
4094
}
@@ -6746,7 +6746,7 @@ const _super = (function (geti, seti) {
6746
6746
// when resolving exports local exported entries/indirect exported entries in the module
6747
6747
// should always win over entries with similar names that were added via star exports
6748
6748
// to support this we store names of local/indirect exported entries in a set.
6749
- // this set is used to filter names brought by star expors .
6749
+ // this set is used to filter names brought by star exports .
6750
6750
if ( ! hasExportStarsToExportValues ) {
6751
6751
// local names set is needed only in presence of star exports
6752
6752
return undefined ;
@@ -8077,7 +8077,7 @@ const _super = (function (geti, seti) {
8077
8077
// declare var x;
8078
8078
// /// <reference-path ...>
8079
8079
// interface F {}
8080
- // The first /// will NOT be removed while the second one will be removed eventhough both node will not be emitted
8080
+ // The first /// will NOT be removed while the second one will be removed even though both node will not be emitted
8081
8081
if ( node . pos === 0 ) {
8082
8082
leadingComments = filter ( getLeadingCommentsToEmit ( node ) , isTripleSlashComment ) ;
8083
8083
}
0 commit comments