Skip to content

Commit

Permalink
fix(BREAKING): Node.prototype.forgetDescendants() no longer returns…
Browse files Browse the repository at this point in the history
… self (#1515)
  • Loading branch information
dsherret committed Mar 9, 2024
1 parent 6fdf7d3 commit 92962aa
Show file tree
Hide file tree
Showing 6 changed files with 419 additions and 7 deletions.
2 changes: 1 addition & 1 deletion deno/ts_morph.d.ts
Expand Up @@ -3442,7 +3442,7 @@ export declare class Node<NodeType extends ts.Node = ts.Node> {
*/
forget(): void;
/** Forgets the descendants of this node. */
forgetDescendants(): this;
forgetDescendants(): void;
/**
* Gets if the compiler node was forgotten.
*
Expand Down
1 change: 0 additions & 1 deletion deno/ts_morph.js
Expand Up @@ -3057,7 +3057,6 @@ class Node {
forgetDescendants() {
for (const child of this._getChildrenInCacheIterator())
child.forget();
return this;
}
_forgetOnlyThis() {
if (this.wasForgotten())
Expand Down

0 comments on commit 92962aa

Please sign in to comment.