@@ -2248,7 +2248,20 @@ declare namespace ts {
22482248 diagnostics: readonly Diagnostic[];
22492249 emittedFiles?: string[];
22502250 }
2251+ export interface SymbolChainCacheKey {
2252+ symbol: Symbol;
2253+ enclosingDeclaration?: Node;
2254+ flags: NodeBuilderFlags;
2255+ meaning: SymbolFlags;
2256+ yieldModuleSymbol?: boolean;
2257+ endOfChain: boolean;
2258+ }
2259+ export interface SymbolChainCache {
2260+ lookup(key: SymbolChainCacheKey): Symbol[] | undefined;
2261+ cache(key: SymbolChainCacheKey, value: Symbol[]): void;
2262+ }
22512263 export interface TypeChecker {
2264+ setSymbolChainCache(cache: SymbolChainCache | undefined): void;
22522265 getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type;
22532266 getDeclaredTypeOfSymbol(symbol: Symbol): Type;
22542267 getPropertiesOfType(type: Type): Symbol[];
@@ -5776,6 +5789,7 @@ declare namespace ts {
57765789 * @param position A zero-based index of the character where you want the quick info
57775790 */
57785791 getQuickInfoAtPosition(fileName: string, position: number): QuickInfo | undefined;
5792+ getQuickInfoAtPosition(node: ts.Node, sourceFile?: ts.SourceFile): QuickInfo | undefined;
57795793 getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number): TextSpan | undefined;
57805794 getBreakpointStatementAtPosition(fileName: string, position: number): TextSpan | undefined;
57815795 getSignatureHelpItems(fileName: string, position: number, options: SignatureHelpItemsOptions | undefined): SignatureHelpItems | undefined;
@@ -5800,6 +5814,7 @@ declare namespace ts {
58005814 provideCallHierarchyOutgoingCalls(fileName: string, position: number): CallHierarchyOutgoingCall[];
58015815 provideInlayHints(fileName: string, span: TextSpan, preferences: UserPreferences | undefined): InlayHint[];
58025816 getOutliningSpans(fileName: string): OutliningSpan[];
5817+ getOutliningSpans(sourceFile: ts.SourceFile): OutliningSpan[];
58035818 getTodoComments(fileName: string, descriptors: TodoCommentDescriptor[]): TodoComment[];
58045819 getBraceMatchingAtPosition(fileName: string, position: number): TextSpan[];
58055820 getIndentationAtPosition(fileName: string, position: number, options: EditorOptions | EditorSettings): number;
0 commit comments