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
Given the node for callExpr(), it should be possible to call something like getIdentifiersInScope() and it would return these identifiers in the following order: var3, innerFunc, var2, var1 (closest to furthest).
Use case: Figuring out what identifier to use as an argument in a call expression when refactoring an application.
The text was updated successfully, but these errors were encountered:
I'm not sure what a sensible default would be for meaning. Internally in the compiler api, that's a filter on the results. I put in a request to the TS team to see if a default would make sense there. Perhaps SymbolFlags.Value?
For example:
Given the node for
callExpr()
, it should be possible to call something likegetIdentifiersInScope()
and it would return these identifiers in the following order:var3
,innerFunc
,var2
,var1
(closest to furthest).Use case: Figuring out what identifier to use as an argument in a call expression when refactoring an application.
The text was updated successfully, but these errors were encountered: