@abaplint/core 2.85.0 → 2.85.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -319,7 +319,12 @@ class Lexer {
|
|
|
319
319
|
&& ahead !== "`") {
|
|
320
320
|
// end of ping
|
|
321
321
|
this.add();
|
|
322
|
-
|
|
322
|
+
if (ahead === `"`) {
|
|
323
|
+
this.m = Mode.Comment;
|
|
324
|
+
}
|
|
325
|
+
else {
|
|
326
|
+
this.m = Mode.Normal;
|
|
327
|
+
}
|
|
323
328
|
}
|
|
324
329
|
else if (this.m === Mode.Template
|
|
325
330
|
&& buf.length > 1
|
|
@@ -5,7 +5,7 @@ const combi_1 = require("../combi");
|
|
|
5
5
|
const _1 = require(".");
|
|
6
6
|
class FormParam extends combi_1.Expression {
|
|
7
7
|
getRunnable() {
|
|
8
|
-
const stru = (0, combi_1.seq)("STRUCTURE", _1.
|
|
8
|
+
const stru = (0, combi_1.seq)("STRUCTURE", _1.SimpleFieldChain);
|
|
9
9
|
const ret = (0, combi_1.seq)((0, combi_1.altPrio)(_1.PassByValue, _1.FormParamName), (0, combi_1.optPrio)((0, combi_1.altPrio)(_1.FormParamType, stru)));
|
|
10
10
|
return ret;
|
|
11
11
|
}
|
|
@@ -11,7 +11,7 @@ class FormParam {
|
|
|
11
11
|
const nameToken = (_a = node.findFirstExpression(expressions_1.FormParamName)) === null || _a === void 0 ? void 0 : _a.getFirstToken();
|
|
12
12
|
if (node.findDirectTokenByText("STRUCTURE") && nameToken) {
|
|
13
13
|
// STRUCTURES typing
|
|
14
|
-
const typeName = (_b = node.findDirectExpression(expressions_1.
|
|
14
|
+
const typeName = (_b = node.findDirectExpression(expressions_1.SimpleFieldChain)) === null || _b === void 0 ? void 0 : _b.getFirstToken().getStr();
|
|
15
15
|
let type = undefined;
|
|
16
16
|
if (typeName) {
|
|
17
17
|
type = (_c = scope.findType(typeName)) === null || _c === void 0 ? void 0 : _c.getType();
|
|
@@ -93,10 +93,8 @@ class Table extends _abstract_object_1.AbstractObject {
|
|
|
93
93
|
if (field.GROUPNAME !== undefined) {
|
|
94
94
|
components.push({ name: field.GROUPNAME, type: found });
|
|
95
95
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
components.push({ name: c.name, type: c.type });
|
|
99
|
-
}
|
|
96
|
+
for (const c of found.getComponents()) {
|
|
97
|
+
components.push({ name: c.name, type: c.type });
|
|
100
98
|
}
|
|
101
99
|
}
|
|
102
100
|
else if ((((_a = field.PRECFIELD) === null || _a === void 0 ? void 0 : _a.startsWith("CI_")) || ((_b = field.PRECFIELD) === null || _b === void 0 ? void 0 : _b.startsWith("SI_")))
|
package/build/src/registry.js
CHANGED