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) {
fork icon1
star icon0
watch icon0

Other functions in @babel/types

Sorted by popularity

function icon

@babel/types.identifier is the most popular function in @babel/types (20936 examples)