prettier-plugin-solidity
Version:
A Prettier Plugin for automatically formatting your Solidity code.
5 lines • 316 B
JavaScript
const stateMutability = (node) => { var _a; return ((_a = node.stateMutability) === null || _a === void 0 ? void 0 : _a.length) > 0 ? [' ', node.stateMutability] : ''; };
export const ElementaryTypeName = {
print: ({ node }) => [node.name, stateMutability(node)]
};
//# sourceMappingURL=ElementaryTypeName.js.map