UNPKG

prettier-plugin-solidity

Version:

A Prettier Plugin for automatically formatting your Solidity code.

14 lines 500 B
import { NonterminalKind } from '@nomicfoundation/slang/cst'; import { SlangNode } from './SlangNode.js'; export class AddressType extends SlangNode { constructor(ast) { var _a; super(ast); this.kind = NonterminalKind.AddressType; this.payableKeyword = (_a = ast.payableKeyword) === null || _a === void 0 ? void 0 : _a.unparse(); } print() { return ['address', this.payableKeyword ? ' payable' : '']; } } //# sourceMappingURL=AddressType.js.map