UNPKG

prettier-plugin-solidity

Version:

A Prettier Plugin for automatically formatting your Solidity code.

14 lines 476 B
import { TerminalKind } from '@nomicfoundation/slang/cst'; import { getNodeMetadata } from '../slang-utils/metadata.js'; export class SingleLineNatSpecComment { constructor(ast) { this.kind = TerminalKind.SingleLineNatSpecComment; const metadata = getNodeMetadata(ast); this.value = ast.unparse(); this.loc = metadata.loc; } print() { return this.value.trimEnd(); } } //# sourceMappingURL=SingleLineNatSpecComment.js.map