Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Node.prototype.forgetDescendants() no longer returns self #1515

Merged
merged 1 commit into from
Mar 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion deno/ts_morph.d.ts
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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