@abaplint/core 2.95.10 → 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.
@@ -12,6 +12,11 @@ class ValueBody {
12
12
  if (node === undefined) {
13
13
  return targetType;
14
14
  }
15
+ let letScoped = false;
16
+ const letNode = node.findDirectExpression(Expressions.Let);
17
+ if (letNode) {
18
+ letScoped = new let_1.Let().runSyntax(letNode, scope, filename);
19
+ }
15
20
  let forScopes = 0;
16
21
  for (const forNode of node.findDirectExpressions(Expressions.For) || []) {
17
22
  const scoped = new for_1.For().runSyntax(forNode, scope, filename);
@@ -19,11 +24,6 @@ class ValueBody {
19
24
  forScopes++;
20
25
  }
21
26
  }
22
- let letScoped = false;
23
- const letNode = node.findDirectExpression(Expressions.Let);
24
- if (letNode) {
25
- letScoped = new let_1.Let().runSyntax(letNode, scope, filename);
26
- }
27
27
  for (const s of node.findDirectExpressions(Expressions.FieldAssignment)) {
28
28
  new field_assignment_1.FieldAssignment().runSyntax(s, scope, filename, targetType);
29
29
  }
@@ -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: 30,
41
+ maxLength: length,
38
42
  allowNamespace: true,
39
43
  };
40
44
  }
@@ -11,7 +11,7 @@ class View extends _abstract_object_1.AbstractObject {
11
11
  }
12
12
  getAllowedNaming() {
13
13
  return {
14
- maxLength: 30,
14
+ maxLength: 16,
15
15
  allowNamespace: true,
16
16
  };
17
17
  }
@@ -63,7 +63,7 @@ class Registry {
63
63
  }
64
64
  static abaplintVersion() {
65
65
  // magic, see build script "version.sh"
66
- return "2.95.10";
66
+ return "2.95.12";
67
67
  }
68
68
  getDDICReferences() {
69
69
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.95.10",
3
+ "version": "2.95.12",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",