@abaplint/core 2.113.69 → 2.113.70

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.
@@ -24,7 +24,7 @@ class NewObject {
24
24
  const clas = input.scope.findClassDefinition(targetType.getIdentifierName());
25
25
  if (clas) {
26
26
  input.scope.addReference(typeToken, clas, _reference_1.ReferenceType.InferredType, input.filename);
27
- input.scope.addReference(typeToken, clas, _reference_1.ReferenceType.ConstructorReference, input.filename);
27
+ input.scope.addReference(typeToken, clas, _reference_1.ReferenceType.ConstructorReference, input.filename, { ooName: clas.getName() });
28
28
  }
29
29
  else {
30
30
  const intf = input.scope.findInterfaceDefinition(targetType.getIdentifierName());
@@ -51,7 +51,7 @@ class NewObject {
51
51
  const objDefinition = input.scope.findObjectDefinition(typeName);
52
52
  if (objDefinition) {
53
53
  input.scope.addReference(typeToken, objDefinition, _reference_1.ReferenceType.ObjectOrientedReference, input.filename);
54
- input.scope.addReference(typeToken, objDefinition, _reference_1.ReferenceType.ConstructorReference, input.filename);
54
+ input.scope.addReference(typeToken, objDefinition, _reference_1.ReferenceType.ConstructorReference, input.filename, { ooName: objDefinition.getName() });
55
55
  const objref = new basic_1.ObjectReferenceType(objDefinition);
56
56
  const clas = input.scope.findClassDefinition(objref.getIdentifierName());
57
57
  if ((clas === null || clas === void 0 ? void 0 : clas.isAbstract()) === true) {
@@ -23,7 +23,7 @@ class CreateObject {
23
23
  cdef = input.scope.findClassDefinition(name);
24
24
  if (cdef) {
25
25
  input.scope.addReference(token, cdef, _reference_1.ReferenceType.ObjectOrientedReference, input.filename);
26
- input.scope.addReference(token, cdef, _reference_1.ReferenceType.ConstructorReference, input.filename);
26
+ input.scope.addReference(token, cdef, _reference_1.ReferenceType.ConstructorReference, input.filename, { ooName: cdef.getName() });
27
27
  if (cdef.isAbstract() === true) {
28
28
  const message = cdef.getName() + " is abstract, cannot be instantiated";
29
29
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
@@ -97,7 +97,7 @@ class CreateObject {
97
97
  for (const t of node.findDirectExpressions(Expressions.Dynamic)) {
98
98
  new dynamic_1.Dynamic().runSyntax(t, input);
99
99
  }
100
- input.scope.addReference(t === null || t === void 0 ? void 0 : t.getFirstToken(), cdef, _reference_1.ReferenceType.ConstructorReference, input.filename);
100
+ input.scope.addReference(t === null || t === void 0 ? void 0 : t.getFirstToken(), cdef, _reference_1.ReferenceType.ConstructorReference, input.filename, { ooName: cdef === null || cdef === void 0 ? void 0 : cdef.getName() });
101
101
  this.validateParameters(cdef, node, input);
102
102
  }
103
103
  validateParameters(cdef, node, input) {
@@ -67,7 +67,7 @@ class Registry {
67
67
  }
68
68
  static abaplintVersion() {
69
69
  // magic, see build script "version.sh"
70
- return "2.113.69";
70
+ return "2.113.70";
71
71
  }
72
72
  getDDICReferences() {
73
73
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.113.69",
3
+ "version": "2.113.70",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",