Open preston-willis opened 4 years ago
Thanks for all your help! sorry if this is a stupid question or does not belong here.
The AST filbert uses is pretty similar to the one babel uses, so you might be able to use that very library.
Short answer is no, there aren't built-in functions for this. But, the node.type
property looks like it matches pretty closely to most of the babel types at first glance. Hope that or using babel library directly gets you further along!
I'm looking for a way to check node types, and the docs weren't clear if there were any built-in boolean type eval functions
I'm looking for something like this: