Skip to content

Commit ec9652d

Browse files
Merge pull request microsoft#27934 from mayn/spelling
fix spelling errors
2 parents 62cf44c + f30e8a2 commit ec9652d

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

doc/spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3715,7 +3715,7 @@ the array literal initializer expression is contextually typed by the implied ty
37153715
37163716
## <a name="5.3"/>5.3 Let and Const Declarations
37173717
3718-
Let and const declarations are exended to include optional type annotations.
3718+
Let and const declarations are extended to include optional type annotations.
37193719
37203720
&emsp;&emsp;*LexicalBinding:* *( Modified )*
37213721
&emsp;&emsp;&emsp;*SimpleLexicalBinding*

src/cancellationToken/cancellationToken.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ function createCancellationToken(args: string[]): ServerCancellationToken {
3535
}
3636
// cancellationPipeName is a string without '*' inside that can optionally end with '*'
3737
// when client wants to signal cancellation it should create a named pipe with name=<cancellationPipeName>
38-
// server will synchronously check the presence of the pipe and treat its existance as indicator that current request should be canceled.
39-
// in case if client prefers to use more fine-grained schema than one name for all request it can add '*' to the end of cancelellationPipeName.
38+
// server will synchronously check the presence of the pipe and treat its existence as indicator that current request should be canceled.
39+
// in case if client prefers to use more fine-grained schema than one name for all request it can add '*' to the end of cancellationPipeName.
4040
// in this case pipe name will be build dynamically as <cancellationPipeName><request_seq>.
4141
if (cancellationPipeName.charAt(cancellationPipeName.length - 1) === "*") {
4242
const namePrefix = cancellationPipeName.slice(0, -1);

src/compiler/binder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ namespace ts {
550550
}
551551
}
552552
// We create a return control flow graph for IIFEs and constructors. For constructors
553-
// we use the return control flow graph in strict property intialization checks.
553+
// we use the return control flow graph in strict property initialization checks.
554554
currentReturnTarget = isIIFE || node.kind === SyntaxKind.Constructor ? createBranchLabel() : undefined;
555555
currentBreakTarget = undefined;
556556
currentContinueTarget = undefined;
@@ -3445,7 +3445,7 @@ namespace ts {
34453445
// If a FunctionDeclaration is generator function and is the body of a
34463446
// transformed async function, then this node can be transformed to a
34473447
// down-level generator.
3448-
// Currently we do not support transforming any other generator fucntions
3448+
// Currently we do not support transforming any other generator functions
34493449
// down level.
34503450
if (node.asteriskToken) {
34513451
transformFlags |= TransformFlags.AssertGenerator;

src/compiler/builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace ts {
2727
currentChangedFilePath: Path | undefined;
2828
/**
2929
* Map of file signatures, with key being file path, calculated while getting current changed file's affected files
30-
* These will be commited whenever the iteration through affected files of current changed file is complete
30+
* These will be committed whenever the iteration through affected files of current changed file is complete
3131
*/
3232
currentAffectedFilesSignatures: Map<string> | undefined;
3333
/**

src/compiler/builderState.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace ts {
3737
*/
3838
readonly referencedMap: ReadonlyMap<BuilderState.ReferencedSet> | undefined;
3939
/**
40-
* Contains the map of exported modules ReferencedSet=exorted module files from the file if module emit is enabled
40+
* Contains the map of exported modules ReferencedSet=exported module files from the file if module emit is enabled
4141
* Otherwise undefined
4242
*/
4343
readonly exportedModulesMap: Map<BuilderState.ReferencedSet> | undefined;
@@ -268,9 +268,9 @@ namespace ts.BuilderState {
268268
*/
269269
export function getFilesAffectedBy(state: BuilderState, programOfThisState: Program, path: Path, cancellationToken: CancellationToken | undefined, computeHash: ComputeHash, cacheToUpdateSignature?: Map<string>, exportedModulesMapCache?: ComputingExportedModulesMap): ReadonlyArray<SourceFile> {
270270
// Since the operation could be cancelled, the signatures are always stored in the cache
271-
// They will be commited once it is safe to use them
271+
// They will be committed once it is safe to use them
272272
// eg when calling this api from tsserver, if there is no cancellation of the operation
273-
// In the other cases the affected files signatures are commited only after the iteration through the result is complete
273+
// In the other cases the affected files signatures are committed only after the iteration through the result is complete
274274
const signatureCache = cacheToUpdateSignature || createMap();
275275
const sourceFile = programOfThisState.getSourceFileByPath(path);
276276
if (!sourceFile) {

src/compiler/checker.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6318,7 +6318,7 @@ namespace ts {
63186318
return false;
63196319
}
63206320

6321-
/** A type parameter is thisless if its contraint is thisless, or if it has no constraint. */
6321+
/** A type parameter is thisless if its constraint is thisless, or if it has no constraint. */
63226322
function isThislessTypeParameter(node: TypeParameterDeclaration) {
63236323
const constraint = getEffectiveConstraintOfTypeParameter(node);
63246324
return !constraint || isThislessType(constraint);
@@ -10041,10 +10041,10 @@ namespace ts {
1004110041
if (checkType.flags & TypeFlags.Any) {
1004210042
return getUnionType([instantiateType(root.trueType, combinedMapper || mapper), instantiateType(root.falseType, mapper)]);
1004310043
}
10044-
// Return falseType for a definitely false extends check. We check an instantations of the two
10044+
// Return falseType for a definitely false extends check. We check an instantiations of the two
1004510045
// types with type parameters mapped to the wildcard type, the most permissive instantiations
1004610046
// possible (the wildcard type is assignable to and from all types). If those are not related,
10047-
// then no instatiations will be and we can just return the false branch type.
10047+
// then no instantiations will be and we can just return the false branch type.
1004810048
if (!isTypeAssignableTo(getPermissiveInstantiation(checkType), getPermissiveInstantiation(inferredExtendsType))) {
1004910049
return instantiateType(root.falseType, mapper);
1005010050
}
@@ -14501,7 +14501,7 @@ namespace ts {
1450114501
// that is _too good_ in projects with complicated constraints (eg, fp-ts). In such cases, if we did not limit ourselves
1450214502
// here, we might produce more valid inferences for types, causing us to do more checks and perform more instantiations
1450314503
// (in addition to the extra stack depth here) which, in turn, can push the already close process over its limit.
14504-
// TL;DR: If we ever become generally more memory efficienct (or our resource budget ever increases), we should just
14504+
// TL;DR: If we ever become generally more memory efficient (or our resource budget ever increases), we should just
1450514505
// remove this `allowComplexConstraintInference` flag.
1450614506
allowComplexConstraintInference = false;
1450714507
return inferFromTypes(apparentSource, target);
@@ -18938,7 +18938,7 @@ namespace ts {
1893818938
// if jsx emit was not react as there wont be error being emitted
1893918939
reactSym.isReferenced = SymbolFlags.All;
1894018940

18941-
// If react symbol is alias, mark it as refereced
18941+
// If react symbol is alias, mark it as referenced
1894218942
if (reactSym.flags & SymbolFlags.Alias && !isConstEnumOrConstEnumOnlyModule(resolveAlias(reactSym))) {
1894318943
markAliasSymbolAsReferenced(reactSym);
1894418944
}
@@ -28330,7 +28330,7 @@ namespace ts {
2833028330
throwIfNonDiagnosticsProducing();
2833128331
if (sourceFile) {
2833228332
// Some global diagnostics are deferred until they are needed and
28333-
// may not be reported in the firt call to getGlobalDiagnostics.
28333+
// may not be reported in the first call to getGlobalDiagnostics.
2833428334
// We should catch these changes and report them.
2833528335
const previousGlobalDiagnostics = diagnostics.getGlobalDiagnostics();
2833628336
const previousGlobalDiagnosticsSize = previousGlobalDiagnostics.length;

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1935,7 +1935,7 @@ namespace ts {
19351935

19361936
function directoryOfCombinedPath(fileName: string, basePath: string) {
19371937
// Use the `getNormalizedAbsolutePath` function to avoid canonicalizing the path, as it must remain noncanonical
1938-
// until consistient casing errors are reported
1938+
// until consistent casing errors are reported
19391939
return getDirectoryPath(getNormalizedAbsolutePath(fileName, basePath));
19401940
}
19411941

0 commit comments

Comments
 (0)