prettier-plugin-solidity
Version:
A Prettier Plugin for automatically formatting your Solidity code.
19 lines • 572 B
JavaScript
import { printSeparatedList } from '../common/printer-helpers.js';
const parameters = (node, path, print) => {
var _a;
return ((_a = node.parameters) === null || _a === void 0 ? void 0 : _a.length) > 0
? printSeparatedList(path.map(print, 'parameters'))
: '';
};
export const EventDefinition = {
print: ({ node, path, print }) => [
'event ',
node.name,
'(',
parameters(node, path, print),
')',
node.isAnonymous ? ' anonymous' : '',
';'
]
};
//# sourceMappingURL=EventDefinition.js.map