Skip to content

Commit 8911c19

Browse files
authored
Merge pull request #25313 from github-john-doe/typo
Typo
2 parents 320db5c + d21d0af commit 8911c19

File tree

12 files changed

+14
-14
lines changed

12 files changed

+14
-14
lines changed

scripts/createBenchmark.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ sourceFiles.forEach(f=> {
3232
});
3333
var compilerSoruces = `var compilerSources = ${JSON.stringify(rawCompilerSources) };`;
3434

35-
// .js code for the compiler, what we are actuallty testing
35+
// .js code for the compiler, what we are actually testing
3636
var rawCompilerJavaScript = fs.readFileSync(path.join(tsBuildDir, "tsc.js")).toString();
3737
rawCompilerJavaScript = rawCompilerJavaScript.replace("ts.executeCommandLine(ts.sys.args);", "");
3838

src/compiler/checker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14854,7 +14854,7 @@ namespace ts {
1485414854
const declarationContainer = getControlFlowContainer(declaration);
1485514855
let flowContainer = getControlFlowContainer(node);
1485614856
const isOuterVariable = flowContainer !== declarationContainer;
14857-
const isSpreadDestructuringAsignmentTarget = node.parent && node.parent.parent && isSpreadAssignment(node.parent) && isDestructuringAssignmentTarget(node.parent.parent);
14857+
const isSpreadDestructuringAssignmentTarget = node.parent && node.parent.parent && isSpreadAssignment(node.parent) && isDestructuringAssignmentTarget(node.parent.parent);
1485814858
// When the control flow originates in a function expression or arrow function and we are referencing
1485914859
// a const variable or parameter from an outer function, we extend the origin of the control flow
1486014860
// analysis to include the immediately enclosing function.
@@ -14866,7 +14866,7 @@ namespace ts {
1486614866
// We only look for uninitialized variables in strict null checking mode, and only when we can analyze
1486714867
// the entire control flow graph from the variable's declaration (i.e. when the flow container and
1486814868
// declaration container are the same).
14869-
const assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAsignmentTarget ||
14869+
const assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget ||
1487014870
type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & TypeFlags.AnyOrUnknown) !== 0 ||
1487114871
isInTypeQuery(node) || node.parent.kind === SyntaxKind.ExportSpecifier) ||
1487214872
node.parent.kind === SyntaxKind.NonNullExpression ||
@@ -19598,7 +19598,7 @@ namespace ts {
1959819598
}
1959919599
const specifier = node.arguments[0];
1960019600
const specifierType = checkExpressionCached(specifier);
19601-
// Even though multiple arugments is grammatically incorrect, type-check extra arguments for completion
19601+
// Even though multiple arguments is grammatically incorrect, type-check extra arguments for completion
1960219602
for (let i = 1; i < node.arguments.length; ++i) {
1960319603
checkExpressionCached(node.arguments[i]);
1960419604
}

src/compiler/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@ namespace ts {
18551855
}
18561856

18571857
export function getRightMostAssignedExpression(node: Expression): Expression {
1858-
while (isAssignmentExpression(node, /*excludeCompoundAssignements*/ true)) {
1858+
while (isAssignmentExpression(node, /*excludeCompoundAssignments*/ true)) {
18591859
node = node.right;
18601860
}
18611861
return node;

src/server/editorServices.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ namespace ts.server {
851851
configFileExistenceInfo.exists = false;
852852
this.removeProject(project);
853853

854-
// Reload the configured projects for the open files in the map as they are affectected by this config file
854+
// Reload the configured projects for the open files in the map as they are affected by this config file
855855
// Since the configured project was deleted, we want to reload projects for all the open files including files
856856
// that are not root of the inferred project
857857
this.logConfigFileWatchUpdate(project.getConfigFilePath(), project.canonicalConfigFilePath, configFileExistenceInfo, ConfigFileWatcherStatus.ReloadingFiles);

src/server/protocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ namespace ts.server.protocol {
12461246
/* @internal */
12471247
export interface ProjectFiles {
12481248
/**
1249-
* Information abount project verison
1249+
* Information about project verison
12501250
*/
12511251
info?: ProjectVersionInfo;
12521252
/**

src/services/findAllReferences.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ namespace ts.FindAllReferences.Core {
498498
return this.importTracker(exportSymbol, exportInfo, !!this.options.isForRename);
499499
}
500500

501-
/** @param allSearchSymbols set of additinal symbols for use by `includes`. */
501+
/** @param allSearchSymbols set of additional symbols for use by `includes`. */
502502
createSearch(location: Node | undefined, symbol: Symbol, comingFrom: ImportExport | undefined, searchOptions: { text?: string, allSearchSymbols?: Symbol[] } = {}): Search {
503503
// Note: if this is an external module symbol, the name doesn't include quotes.
504504
// Note: getLocalSymbolForExportDefault handles `export default class C {}`, but not `export default C` or `export { C as default }`.

src/services/shims.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ namespace ts {
102102
readDirectory(rootDir: string, extension: string, basePaths?: string, excludeEx?: string, includeFileEx?: string, includeDirEx?: string, depth?: number): string;
103103

104104
/**
105-
* Read arbitary text files on disk, i.e. when resolution procedure needs the content of 'package.json' to determine location of bundled typings for node modules
105+
* Read arbitrary text files on disk, i.e. when resolution procedure needs the content of 'package.json' to determine location of bundled typings for node modules
106106
*/
107107
readFile(fileName: string): string | undefined;
108108
realpath?(path: string): string;

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11967,7 +11967,7 @@ declare namespace ts {
1196711967
*/
1196811968
readDirectory(rootDir: string, extension: string, basePaths?: string, excludeEx?: string, includeFileEx?: string, includeDirEx?: string, depth?: number): string;
1196911969
/**
11970-
* Read arbitary text files on disk, i.e. when resolution procedure needs the content of 'package.json' to determine location of bundled typings for node modules
11970+
* Read arbitrary text files on disk, i.e. when resolution procedure needs the content of 'package.json' to determine location of bundled typings for node modules
1197111971
*/
1197211972
readFile(fileName: string): string | undefined;
1197311973
realpath?(path: string): string;

tests/baselines/reference/checkJsFiles_skipDiagnostics.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ x(
2424
// come comment
2525
// some other comment
2626

27-
// @anohter
27+
// @another
2828

2929
x();
3030
>x : Symbol(x, Decl(a.js, 0, 3))

tests/baselines/reference/checkJsFiles_skipDiagnostics.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ x(
3131
// come comment
3232
// some other comment
3333

34-
// @anohter
34+
// @another
3535

3636
x();
3737
>x() : any

0 commit comments

Comments
 (0)