Lint · spiffcode/TypeScript@2dd23fa · GitHub
Skip to content

Commit 2dd23fa

Browse files
author
Andy Hanson
committed
Lint
1 parent cf6c24c commit 2dd23fa

3 files changed

Lines changed: 9 additions & 13 deletions

File tree

src/harness/fourslash.ts

Lines changed: 2 additions & 2 deletions

src/services/importTracker.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace ts.FindAllReferences {
1717
return (exportSymbol, exportInfo, isForRename) => {
1818
const { directImports, indirectUsers } = getImportersForExport(sourceFiles, allDirectImports, exportInfo, checker);
1919
return { indirectUsers, ...getSearchesFromDirectImports(directImports, exportSymbol, exportInfo.exportKind, checker, isForRename) };
20-
}
20+
};
2121
}
2222

2323
/** Info about an exported symbol to perform recursive search on. */
@@ -86,7 +86,7 @@ namespace ts.FindAllReferences {
8686
case SyntaxKind.ImportDeclaration:
8787
const namedBindings = direct.importClause && direct.importClause.namedBindings;
8888
if (namedBindings && namedBindings.kind === SyntaxKind.NamespaceImport) {
89-
handleNamespaceImport(direct, namedBindings.name)
89+
handleNamespaceImport(direct, namedBindings.name);
9090
}
9191
else {
9292
directImports.push(direct);
@@ -418,7 +418,7 @@ namespace ts.FindAllReferences {
418418
// Get the symbol for the `export =` node; its parent is the module it's the export of.
419419
const exportingModuleSymbol = parent.symbol.parent;
420420
Debug.assert(!!exportingModuleSymbol);
421-
return { kind: ImportExport.Export, symbol, exportInfo: { exportingModuleSymbol, exportKind: ExportKind.ExportEquals } }
421+
return { kind: ImportExport.Export, symbol, exportInfo: { exportingModuleSymbol, exportKind: ExportKind.ExportEquals } };
422422
}
423423
}
424424
}
@@ -445,7 +445,7 @@ namespace ts.FindAllReferences {
445445

446446
function exportInfo(symbol: Symbol, kind: ExportKind): ExportedSymbol {
447447
const exportInfo = getExportInfo(symbol, kind, checker);
448-
return exportInfo && { kind: ImportExport.Export, symbol, exportInfo }
448+
return exportInfo && { kind: ImportExport.Export, symbol, exportInfo };
449449
}
450450

451451
// Not meant for use with export specifiers or export assignment.
@@ -524,6 +524,6 @@ namespace ts.FindAllReferences {
524524
}
525525

526526
function isExternalModuleImportEquals({ moduleReference }: ImportEqualsDeclaration): boolean {
527-
return moduleReference.kind === SyntaxKind.ExternalModuleReference && moduleReference.expression.kind === SyntaxKind.StringLiteral
527+
return moduleReference.kind === SyntaxKind.ExternalModuleReference && moduleReference.expression.kind === SyntaxKind.StringLiteral;
528528
}
529529
}

src/services/types.ts

Lines changed: 2 additions & 6 deletions

0 commit comments

Comments
 (0)