@@ -10832,6 +10832,18 @@ declare namespace ts {
10832
10832
forEach(cb: (node: Node) => void): void;
10833
10833
some(pred: (node: Node) => boolean): boolean;
10834
10834
}
10835
+ interface ReadonlyNodeMap<TNode extends Node, TValue> {
10836
+ get(node: TNode): TValue | undefined;
10837
+ has(node: TNode): boolean;
10838
+ }
10839
+ class NodeMap<TNode extends Node, TValue> implements ReadonlyNodeMap<TNode, TValue> {
10840
+ private map;
10841
+ get(node: TNode): TValue | undefined;
10842
+ getOrUpdate(node: TNode, setValue: () => TValue): TValue;
10843
+ set(node: TNode, value: TValue): void;
10844
+ has(node: TNode): boolean;
10845
+ forEach(cb: (value: TValue, node: TNode) => void): void;
10846
+ }
10835
10847
function getParentNodeInSpan(node: Node | undefined, file: SourceFile, span: TextSpan): Node | undefined;
10836
10848
function findModifier(node: Node, kind: Modifier["kind"]): Modifier | undefined;
10837
10849
function insertImport(changes: textChanges.ChangeTracker, sourceFile: SourceFile, importDecl: Statement): void;
@@ -11592,8 +11604,10 @@ declare namespace ts {
11592
11604
function getSupportedErrorCodes(): string[];
11593
11605
function getFixes(context: CodeFixContext): CodeFixAction[];
11594
11606
function getAllFixes(context: CodeFixAllContext): CombinedCodeActions;
11607
+ function createCombinedCodeActions(changes: FileTextChanges[], commands?: CodeActionCommand[]): CombinedCodeActions;
11595
11608
function createFileTextChanges(fileName: string, textChanges: TextChange[]): FileTextChanges;
11596
11609
function codeFixAll(context: CodeFixAllContext, errorCodes: number[], use: (changes: textChanges.ChangeTracker, error: DiagnosticWithLocation, commands: Push<CodeActionCommand>) => void): CombinedCodeActions;
11610
+ function eachDiagnostic({ program, sourceFile, cancellationToken }: CodeFixAllContext, errorCodes: number[], cb: (diag: DiagnosticWithLocation) => void): void;
11597
11611
}
11598
11612
}
11599
11613
declare namespace ts {
0 commit comments