@abaplint/transpiler
Version:
15 lines • 712 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AuthorityCheckTranspiler = void 0;
const chunk_1 = require("../chunk");
class AuthorityCheckTranspiler {
transpile(node, traversal) {
const lookup = traversal.lookupClassOrInterface("KERNEL_AUTHORITY_CHECK", node.getFirstToken());
const options = [];
// todo
const call = `await ${lookup}.call({${options.join(",")}});`;
return new chunk_1.Chunk().append(`if (${lookup} === undefined) throw new Error("AuthorityCheck, kernel class missing");\n${call}`, node, traversal);
}
}
exports.AuthorityCheckTranspiler = AuthorityCheckTranspiler;
//# sourceMappingURL=authority_check.js.map