Sha256: f3ec77c5c856a451d8b7771886be6ba7ff4cf6a7103e6dc5a09d53c75b432f93

Contents?: true

Size: 330 Bytes

Versions: 6

Compression:

Stored size: 330 Bytes

Contents

const { concat, group, indent, line } = require("../prettier");

const printHook = (name) => (path, opts, print) =>
  group(
    concat([
      `${name} {`,
      indent(concat([line, path.call(print, "body", 0)])),
      concat([line, "}"])
    ])
  );

module.exports = {
  BEGIN: printHook("BEGIN"),
  END: printHook("END")
};

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
prettier-0.20.1 src/nodes/hooks.js
prettier-0.20.0 src/nodes/hooks.js
prettier-0.19.1 src/nodes/hooks.js
prettier-0.19.0 src/nodes/hooks.js
prettier-0.18.2 src/nodes/hooks.js
prettier-0.18.1 src/nodes/hooks.js