Skip to content

Commit 8cae586

Browse files
author
Andy Hanson
committed
Update API (#24966)
1 parent 6bc1e70 commit 8cae586

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/baselines/reference/api/tsserverlibrary.d.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -10780,7 +10780,12 @@ declare namespace ts {
1078010780
*/
1078110781
function getPropertySymbolsFromBaseTypes<T>(symbol: Symbol, propertyName: string, checker: TypeChecker, cb: (symbol: Symbol) => T | undefined): T | undefined;
1078210782
function isMemberSymbolInBaseType(memberSymbol: Symbol, checker: TypeChecker): boolean;
10783-
class NodeSet {
10783+
interface ReadonlyNodeSet {
10784+
has(node: Node): boolean;
10785+
forEach(cb: (node: Node) => void): void;
10786+
some(pred: (node: Node) => boolean): boolean;
10787+
}
10788+
class NodeSet implements ReadonlyNodeSet {
1078410789
private map;
1078510790
add(node: Node): void;
1078610791
has(node: Node): boolean;
@@ -11071,6 +11076,7 @@ declare namespace ts.FindAllReferences.Core {
1107111076
/** Used as a quick check for whether a symbol is used at all in a file (besides its definition). */
1107211077
function isSymbolReferencedInFile(definition: Identifier, checker: TypeChecker, sourceFile: SourceFile): boolean;
1107311078
function eachSymbolReferenceInFile<T>(definition: Identifier, checker: TypeChecker, sourceFile: SourceFile, cb: (token: Identifier) => T): T | undefined;
11079+
function eachSignatureCall(signature: SignatureDeclaration, sourceFiles: ReadonlyArray<SourceFile>, checker: TypeChecker, cb: (sourceFile: SourceFile, call: CallExpression) => void): void;
1107411080
/**
1107511081
* Given an initial searchMeaning, extracted from a location, widen the search scope based on the declarations
1107611082
* of the corresponding symbol. e.g. if we are searching for "Foo" in value position, but "Foo" references a class

0 commit comments

Comments
 (0)