@abaplint/core 2.95.11 → 2.95.12
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.
|
@@ -9,6 +9,9 @@ class Parameter {
|
|
|
9
9
|
runSyntax(node, scope, filename) {
|
|
10
10
|
var _a;
|
|
11
11
|
const nameToken = (_a = node.findFirstExpression(Expressions.FieldSub)) === null || _a === void 0 ? void 0 : _a.getFirstToken();
|
|
12
|
+
if (nameToken && nameToken.getStr().length > 8) {
|
|
13
|
+
throw new Error("Parameter name too long, " + nameToken.getStr());
|
|
14
|
+
}
|
|
12
15
|
const bfound = new basic_types_1.BasicTypes(filename, scope).parseType(node);
|
|
13
16
|
if (nameToken && bfound) {
|
|
14
17
|
scope.addIdentifier(new _typed_identifier_1.TypedIdentifier(nameToken, filename, bfound));
|
|
@@ -10,6 +10,9 @@ class SelectOption {
|
|
|
10
10
|
runSyntax(node, scope, filename) {
|
|
11
11
|
var _a;
|
|
12
12
|
const nameToken = (_a = node.findFirstExpression(Expressions.FieldSub)) === null || _a === void 0 ? void 0 : _a.getFirstToken();
|
|
13
|
+
if (nameToken && nameToken.getStr().length > 8) {
|
|
14
|
+
throw new Error("Select-option name too long, " + nameToken.getStr());
|
|
15
|
+
}
|
|
13
16
|
for (const d of node.findDirectExpressions(Expressions.Dynamic)) {
|
|
14
17
|
new dynamic_1.Dynamic().runSyntax(d, scope, filename);
|
|
15
18
|
}
|
|
@@ -33,8 +33,12 @@ class Table extends _abstract_object_1.AbstractObject {
|
|
|
33
33
|
return undefined;
|
|
34
34
|
}
|
|
35
35
|
getAllowedNaming() {
|
|
36
|
+
let length = 30;
|
|
37
|
+
if (this.getTableCategory() === TableCategory.Transparent) {
|
|
38
|
+
length = 16;
|
|
39
|
+
}
|
|
36
40
|
return {
|
|
37
|
-
maxLength:
|
|
41
|
+
maxLength: length,
|
|
38
42
|
allowNamespace: true,
|
|
39
43
|
};
|
|
40
44
|
}
|
package/build/src/registry.js
CHANGED