@neo-one/smart-contract-compiler
Version:
NEO•ONE TypeScript smart contract compiler.
17 lines (16 loc) • 727 B
TypeScript
import ts from 'typescript';
import { NodeCompiler } from '../NodeCompiler';
import { ScriptBuilder } from '../sb';
import { VisitOptions } from '../types';
export declare abstract class BooleanLiteralCompiler extends NodeCompiler<ts.BooleanLiteral> {
protected abstract readonly value: boolean;
visitNode(sb: ScriptBuilder, expr: ts.BooleanLiteral, options: VisitOptions): void;
}
export declare class TrueBooleanLiteralCompiler extends BooleanLiteralCompiler {
readonly kind = ts.SyntaxKind.TrueKeyword;
protected readonly value = true;
}
export declare class FalseBooleanLiteralCompiler extends BooleanLiteralCompiler {
readonly kind = ts.SyntaxKind.FalseKeyword;
protected readonly value = false;
}