prettier-plugin-solidity
Version:
A Prettier Plugin for automatically formatting your Solidity code.
9 lines • 316 B
JavaScript
import { isComment } from '../slang-utils/is-comment.js';
export function printComment(commentPath) {
const comment = commentPath.getNode();
if (isComment(comment)) {
return comment.print();
}
throw new Error(`Not a comment: ${JSON.stringify(comment)}`);
}
//# sourceMappingURL=printer.js.map