UNPKG

@abaplint/core

Version:
25 lines 1.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Form = void 0; const form_definition_1 = require("../../types/form_definition"); const _scope_type_1 = require("../_scope_type"); const expressions_1 = require("../../2_statements/expressions"); const _syntax_input_1 = require("../_syntax_input"); class Form { runSyntax(node, input) { var _a; const name = (_a = node.findDirectExpression(expressions_1.FormName)) === null || _a === void 0 ? void 0 : _a.concatTokens(); if (name === undefined) { const message = "Form, could not find name"; input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message)); return; } input.scope.push(_scope_type_1.ScopeType.Form, name, node.getFirstToken().getStart(), input.filename); const form = new form_definition_1.FormDefinition(node, input); input.scope.addList(form.getUsingParameters()); input.scope.addList(form.getChangingParameters()); input.scope.addList(form.getTablesParameters()); } } exports.Form = Form; //# sourceMappingURL=form.js.map