Skip to content

Commit f30e8a2

Browse files
committed
fix spelling errors
1 parent fa74cef commit f30e8a2

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

doc/spec.md

+1-1
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

+2-2
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

+2-2
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

+1-1
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

+3-3
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

+6-6
Original file line numberDiff line numberDiff line change
@@ -6311,7 +6311,7 @@ namespace ts {
63116311
return false;
63126312
}
63136313

6314-
/** A type parameter is thisless if its contraint is thisless, or if it has no constraint. */
6314+
/** A type parameter is thisless if its constraint is thisless, or if it has no constraint. */
63156315
function isThislessTypeParameter(node: TypeParameterDeclaration) {
63166316
const constraint = getEffectiveConstraintOfTypeParameter(node);
63176317
return !constraint || isThislessType(constraint);
@@ -10012,10 +10012,10 @@ namespace ts {
1001210012
if (checkType.flags & TypeFlags.Any) {
1001310013
return getUnionType([instantiateType(root.trueType, combinedMapper || mapper), instantiateType(root.falseType, mapper)]);
1001410014
}
10015-
// Return falseType for a definitely false extends check. We check an instantations of the two
10015+
// Return falseType for a definitely false extends check. We check an instantiations of the two
1001610016
// types with type parameters mapped to the wildcard type, the most permissive instantiations
1001710017
// possible (the wildcard type is assignable to and from all types). If those are not related,
10018-
// then no instatiations will be and we can just return the false branch type.
10018+
// then no instantiations will be and we can just return the false branch type.
1001910019
if (!isTypeAssignableTo(getPermissiveInstantiation(checkType), getPermissiveInstantiation(inferredExtendsType))) {
1002010020
return instantiateType(root.falseType, mapper);
1002110021
}
@@ -14477,7 +14477,7 @@ namespace ts {
1447714477
// that is _too good_ in projects with complicated constraints (eg, fp-ts). In such cases, if we did not limit ourselves
1447814478
// here, we might produce more valid inferences for types, causing us to do more checks and perform more instantiations
1447914479
// (in addition to the extra stack depth here) which, in turn, can push the already close process over its limit.
14480-
// TL;DR: If we ever become generally more memory efficienct (or our resource budget ever increases), we should just
14480+
// TL;DR: If we ever become generally more memory efficient (or our resource budget ever increases), we should just
1448114481
// remove this `allowComplexConstraintInference` flag.
1448214482
allowComplexConstraintInference = false;
1448314483
return inferFromTypes(apparentSource, target);
@@ -18906,7 +18906,7 @@ namespace ts {
1890618906
// if jsx emit was not react as there wont be error being emitted
1890718907
reactSym.isReferenced = SymbolFlags.All;
1890818908

18909-
// If react symbol is alias, mark it as refereced
18909+
// If react symbol is alias, mark it as referenced
1891018910
if (reactSym.flags & SymbolFlags.Alias && !isConstEnumOrConstEnumOnlyModule(resolveAlias(reactSym))) {
1891118911
markAliasSymbolAsReferenced(reactSym);
1891218912
}
@@ -28256,7 +28256,7 @@ namespace ts {
2825628256
throwIfNonDiagnosticsProducing();
2825728257
if (sourceFile) {
2825828258
// Some global diagnostics are deferred until they are needed and
28259-
// may not be reported in the firt call to getGlobalDiagnostics.
28259+
// may not be reported in the first call to getGlobalDiagnostics.
2826028260
// We should catch these changes and report them.
2826128261
const previousGlobalDiagnostics = diagnostics.getGlobalDiagnostics();
2826228262
const previousGlobalDiagnosticsSize = previousGlobalDiagnostics.length;

src/compiler/commandLineParser.ts

+1-1
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)