Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 32bb63c

Browse filesBrowse files
getSuggestionForNonexistentModule -> getSuggestionForNonexistentExport
1 parent b93845a commit 32bb63c
Copy full SHA for 32bb63c

3 files changed

+4-4Lines changed: 4 additions & 4 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/compiler/checker.ts‎

Copy file name to clipboardExpand all lines: src/compiler/checker.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ namespace ts {
295295
getAllPossiblePropertiesOfTypes,
296296
getSuggestionForNonexistentProperty: (node, type) => getSuggestionForNonexistentProperty(node, type),
297297
getSuggestionForNonexistentSymbol: (location, name, meaning) => getSuggestionForNonexistentSymbol(location, escapeLeadingUnderscores(name), meaning),
298-
getSuggestionForNonexistentModule: (node, target) => getSuggestionForNonexistentModule(node, target),
298+
getSuggestionForNonexistentExport: (node, target) => getSuggestionForNonexistentExport(node, target),
299299
getBaseConstraintOfType,
300300
getDefaultFromTypeParameter: type => type && type.flags & TypeFlags.TypeParameter ? getDefaultFromTypeParameter(type as TypeParameter) : undefined,
301301
resolveName(name, location, meaning, excludeGlobals) {
@@ -17787,7 +17787,7 @@ namespace ts {
1778717787
return targetModule.exports && getSpellingSuggestionForName(idText(name), getExportsOfModuleAsArray(targetModule), SymbolFlags.ModuleMember);
1778817788
}
1778917789

17790-
function getSuggestionForNonexistentModule(name: Identifier, targetModule: Symbol): string | undefined {
17790+
function getSuggestionForNonexistentExport(name: Identifier, targetModule: Symbol): string | undefined {
1779117791
const suggestion = getSuggestedSymbolForNonexistentModule(name, targetModule);
1779217792
return suggestion && symbolName(suggestion);
1779317793
}
Collapse file

‎src/compiler/types.ts‎

Copy file name to clipboardExpand all lines: src/compiler/types.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2996,7 +2996,7 @@ namespace ts {
29962996
getApparentType(type: Type): Type;
29972997
getSuggestionForNonexistentProperty(name: Identifier | string, containingType: Type): string | undefined;
29982998
getSuggestionForNonexistentSymbol(location: Node, name: string, meaning: SymbolFlags): string | undefined;
2999-
getSuggestionForNonexistentModule(node: Identifier, target: Symbol): string | undefined;
2999+
getSuggestionForNonexistentExport(node: Identifier, target: Symbol): string | undefined;
30003000
getBaseConstraintOfType(type: Type): Type | undefined;
30013001
getDefaultFromTypeParameter(type: Type): Type | undefined;
30023002

Collapse file

‎src/services/codefixes/fixSpelling.ts‎

Copy file name to clipboardExpand all lines: src/services/codefixes/fixSpelling.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace ts.codefix {
4343
const importDeclaration = findAncestor(node, isImportDeclaration)!;
4444
const resolvedSourceFile = getResolvedSourceFileFromImportDeclaration(sourceFile, context, importDeclaration);
4545
if (resolvedSourceFile && resolvedSourceFile.symbol) {
46-
suggestion = checker.getSuggestionForNonexistentModule(node as Identifier, resolvedSourceFile.symbol);
46+
suggestion = checker.getSuggestionForNonexistentExport(node as Identifier, resolvedSourceFile.symbol);
4747
}
4848
}
4949
else {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.