@abaplint/core 2.91.30 → 2.91.31

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.
@@ -705,6 +705,7 @@ declare class ChapterOfBookStructure extends AbstractObject {
705
705
  declare class CharacterType extends AbstractType {
706
706
  private readonly length;
707
707
  constructor(length: number, qualifiedName?: string);
708
+ cloneType(qualifiedName?: string): CharacterType;
708
709
  getLength(): number;
709
710
  toText(): string;
710
711
  toABAP(): string;
@@ -164,17 +164,20 @@ class BasicTypes {
164
164
  }
165
165
  return type;
166
166
  }
167
- resolveTypeName(typeName, length, decimals, name) {
167
+ resolveTypeName(typeName, length, decimals, qualifiedName) {
168
168
  var _a;
169
169
  if (typeName === undefined) {
170
170
  return undefined;
171
171
  }
172
- const chain = this.resolveTypeChain(typeName);
172
+ let chain = this.resolveTypeChain(typeName);
173
173
  if (chain) {
174
+ if (chain instanceof basic_1.CharacterType && qualifiedName) {
175
+ chain = chain.cloneType(qualifiedName);
176
+ }
174
177
  return chain;
175
178
  }
176
179
  const chainText = typeName.concatTokens().toUpperCase();
177
- const f = this.scope.getDDIC().lookupBuiltinType(chainText, length, decimals, name);
180
+ const f = this.scope.getDDIC().lookupBuiltinType(chainText, length, decimals, qualifiedName);
178
181
  if (f !== undefined) {
179
182
  return f;
180
183
  }
@@ -10,6 +10,9 @@ class CharacterType extends _abstract_type_1.AbstractType {
10
10
  }
11
11
  this.length = length;
12
12
  }
13
+ cloneType(qualifiedName) {
14
+ return new CharacterType(this.length, qualifiedName);
15
+ }
13
16
  getLength() {
14
17
  return this.length;
15
18
  }
@@ -68,7 +68,7 @@ class Registry {
68
68
  }
69
69
  static abaplintVersion() {
70
70
  // magic, see build script "version.sh"
71
- return "2.91.30";
71
+ return "2.91.31";
72
72
  }
73
73
  getDDICReferences() {
74
74
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.91.30",
3
+ "version": "2.91.31",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -48,9 +48,9 @@
48
48
  "@microsoft/api-extractor": "^7.29.2",
49
49
  "@types/chai": "^4.3.3",
50
50
  "@types/mocha": "^9.1.1",
51
- "@types/node": "^18.7.2",
51
+ "@types/node": "^18.7.3",
52
52
  "chai": "^4.3.6",
53
- "eslint": "^8.21.0",
53
+ "eslint": "^8.22.0",
54
54
  "mocha": "^10.0.0",
55
55
  "c8": "^7.12.0",
56
56
  "source-map-support": "^0.5.21",