UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

14 lines (12 loc) 414 B
import ts from 'typescript'; import { NodeCompiler } from '../NodeCompiler'; export class FunctionDeclarationCompiler extends NodeCompiler { constructor() { super(...arguments); this.kind = ts.SyntaxKind.FunctionDeclaration; } visitNode(sb, node, options) { sb.emitHelper(node, options, sb.helpers.functionLike); } } //# sourceMappingURL=FunctionDeclarationCompiler.js.map