Sha256: b3c878b910b9056c043d0a01040e736d9f0e4d40fab333f70737a5b94e15a0a1

Contents?: true

Size: 219 Bytes

Versions: 8

Compression:

Stored size: 219 Bytes

Contents

function isEmptyStmts(node) {
  return (
    node &&
    node.type === "stmts" &&
    node.body.length === 1 &&
    node.body[0].type === "void_stmt" &&
    !node.body[0].comments
  );
}

module.exports = isEmptyStmts;

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
prettier-1.6.1 src/utils/isEmptyStmts.js
prettier-1.6.0 src/utils/isEmptyStmts.js
prettier-1.5.5 src/utils/isEmptyStmts.js
prettier-1.5.4 src/utils/isEmptyStmts.js
prettier-1.5.3 src/utils/isEmptyStmts.js
prettier-1.5.2 src/utils/isEmptyStmts.js
prettier-1.5.1 src/utils/isEmptyStmts.js
prettier-1.5.0 src/utils/isEmptyStmts.js