UNPKG

prettier-plugin-solidity

Version:

A Prettier Plugin for automatically formatting your Solidity code.

15 lines 559 B
import { NonterminalKind } from '@nomicfoundation/slang/cst'; import { SlangNode } from './SlangNode.js'; import { Block } from './Block.js'; export class UncheckedBlock extends SlangNode { constructor(ast, collected, options) { super(ast, collected); this.kind = NonterminalKind.UncheckedBlock; this.block = new Block(ast.block, collected, options); this.updateMetadata(this.block); } print(path, print) { return ['unchecked ', path.call(print, 'block')]; } } //# sourceMappingURL=UncheckedBlock.js.map