Skip to content

Commit 147384c

Browse files
authored
Fix typos in comments (microsoft#42396)
1 parent b34e680 commit 147384c

10 files changed

+20
-20
lines changed

lib/tsserver.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -106237,7 +106237,7 @@ var ts;
106237106237
var oldSourceFile = oldSourceFiles_1[_i];
106238106238
var newFile = getSourceFileByPath(oldSourceFile.resolvedPath);
106239106239
if (shouldCreateNewSourceFile || !newFile ||
106240-
// old file wasnt redirect but new file is
106240+
// old file wasn't redirect but new file is
106241106241
(oldSourceFile.resolvedPath === oldSourceFile.path && newFile.resolvedPath !== oldSourceFile.path)) {
106242106242
host.onReleaseOldSourceFile(oldSourceFile, oldProgram.getCompilerOptions(), !!getSourceFileByPath(oldSourceFile.path));
106243106243
}
@@ -109353,7 +109353,7 @@ var ts;
109353109353
var newReferences;
109354109354
// if not using old state, every file is changed
109355109355
if (!useOldState ||
109356-
// File wasnt present in old state
109356+
// File wasn't present in old state
109357109357
!(oldInfo = oldState.fileInfos.get(sourceFilePath)) ||
109358109358
// versions dont match
109359109359
oldInfo.version !== info.version ||
@@ -110505,7 +110505,7 @@ var ts;
110505110505
var resolvedModules = [];
110506110506
var compilerOptions = resolutionHost.getCompilationSettings();
110507110507
var hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path);
110508-
// All the resolutions in this file are invalidated if this file wasnt resolved using same redirect
110508+
// All the resolutions in this file are invalidated if this file wasn't resolved using same redirect
110509110509
var program = resolutionHost.getCurrentProgram();
110510110510
var oldRedirect = program && program.getResolvedProjectReferenceToRedirect(containingFile);
110511110511
var unmatchedRedirects = oldRedirect ?

lib/tsserverlibrary.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -106431,7 +106431,7 @@ var ts;
106431106431
var oldSourceFile = oldSourceFiles_1[_i];
106432106432
var newFile = getSourceFileByPath(oldSourceFile.resolvedPath);
106433106433
if (shouldCreateNewSourceFile || !newFile ||
106434-
// old file wasnt redirect but new file is
106434+
// old file wasn't redirect but new file is
106435106435
(oldSourceFile.resolvedPath === oldSourceFile.path && newFile.resolvedPath !== oldSourceFile.path)) {
106436106436
host.onReleaseOldSourceFile(oldSourceFile, oldProgram.getCompilerOptions(), !!getSourceFileByPath(oldSourceFile.path));
106437106437
}
@@ -109547,7 +109547,7 @@ var ts;
109547109547
var newReferences;
109548109548
// if not using old state, every file is changed
109549109549
if (!useOldState ||
109550-
// File wasnt present in old state
109550+
// File wasn't present in old state
109551109551
!(oldInfo = oldState.fileInfos.get(sourceFilePath)) ||
109552109552
// versions dont match
109553109553
oldInfo.version !== info.version ||
@@ -110699,7 +110699,7 @@ var ts;
110699110699
var resolvedModules = [];
110700110700
var compilerOptions = resolutionHost.getCompilationSettings();
110701110701
var hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path);
110702-
// All the resolutions in this file are invalidated if this file wasnt resolved using same redirect
110702+
// All the resolutions in this file are invalidated if this file wasn't resolved using same redirect
110703110703
var program = resolutionHost.getCurrentProgram();
110704110704
var oldRedirect = program && program.getResolvedProjectReferenceToRedirect(containingFile);
110705110705
var unmatchedRedirects = oldRedirect ?

lib/typescript.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -106431,7 +106431,7 @@ var ts;
106431106431
var oldSourceFile = oldSourceFiles_1[_i];
106432106432
var newFile = getSourceFileByPath(oldSourceFile.resolvedPath);
106433106433
if (shouldCreateNewSourceFile || !newFile ||
106434-
// old file wasnt redirect but new file is
106434+
// old file wasn't redirect but new file is
106435106435
(oldSourceFile.resolvedPath === oldSourceFile.path && newFile.resolvedPath !== oldSourceFile.path)) {
106436106436
host.onReleaseOldSourceFile(oldSourceFile, oldProgram.getCompilerOptions(), !!getSourceFileByPath(oldSourceFile.path));
106437106437
}
@@ -109547,7 +109547,7 @@ var ts;
109547109547
var newReferences;
109548109548
// if not using old state, every file is changed
109549109549
if (!useOldState ||
109550-
// File wasnt present in old state
109550+
// File wasn't present in old state
109551109551
!(oldInfo = oldState.fileInfos.get(sourceFilePath)) ||
109552109552
// versions dont match
109553109553
oldInfo.version !== info.version ||
@@ -110699,7 +110699,7 @@ var ts;
110699110699
var resolvedModules = [];
110700110700
var compilerOptions = resolutionHost.getCompilationSettings();
110701110701
var hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path);
110702-
// All the resolutions in this file are invalidated if this file wasnt resolved using same redirect
110702+
// All the resolutions in this file are invalidated if this file wasn't resolved using same redirect
110703110703
var program = resolutionHost.getCurrentProgram();
110704110704
var oldRedirect = program && program.getResolvedProjectReferenceToRedirect(containingFile);
110705110705
var unmatchedRedirects = oldRedirect ?

lib/typescriptServices.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -106431,7 +106431,7 @@ var ts;
106431106431
var oldSourceFile = oldSourceFiles_1[_i];
106432106432
var newFile = getSourceFileByPath(oldSourceFile.resolvedPath);
106433106433
if (shouldCreateNewSourceFile || !newFile ||
106434-
// old file wasnt redirect but new file is
106434+
// old file wasn't redirect but new file is
106435106435
(oldSourceFile.resolvedPath === oldSourceFile.path && newFile.resolvedPath !== oldSourceFile.path)) {
106436106436
host.onReleaseOldSourceFile(oldSourceFile, oldProgram.getCompilerOptions(), !!getSourceFileByPath(oldSourceFile.path));
106437106437
}
@@ -109547,7 +109547,7 @@ var ts;
109547109547
var newReferences;
109548109548
// if not using old state, every file is changed
109549109549
if (!useOldState ||
109550-
// File wasnt present in old state
109550+
// File wasn't present in old state
109551109551
!(oldInfo = oldState.fileInfos.get(sourceFilePath)) ||
109552109552
// versions dont match
109553109553
oldInfo.version !== info.version ||
@@ -110699,7 +110699,7 @@ var ts;
110699110699
var resolvedModules = [];
110700110700
var compilerOptions = resolutionHost.getCompilationSettings();
110701110701
var hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path);
110702-
// All the resolutions in this file are invalidated if this file wasnt resolved using same redirect
110702+
// All the resolutions in this file are invalidated if this file wasn't resolved using same redirect
110703110703
var program = resolutionHost.getCurrentProgram();
110704110704
var oldRedirect = program && program.getResolvedProjectReferenceToRedirect(containingFile);
110705110705
var unmatchedRedirects = oldRedirect ?

lib/typingsInstaller.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -106226,7 +106226,7 @@ var ts;
106226106226
var oldSourceFile = oldSourceFiles_1[_i];
106227106227
var newFile = getSourceFileByPath(oldSourceFile.resolvedPath);
106228106228
if (shouldCreateNewSourceFile || !newFile ||
106229-
// old file wasnt redirect but new file is
106229+
// old file wasn't redirect but new file is
106230106230
(oldSourceFile.resolvedPath === oldSourceFile.path && newFile.resolvedPath !== oldSourceFile.path)) {
106231106231
host.onReleaseOldSourceFile(oldSourceFile, oldProgram.getCompilerOptions(), !!getSourceFileByPath(oldSourceFile.path));
106232106232
}
@@ -109342,7 +109342,7 @@ var ts;
109342109342
var newReferences;
109343109343
// if not using old state, every file is changed
109344109344
if (!useOldState ||
109345-
// File wasnt present in old state
109345+
// File wasn't present in old state
109346109346
!(oldInfo = oldState.fileInfos.get(sourceFilePath)) ||
109347109347
// versions dont match
109348109348
oldInfo.version !== info.version ||
@@ -110494,7 +110494,7 @@ var ts;
110494110494
var resolvedModules = [];
110495110495
var compilerOptions = resolutionHost.getCompilationSettings();
110496110496
var hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path);
110497-
// All the resolutions in this file are invalidated if this file wasnt resolved using same redirect
110497+
// All the resolutions in this file are invalidated if this file wasn't resolved using same redirect
110498110498
var program = resolutionHost.getCurrentProgram();
110499110499
var oldRedirect = program && program.getResolvedProjectReferenceToRedirect(containingFile);
110500110500
var unmatchedRedirects = oldRedirect ?

src/compiler/builder.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ namespace ts {
216216

217217
// if not using old state, every file is changed
218218
if (!useOldState ||
219-
// File wasnt present in old state
219+
// File wasn't present in old state
220220
!(oldInfo = oldState!.fileInfos.get(sourceFilePath)) ||
221221
// versions dont match
222222
oldInfo.version !== info.version ||

src/compiler/program.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ namespace ts {
10161016
for (const oldSourceFile of oldSourceFiles) {
10171017
const newFile = getSourceFileByPath(oldSourceFile.resolvedPath);
10181018
if (shouldCreateNewSourceFile || !newFile ||
1019-
// old file wasnt redirect but new file is
1019+
// old file wasn't redirect but new file is
10201020
(oldSourceFile.resolvedPath === oldSourceFile.path && newFile.resolvedPath !== oldSourceFile.path)) {
10211021
host.onReleaseOldSourceFile(oldSourceFile, oldProgram.getCompilerOptions(), !!getSourceFileByPath(oldSourceFile.path));
10221022
}

src/compiler/resolutionCache.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ namespace ts {
361361
const compilerOptions = resolutionHost.getCompilationSettings();
362362
const hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path);
363363

364-
// All the resolutions in this file are invalidated if this file wasnt resolved using same redirect
364+
// All the resolutions in this file are invalidated if this file wasn't resolved using same redirect
365365
const program = resolutionHost.getCurrentProgram();
366366
const oldRedirect = program && program.getResolvedProjectReferenceToRedirect(containingFile);
367367
const unmatchedRedirects = oldRedirect ?

src/compiler/utilitiesPublic.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ namespace ts {
311311
// nodes like variable declarations and binding elements can returned a view of their flags
312312
// that includes the modifiers from their container. i.e. flags like export/declare aren't
313313
// stored on the variable declaration directly, but on the containing variable statement
314-
// (if it has one). Similarly, flags for let/const are store on the variable declaration
314+
// (if it has one). Similarly, flags for let/const are stored on the variable declaration
315315
// list. By calling this function, all those flags are combined so that the client can treat
316316
// the node as if it actually had those flags.
317317
export function getCombinedNodeFlags(node: Node): NodeFlags {

src/server/project.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ namespace ts.server {
102102

103103
/**
104104
* The project root can be script info - if root is present,
105-
* or it could be just normalized path if root wasnt present on the host(only for non inferred project)
105+
* or it could be just normalized path if root wasn't present on the host(only for non inferred project)
106106
*/
107107
/* @internal */
108108
export interface ProjectRootFile {

0 commit comments

Comments
 (0)