UNPKG

@abaplint/core

Version:
22 lines 916 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DeleteCluster = void 0; const Expressions = require("../../2_statements/expressions"); const source_1 = require("../expressions/source"); class DeleteCluster { runSyntax(node, input) { var _a; for (const s of node.findDirectExpressions(Expressions.Source)) { source_1.Source.runSyntax(s, input); } const databaseName = node.findExpressionAfterToken("DATABASE"); if (databaseName) { const found = (_a = input.scope.getDDIC()) === null || _a === void 0 ? void 0 : _a.lookupTableOrView(databaseName.concatTokens()); if (found) { input.scope.getDDICReferences().addUsing(input.scope.getParentObj(), { object: found.object }); } } } } exports.DeleteCluster = DeleteCluster; //# sourceMappingURL=delete_cluster.js.map