prettier-plugin-solidity
Version:
A Prettier Plugin for automatically formatting your Solidity code.
11 lines • 402 B
JavaScript
import { util } from 'prettier';
const { addDanglingComment, addTrailingComment } = util;
export default function addCollectionNodeLastComment(node, comment) {
if (node.items.length === 0) {
addDanglingComment(node, comment, false);
}
else {
addTrailingComment(node.items[node.items.length - 1], comment);
}
}
//# sourceMappingURL=add-collection-node-last-comment.js.map