mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix typos (#41723)
This commit is contained in:
@@ -16672,7 +16672,7 @@ namespace ts {
|
||||
}
|
||||
for (const [msg, ...args] of secondaryRootErrors) {
|
||||
const originalValue = msg.elidedInCompatabilityPyramid;
|
||||
msg.elidedInCompatabilityPyramid = false; // Teporarily override elision to ensure error is reported
|
||||
msg.elidedInCompatabilityPyramid = false; // Temporarily override elision to ensure error is reported
|
||||
reportError(msg, ...args);
|
||||
msg.elidedInCompatabilityPyramid = originalValue;
|
||||
}
|
||||
@@ -24038,7 +24038,7 @@ namespace ts {
|
||||
|
||||
function getContextualTypeForChildJsxExpression(node: JsxElement, child: JsxChild) {
|
||||
const attributesType = getApparentTypeOfContextualType(node.openingElement.tagName);
|
||||
// JSX expression is in children of JSX Element, we will look for an "children" atttribute (we get the name from JSX.ElementAttributesProperty)
|
||||
// JSX expression is in children of JSX Element, we will look for an "children" attribute (we get the name from JSX.ElementAttributesProperty)
|
||||
const jsxChildrenPropertyName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(node));
|
||||
if (!(attributesType && !isTypeAny(attributesType) && jsxChildrenPropertyName && jsxChildrenPropertyName !== "")) {
|
||||
return undefined;
|
||||
|
||||
@@ -1591,7 +1591,7 @@ namespace ts {
|
||||
// | 1. | i | 105 | Ascii i |
|
||||
// | 2. | I | 73 | Ascii I |
|
||||
// |-------- Special characters ------------------------------------------------------------------------|
|
||||
// | 3. | \u0130 | 304 | Uppper case I with dot above |
|
||||
// | 3. | \u0130 | 304 | Upper case I with dot above |
|
||||
// | 4. | i,\u0307 | 105,775 | i, followed by 775: Lower case of (3rd item) |
|
||||
// | 5. | I,\u0307 | 73,775 | I, followed by 775: Upper case of (4th item), lower case is (4th item) |
|
||||
// | 6. | \u0131 | 305 | Lower case i without dot, upper case is I (2nd item) |
|
||||
|
||||
@@ -1023,7 +1023,7 @@ namespace ts {
|
||||
|
||||
/**
|
||||
* This will be called on the successfully resolved path from `loadModuleFromFile`.
|
||||
* (Not neeeded for `loadModuleFromNodeModules` as that looks up the `package.json` as part of resolution.)
|
||||
* (Not needed for `loadModuleFromNodeModules` as that looks up the `package.json` as part of resolution.)
|
||||
*
|
||||
* packageDirectory is the directory of the package itself.
|
||||
* For `blah/node_modules/foo/index.d.ts` this is packageDirectory: "foo"
|
||||
|
||||
@@ -253,7 +253,7 @@ namespace ts {
|
||||
|
||||
|
||||
const sourceFilesCache = new Map<string, HostFileInfo>(); // Cache that stores the source file and version info
|
||||
let missingFilePathsRequestedForRelease: Path[] | undefined; // These paths are held temparirly so that we can remove the entry from source file cache if the file is not tracked by missing files
|
||||
let missingFilePathsRequestedForRelease: Path[] | undefined; // These paths are held temporarily so that we can remove the entry from source file cache if the file is not tracked by missing files
|
||||
let hasChangedCompilerOptions = false; // True if the compiler options have changed between compilations
|
||||
|
||||
const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames();
|
||||
|
||||
@@ -142,7 +142,7 @@ namespace ts.codefix {
|
||||
}
|
||||
|
||||
/*
|
||||
Renaming of identifiers may be neccesary as the refactor changes scopes -
|
||||
Renaming of identifiers may be necessary as the refactor changes scopes -
|
||||
This function collects all existing identifier names and names of identifiers that will be created in the refactor.
|
||||
It then checks for any collisions and renames them through getSynthesizedDeepClone
|
||||
*/
|
||||
|
||||
@@ -708,7 +708,7 @@ namespace ts.NavigationBar {
|
||||
return "default";
|
||||
}
|
||||
// We may get a string with newlines or other whitespace in the case of an object dereference
|
||||
// (eg: "app\n.onactivated"), so we should remove the whitespace for readabiltiy in the
|
||||
// (eg: "app\n.onactivated"), so we should remove the whitespace for readability in the
|
||||
// navigation bar.
|
||||
return getFunctionOrClassName(<ArrowFunction | FunctionExpression | ClassExpression>node);
|
||||
case SyntaxKind.Constructor:
|
||||
|
||||
Reference in New Issue
Block a user