Sha256: c06c40a5244fadcfb71ec6ef16b4a75fcbc7f2bfa2dca79595947b45cd8634f7

Contents?: true

Size: 328 Bytes

Versions: 8

Compression:

Stored size: 328 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

8 entries across 8 versions & 1 rubygems

Version Path
prettier-0.18.0 src/nodes/hooks.js
prettier-0.17.0 src/nodes/hooks.js
prettier-0.16.0 src/nodes/hooks.js
prettier-0.15.1 src/nodes/hooks.js
prettier-0.15.0 src/nodes/hooks.js
prettier-0.14.0 src/nodes/hooks.js
prettier-0.13.0 src/nodes/hooks.js
prettier-0.12.3 src/nodes/hooks.js