How to use the STATEMENT_OR_BLOCK_KEYS function from @babel/types
Find comprehensive JavaScript @babel/types.STATEMENT_OR_BLOCK_KEYS code examples handpicked from public code repositorys.
99 100 101 102 103 104 105 106 107 108 109 110
function isStatementOrBlock() { if (this.parentPath.isLabeledStatement() || t.isBlockStatement(this.container)) { return false; } else { return t.STATEMENT_OR_BLOCK_KEYS.includes(this.key); } } function referencesImport(moduleSource, importName) {
@babel/types.identifier is the most popular function in @babel/types (20936 examples)