UNPKG

prettier-plugin-solidity

Version:

A Prettier Plugin for automatically formatting your Solidity code.

17 lines 466 B
import { printSeparatedList } from '../common/printer-helpers.js'; const parameters = (node, path, print) => node.parameters ? [ node.kind || '', '(', printSeparatedList(path.map(print, 'parameters')), ') ' ] : ''; export const CatchClause = { print: ({ node, path, print }) => [ 'catch ', parameters(node, path, print), path.call(print, 'body') ] }; //# sourceMappingURL=CatchClause.js.map