You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Being able to call node.getParentWhile(p => ts.TypeGuards.etc(p) || etc) is very nice. However, I would like to be able to easily check whether the node under it has the proper relationship to the current parent. For example, let's say I want to figure out whether something is in the conditional of an if statement:
Builds off: #107
Being able to call
node.getParentWhile(p => ts.TypeGuards.etc(p) || etc)
is very nice. However, I would like to be able to easily check whether the node under it has the proper relationship to the current parent. For example, let's say I want to figure out whether something is in the conditional of an if statement:Where:
n
is the current node which starts asnode
in the above examplep
is the current parent which starts asnode.getParent()
in the above exampleThe text was updated successfully, but these errors were encountered: