Skip to content

Commit 2dd23fa

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

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

src/harness/fourslash.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ namespace FourSlash {
561561
const errors = this.getDiagnostics(fileName);
562562
if (errors.length) {
563563
this.printErrorLog(/*expectErrors*/ false, errors);
564-
const error = errors[0]
564+
const error = errors[0];
565565
this.raiseError(`Found an error: ${error.file.fileName}@${error.start}: ${error.messageText}`);
566566
}
567567
});
@@ -1174,7 +1174,7 @@ namespace FourSlash {
11741174
let findInStrings: boolean, findInComments: boolean, ranges: Range[];
11751175
if (ts.isArray(options)) {
11761176
findInStrings = findInComments = false;
1177-
ranges = options
1177+
ranges = options;
11781178
}
11791179
else {
11801180
findInStrings = !!options.findInStrings;

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
Original file line numberDiff line numberDiff line change
@@ -481,13 +481,9 @@ namespace ts {
481481
displayParts: SymbolDisplayPart[];
482482
}
483483

484-
//!!! internal implementation details leaked!!!
485-
export interface ReferencedSymbolOf<T extends DocumentSpan> {
484+
export interface ReferencedSymbol {
486485
definition: ReferencedSymbolDefinitionInfo;
487-
references: T[];
488-
}
489-
490-
export interface ReferencedSymbol extends ReferencedSymbolOf<ReferenceEntry> {
486+
references: ReferenceEntry[];
491487
}
492488

493489
export enum SymbolDisplayPartKind {

0 commit comments

Comments
 (0)