Created
November 6, 2018 10:43
-
-
Save lerouxb/ba79f78610b055126b9b20d08ee8195a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.whatIsIt = function (node) { | |
const matches = []; | |
for (const [key, value] of Object.entries(Recast.types.namedTypes)) { | |
if (value.check(node)) { | |
matches.push(key); | |
} | |
} | |
return matches; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment