UNPKG

@neo-one/smart-contract-compiler

Version:

NEO•ONE TypeScript smart contract compiler.

15 lines (13 loc) 820 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.compileContract = exports.getSemanticDiagnostics = void 0; const compileContract_1 = require("./compileContract"); const getSemanticDiagnostics_1 = require("./getSemanticDiagnostics"); const utils_1 = require("./utils"); exports.getSemanticDiagnostics = (filePath, languageService, host) => getSemanticDiagnostics_1.getSemanticDiagnostics({ filePath, languageService, host }); exports.compileContract = (filePath, contractName, host, linked = {}, ignoreWarnings = false) => { const result = compileContract_1.compileContract({ filePath, host, linked }); utils_1.throwOnDiagnosticErrorOrWarning(result.diagnostics, ignoreWarnings, `Error while compiling ${contractName}`); return result; }; //# sourceMappingURL=api.js.map